A filesystem is a method of storing and organizing computer files and their data.

learn more… | top users | synonyms (2)

2
votes
3answers
233 views

Use EncFS to encrypt files so that a particular user or process can access them, but root cannot

I have a process which I would like to have access to an encrypted file system. This is very easy to do with EncFS, but this requires a user mounting the encrypted file system, therefore giving any ...
1
vote
2answers
159 views

Extract TAR to SD-Card and verify contents afterwards

We currently extract a TAR archive to a SD-Card like this tar xf ${ROOT}/rootfs.tar -C /cynox/${DRIVE}/${TARGET} As a side note: The rootfs.tar contains files for an embedded Linux system. Some of ...
5
votes
2answers
179 views

A virtual file containing the concatenation of other files

Is there a way of creating a filesystem object akin to this: mknod files p cat file1 file2 ... fileN > files but such that it can be seeked in, as if it were a regular file?
1
vote
3answers
194 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: ...
2
votes
1answer
209 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
176 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 ...
2
votes
3answers
223 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
35 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
87 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
43 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?
0
votes
3answers
126 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
347 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
81 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
29 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 ...
3
votes
1answer
67 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
210 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
68 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 ...
2
votes
0answers
137 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 ...
0
votes
0answers
24 views

Can Any one Suggest good Linux OS Tutorial? [duplicate]

Can Anyone suggest me good tutorial regarding Linux os . My intention is to learn , 1) How Linux OS schedules the processes. 2) different process types. 3) operations on the process. 4) Linux ...
0
votes
0answers
27 views

Which of HIDS can do this?

I'm currently in choosing of HIDS ( Host-based intrusion detection system ). I'm discovery etckeeper on my ubuntu. My question is: Which of HIDS can trace each file on the filesystem? E.g. keep ...
1
vote
2answers
485 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 ...
1
vote
1answer
178 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
287 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 ...
2
votes
2answers
335 views

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

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
46 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
161 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
537 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: ...
2
votes
1answer
309 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
519 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 ...
6
votes
3answers
242 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% ...
3
votes
1answer
215 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
116 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
98 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
83 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
71 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
108 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
141 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 ...
1
vote
2answers
97 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
170 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
94 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
111 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
80 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: ...
1
vote
2answers
255 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
117 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: ...
4
votes
3answers
111 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 ...
0
votes
1answer
116 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 ...
1
vote
4answers
3k 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 ...
6
votes
2answers
259 views

Creating formatted partition from nothing

I need to create filesystem with just one partition from nothing (/dev/zero). I tried this sequence of commands: dd if=/dev/zero of=mountedImage.img bs=512 count=131072 fdisk mountedImage.img n ...
1
vote
1answer
90 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
47 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 ...