Tag Info

Hot answers tagged

7

Install auditd and run: sudo auditctl -a exit,always -F arch=b64 -S fchmod -S chmod -S fchmodat \ -F path=/dev/null -k dev-null-chmod sudo auditctl -a exit,always -F arch=b32 -S fchmod -S chmod -S fchmodat \ -F path=/dev/null -k dev-null-chmod You'd find the culprit in the output of: sudo ausearch -ik dev-null-chmod You'll see the command name, pid ...


4

mount -p will show you the file system type used for each mounted file system, eg: $ mount -p rpool/ROOT/solaris - / zfs - no /devices - /devices devfs - no /dev - /dev dev - no ctfs - /system/contract ctfs - no proc - /proc proc - no mnttab - /etc/mnttab mntfs - no ... Unless you are currently using a bootable DVD or USB thumbdrive (i.e. you are in ...


4

There is already a good answer in a comment by Volker Siegel related to tmpfs: It means there are three tmpfs file systems mounted into three directories. That has nothing to do with which swap files exist. I can add a reference explaining the rootfs issue. ramfs, rootfs and initramfs October 17, 2005 Rob Landley ============================= ... ...


3

The only way I can get that command to run without errors is if both directories already exist. Or if only the source name exists. If both directories do exist, what the command does is that it moves one directory into the other. So, you'll now have a directory named michael_franti_theme/micheal_franti_theme. If only the source name exists, what the ...


3

To my knowledge /dev/shm is a Linux-only feature. I just doubled checked on my OSX 10.9.4 system and it definitely does not have /dev/shm. Now given OSX is rooted in Unix I would be very surprised if it did not have something similar, so searching for the equivalent led me to this SO Q&A titled: Does OS X have an equivalent to /dev/shm?, which in turn ...


3

It depends. There is no general answer to this question. In the absence of caching, writing a disk file is usually measurably slower than reading. This has little to do with the operating system and everything to do with the hardware: both hard disks and solid state media read faster than they write. A secondary factor is related to filesystem structure: ...


3

All three data journaling modes should leave the filesystem itself fully intact after a power failure. So it should always mount without errors. The difference is only in the data in your files; data=writeback mode may leave stale data (i.e., what was stored in the disk sectors before the writes your app did). data=ordered and data=journaled should not do ...


3

The manufacturer sold you the 2GB USB stick as 2 Gigabytes, meaning 2000000000 bytes. Your computer is showing the stick in units of Gigibytes. 1 Gigibyte is 1024 x 1024 x 1024 bytes, which is 1073741824 bytes. If you divide your 2000000000 by 1073741824 you'll end up with 1.86264514923095703125 or, rounded to two decimal places 1.86 GiB. In other words, ...


2

A makefile recipe will stop executing if any command in it returns a failure status (unless the command is preceded by a -). The recipe you cited will ensure that /bsd only gets replaced if the cp bsd /nbsd command succeeds. The cp could fail if the partition were full or out of inodes.


2

For: WARNING: Not enough clusters for a 32 bit FAT! you can use -s2 parameter at mkfs.fat command. On the other hand if (sector_size_set) { if (ioctl(dev, BLKSSZGET, &min_sector_size) >= 0) if (sector_size < min_sector_size) { sector_size = min_sector_size; fprintf(stderr, "Warning: sector size was set to ...


2

These are backup files that gedit creates by default. You can disable this feature by going to Preferences → Editor and unchecking the line Create a backup copy of files before saving


2

I was also searching for the "Search Everything" tool for linux and discovered "Search Monkey" in the Ubuntu repository. LOVE IT! It's light weight, loads quick, wild card searches produces tons of results instantly, plus it has filters and advanced search methods. I now have my "Everything" search tool back for linux!


2

A partition can be mounted in multiple paths, but the lsblk will only show one. In your case /dev/sda2 contains a btrfs filesystem, which is mounted both as / and as /var/lib/docker/btrfs, probably with two different subvolumes. To see more details on how stuff are mounted around your system use cat /proc/mounts. As for number 3, my guess is that docker ...


2

I figured it out. My bootloader wasn't configured properly. Sounds obvious, right? Modifying fstab doesn't quite qualify as configuring the bootloader. I had to change a line in /boot/syslinux/syslinux.cgf to refer to correct boot partition. That said, there was no need to boot off of the second disk in the first place. I could have avoided this problem by ...


2

df reports the percentage of used blocks relative to the blocks not reserved for root use (by default I think it's 5% of the drive in ext3). It can be changed by using the -m option of tune2fs e.g. to set it to 2% tune2fs -m 2 /dev/sdXY The reserved blocks allow system daemons to keep going even when the disk is full, while non-root processes will not be ...


2

I found this tutorial. It's untested by me but several commenters to the article attested to it working. The article is titled: Mount a ufs2 Volume in MacOS/X 10.7 (Lion). excerpt If you have to mount an ufs2 volume (for example an external FreeNAS disk) in MacOS/X Lion, you can do the following: Download and install OSXFUSE from ...


2

From your command it looks like you were testing the current working directory, and simply ran out of free disk space. With this command you will need up to 5 Gbytes of free space. You have -u 5 ( maximum of five processes ) each will have a file that is 1 GBytes in size, from the -s 1g option that you used. The failure indicates that you only started ...


1

1: it doesn't have to do anything with primary/extended/logical partitions. 2: I think you wanted to say "logical" partition instead of "extended". 3: mkfs thinks your partition size if 0 bytes. It was very surely, because the kernel wasn't able to update the partition table after a repartitioning. After you edited the partition table, didn't you get some ...


1

If you add the -t switch you can specify how many writers you want iozone to make use of. From the IOzone PDF. -t # Run Iozone in a throughput mode. This option allows the user to specify how many threads or processes to have active during the measurement. Example $ ./iozone -i 0 -t 2 Children see throughput for 2 initial writers 1= 433194.53 KB/sec ...


1

Writing should be faster. The free block list is kept in memory, so finding the next free block will be very fast. Unless you're writing in synchronous mode, when you try to write something it will simply copy the data into a kernel buffer and queue the write; it doesn't have to wait for the I/O to complete. On the other hand, a read has to wait for the ...


1

I'm a user of Raspberry PI, not BBB but I think in this context is the same. If external storage device is working, i.e. kernel can handle it, there is enough power etc. then you can use filesystems as on other hardware platforms. Eventually you should check /boot/config* file if there is support for desired filesystem in the kernel or modules. Cheers,


1

iozone -Rab output.wks will do both. The command will output the flat ascii formatted results for possible import by Excel ( space and tab delimited ) as well as generating the output.wks file, which is already in BIFF (Binary Interchange File Format). The output.wks file can be opened directly with Excel, and permits one to skip importing the flat ascii ...


1

You can't do fdisk because you're already at twice MBR's maximum with a 4TB device at 512b sectors. You need to format it with GPT. From wikipedia: The organization of the partition table in the MBR limits the maximum addressable storage space of a disk to 2 TB (232 × 512 bytes). Get the gdisk package and reformat the disk (though it seems to me it ...


1

Among other things, it's possible to obstruct/overlay filesystem structures with mounts, thus you're not usually allowed to mount anything anywhere without root privileges. The cases where this is done (or seems to be done), there usually is a mount helper involved that runs as root (like fusermount, udisks, ...). If for some reason using a mount helper is ...


1

OK, so in Computer Science, I'm not overly fond of saying "you can't get there from here", but in this case, you're trying to fit a square peg into a round hole. The Sector size is usually set by the DEVICE. The 2048B sector size reported is normal for a CD/DVD drive, whereas 512B (or 520B -- which is why I said USUALLY -- some hard drives can actually ...


1

I think you want something like this: (until findmnt . ; do cd .. ; done) The problem you're running into is that all paths are relative to something or other, so you just have to walk the tree. Every time. findmnt is a member of the util-linux package and has been for a few years now. By now, regardless of your distro, it should already be installed on ...


1

It can be somewhat messy if the mount points contain blanks, but this should work except in cases where the mount points contain newlines: #!/bin/sh mountpoint="$(df -P "$1" | awk '{ if (NR==1) i=index($0,"Mounted on"); else print substr($0,i); }')" mount|grep " on ${mountpoint} type " df -P outputs one line for the filesystem; ...


1

I don't know of a command, but you could create a function. You can add the below to your .bashrc: mountinfo () { mount | grep $(df -P "$1" | tail -n 1 | awk '{print $1}') } This executes the mount command and passes the output to grep. grep will look for the output of df -P "$1" | tail -n 1 | awk '{print $1}', and to break it down: df -P "$1" will ...


1

The Linux/Unix way is to have a toolbox of small utilities that, when combined, give you the results that you're after. They tend not to have an utility for every occassion. Instead you have many small useful utilities that are combined together with pipes etc. The advantage of this is that you can write your own utility quite easily if none are available. ...


1

Not sure to understand, If the question is: could some process have keep an acces to my file after umout ? , then the answer is no, as you can't umount if someone/something access your file.



Only top voted, non community-wiki answers of a minimum length are eligible