A filesystem is a way to organize and store computer files with their data.

learn more… | top users | synonyms (2)

2
votes
3answers
2k views

fsck -cc /dev/sdb1 gives this result. Is everything okay?

root@host [/]# fsck -cc /dev/sdb1 fsck from util-linux-ng 2.17.2 e2fsck 1.41.12 (17-May-2010) Checking for bad blocks (non-destructive read-write test) Testing with random pattern: done /dev/sdb1: ...
5
votes
1answer
1k views

What determines the maximum file size in ext2 file system

I was reading the Kernel Documentation where it says There are various limits imposed by the on-disk layout of ext2. Other limits are imposed by the current implementation of the kernel code. ...
7
votes
1answer
310 views

Why do *nix filesystems support file names with newlines? [duplicate]

According to this page: File names in Linux can contain any characters other than (1) a forward slash ( / ), which is reserved for use as the name of the root directory (i.e., the directory that ...
3
votes
3answers
970 views

Where is ACL data technically stored?

I'm studying ACLs and am confused on where this information technically resides. Is this just technically just meta data from inodes?
1
vote
1answer
94 views

Why can't ACLs block users from having access to their own home directory?

CentOS 6.x In the process of studying ACLs, I came across this blurb in my training documentation: However with ACLs, you can't deny access for a user to his home directory While I can't think ...
0
votes
1answer
161 views

Recover from ext2 filesystem corruption

I have a TinyCore (3.6) Linux distribution on a device of mine, which uses disk-on-module or compact flash storage. The filesystem is ext2. I have a LAMP stack on this device and I'm playing with a ...
0
votes
1answer
47 views

User Access Permissions

I have recently taken ownership of a (FreeBSD) FileServer and need to identify which shares users have access to on an individual basis. Is there an easy way to achieve this with a single command?
1
vote
3answers
483 views

DD and Free Space

I have a partition (/dev/sda1) of 10 GB. Also have "dd" file of another 7 GB partition ( /dev/sdb1). When I execute the command as: dd if=sdb1.dd of=/dev/sda1 then everything goes fine but I ...
0
votes
2answers
2k views

Regarding the output of “df -h” in Linux

Regarding the output of "df -h" in Linux. [root@]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 193G 82G 101G 45% / tmpfs 1.9G 272K 1.9G ...
1
vote
1answer
2k views

Proper way to delete contents of directory [duplicate]

What is the proper way to delete all the contents of a directory, without said directory? For example, I have the following directory structure: foo/ bar1/ bar2/ x.txt I want to delete ...
1
vote
1answer
156 views

How does my partition (ext4) know its size of used/free space?

I ran df, and the output appears almost instantly: (FS Size Used Avail Use%) /dev/sda1 145G 8.4G 130G 7% sda1 is an ext4 partition. Without summing the size of all files, how can ...
1
vote
1answer
39 views

Application fails if not in its directory?

I'm trying to run DeaDBeeF, a music player. It works fine if I'm in its directory, but if I'm anywhere else, it tells me that it "failed to find output plugin". Is there any way to get it to look in ...
5
votes
1answer
113 views

Why doesn't the Linux vfat driver allow certain characters?

The Linux vfat driver seems to disallow certain characters in vfat long file names: ?<>\:*|". I understand that Windows doesn't support these characters, but Wikipedia seems to indicate that the ...
8
votes
1answer
1k views

How are ACL permissions processed and in what order do they apply to a given user action?

CentOS 6.4 I'm trying to better understand how filesystem ACL rules are processed and in what order ACL rules apply. For example, let's say users bob and joe belong to a group called sales. Let's ...
0
votes
1answer
182 views

What package is necessary to install for the getacl command? [closed]

CentOS 6.3 I'm studying Access Control Lists and for some reason, the getacl command isn't available. When I try running it, I get: [root@foobox test] getacl test.txt -bash: getacl: command not ...
3
votes
4answers
499 views

How can I zero files out inside a VMware image file so that their space can be reclaimed?

is there a command on Linux to remove a file but zeroing it's contents first? so if i do, something like this: rm -rf /var/cache/pacman/pkg/* it would overwrite each file on that directory with 0 ...
7
votes
0answers
372 views

Aufs Whiteout removal

I'm using AUFS for merging 100+ branches for a project. At runtime, I frequently add or remove few branches. Now, If I have a branch named "firefox-21.0" and If I update/modify one of it's file then ...
1
vote
3answers
2k views

Can anyone explain the output of mount?

I'm getting the following output when the mount command is executed. [root@]# mount /dev/sda2 on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type ...
3
votes
1answer
2k views

sshfs - can't unmount the point

I mounted a folder on a remote machine using sshfs, but didn't specify -o allow_other flag thus can't access the mounted directory. When I try to mount over with -o allow_other option sshfs gives me ...
3
votes
2answers
453 views

Unix files system related puzzle [closed]

There was a question in one of quiz conducted one year back. I was attempting to solve this question and got stuck. All the other were programming related but this one was a Unix file permissions ...
1
vote
3answers
960 views

the difference in used hard drive space as shown by df and du is HUGE! [duplicate]

It seems that du discounts the #open files when calculating the disk usage, and this hit me when I saw that df is showing 100% usage, while du says only 40% is in use. when i looked up on this, i ...
1
vote
2answers
108 views

How do I mount drive from one machine to another machine?

I am running two linux machines in VMWare - and would like to mount a drive from machine_1 on machine_2. Is it possible if I can ssh from one machine to another?
6
votes
3answers
370 views

Under what scenarios would I want to set a SUID bit?

I'm struggling to wrap my mind around the concept of SUID bits and why they're would be useful. For example, let's say I have a program: -rwsr-xr-x 1 root root 12364 Jan 12 2013 ...
0
votes
4answers
1k views

Space left on Linux RAM/TMP,FS

Recently I have come to believe a number of unusual occurrences that have happened while running a Parted Magic Live CD, are the result of running out of space on the RAM based filesystem, namely: ...
3
votes
1answer
1k views

Can virtfs/9p be used as root file system?

Is it possible to use a folder shared from the host to the guest via virtfs/9p as the root file system inside the guest? Loosely related to my previous question: Can virtfs/9p be used to share the ...
4
votes
3answers
4k views

How to display all the partitions in a tree-like format (primary, extended and logical)?

I'm trying to find something that resembles the output of findmnt but with volumes instead mount-points (example): TARGET TYPE FSTYPE sda ├─sda1 ...
7
votes
3answers
2k views

How to get mount point of filesystem containing given file

I am looking for a quick way to find the mount point of the file system containing a given FILE. Is there anything simpler or more direct than my solution below? df -h FILE |tail -1 | awk -F% ...
4
votes
1answer
851 views

My HFS+ (hfsplus) partition won't mount with exec permissions

I'm dual-booting an old MacBook Pro with OS X 10.5 and Ubuntu Studio 13.04. I've partitioned my internal SATA drive as follows: /dev/sda1: LABEL="EFI" UUID="3F3C-1AF6" TYPE="vfat" (EFI Boot ...
3
votes
1answer
281 views

Odd behavior with a gzip compressed file

I've got a very bizarre issue occurring with a Redhat system. We have a Gzip-compressed TAR file that contains hundreds of small text files with absolute paths. It's only 8 MB. We copy this file to a ...
3
votes
2answers
292 views

Repartitioning harddisk

Saturday I have to repartition my HDD. On my server I have 72GB HDD space which is not very much. Currently my system is partitioned as follows: Partition size: Filesystem Size Used ...
3
votes
1answer
327 views

Enumerating\writing files in a specific directory hangs the command

I'm communicating with a machine remotely through ssh. This machine runs a custom-built Linux and it has very limited set of commands. At some point, a specific directory refuses files to be written ...
1
vote
1answer
117 views

If I hardlink to a directory, will the contents be “preserved” as if I hard-linked to every file?

I've seen people on the internet talk about using hardlinks to force files to stay on disk as a backup, even if they're deleted in their original location. Would this work for a directory too? Why or ...
2
votes
1answer
422 views

Static files give ever changing checksum value on Linux

When I cksum large files (150MB) they will often report different checksums on each call. $ cksum test3 1233504235 170213376 test3 $ cksum test3 825031809 170213376 test3 $ cksum test3 189847968 ...
0
votes
0answers
573 views

e2fsck not working

I am using Linux slitaz on my machine. I am able to see drives on the left side of the screen but when I click the drives it is giving the error cannot open the drive. When I ran the e2fsck on that ...
2
votes
2answers
228 views

KVM loss of data?

I'm planning to install KVM on Linux Mint. I heard it is possible to corrupt files and partitions. There are warnings here but I haven't finish reading it (I will tonight). There is also another ...
4
votes
2answers
443 views

What does the jargon filesystem mean?

I know this question sound quite stupid. Sometimes when I go through sections of Linux books about filesystem, it may turn out that it is a chapter talking about the directory structure of a standard ...
1
vote
1answer
151 views

What file systems support taking snapshot backups from a live system?

What file systems allows me to take a full snapshot of a full live partition, while active, in a state where all files have the same state as when the backup/snapshot process start ? I want to be ...
1
vote
3answers
527 views

How to ensure File System is Mounted with ' atime ' enabled ?

Let's run mount /dev/mapper/VolGroup-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type ...
1
vote
1answer
182 views

Access time is not being updated when i run ` ls a ` and then ` stat a`

On CentOS Linux desktop let's create a folder named a. mkdir a Then let's access it ls a and then let's get it's statistics stat a File: `a' Size: 4096 Blocks: 8 IO Block: ...
5
votes
2answers
2k views

Why are filenames that start with a dot hidden? Can I hide files without using a dot as their first character?

Initially I thought it was a coincidence, but now I see there's even a tag for it: all hidden file names start with a dot. Is this a convention? Why was it chosen? Can it be changed? Or in other words ...
2
votes
1answer
265 views

Atime value changing only once after file creation

I've mounted disk with explicit given value - atime: mount -o mount -o atime /dev/disk1 /myDisk then I've created a file by touch file_A after this operation stat output looks like that: ...
10
votes
3answers
8k views

How can I edit symlinks?

My basic understanding of a symlink is as a special file, a file that contains a string path to another file. The kernel's VFS abstracts a lot of that away but is there any reason why symlinks seem to ...
4
votes
1answer
440 views

What is the effect of setting immutable bit on /boot partition [closed]

What is the effect of setting immutable bit on /boot partition with perspective of security. is it advisable to set the immutable bit (-i) to everything under /boot? Will it enhance or degrade the ...
3
votes
4answers
10k views

What does “mounting fs with errors” mean in dmesg and what to do after that?

I run dmesg and this is what I see: EXT4-fs (sda1): warning: mounting fs with errors, running e2fsck is recommended EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: Here is the ...
1
vote
1answer
151 views

ext4 drive takes forever to ls?

I've had an external HDD formatted in ext4 for a while. For some reason, it's started to take forever to list directories. Sometimes just running ls /mount/point/of/drive takes minutes, sometimes that ...
2
votes
1answer
59 views

Compare a filesystem to a dump

Is there a way to compare the current state of the filesystem to that stored in a backup created by dump? I recently had some major corruption in the filesystem and my most recent backup is from ...
4
votes
3answers
217 views

How does Linux, the kernel, mount filesystems? What actually does this?

My question concerns the Linux source, and if it actually contains the code necessary, natively to mount, parse, and use a filesystem, or if that's added to the source. If the Linux source contains ...
3
votes
3answers
5k views

How can I change the date modified of a folder to the last changed file inside? [duplicate]

In my media center directory all modified times of my folders are somehow not the desired date. How can I change all modified times of the main folders to the modified time of the newest media-file ...
2
votes
3answers
1k views

Make system robust against unexpected power loss

Are there any common or standard ways to make a system more robust against unexpected power loss (I.e., without proper shutdown)? I was using a UPS but the battery is dying and I haven't had a chance ...
4
votes
1answer
333 views

File size shown by “du -k” is different in different file systems (PRAMFS and FLASH)

I have a file xyz.log which is of size 1.72MB. In FLASH file system: If I run du -k xyz.log output is 1761 xyz.log. I copied the same file to RAM storage and run the du -k xyz.log output is 221 ...