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

learn more… | top users | synonyms (2)

5
votes
1answer
383 views

Problem on Linux NAND Root Filesystem

I'm have a JFFS2 root filesystem running on a large NAND device. Every once in a while, when I restart the computer, I get error messages about invalid ELF headers when /sbin/init or /bin/login try ...
3
votes
3answers
2k views

Really strange FAT32 file listing problem

I'm mounting a FAT32 drive on my NAS (which has a USB port), and hitting a strange issue when I use the ls command on the drive root: ls: cannot access ???²é?u.g: Input/output error ls: cannot ...
4
votes
3answers
2k views

How many bits is the access flags of a file?

How many bits on a linux file system is taken up for the permissions of a file?
3
votes
1answer
119 views

Is it safe to leave a enc folder mounted?

I was looking at this and ecryptfs seems cool. I'd like to use it on my server to encrypt git pushes. I dont want to ssh in everytime to mount/unmount the encrypted folder. However once in a while ...
9
votes
2answers
855 views

How to manage huge amount of files in shell?

$ ls ./dir_with_huge_amount_of_files/errors/ Suppose a directory is full of pictures with unix timestamps, I mean a lot measured in many GBs or even more. Shell-commands like ls will get ...
6
votes
2answers
975 views

Change file creation time on a FAT filesystem

I need a way to change the creation time of a file on a mounted FAT32 volume. I have to do that because my MP3 player will only read files sorted by this creation time. If I can find a way to set the ...
10
votes
2answers
4k views

Why is deleting files by name painfully slow and also exceptionally fast?

Faux pas: The "fast" method I mention below, is not 60 times faster than the slow one. It is 30 times faster. I'll blame the mistake on the hour (3AM is not my best time of day for clear thinking :).. ...
3
votes
1answer
159 views

Filesystem and journal layout

Is there any tools or some way in linux which can be used to view internals of filesystems ? How to view the inode related structures and journal ? and cached pages of files (pagecache).
18
votes
7answers
7k views

Linux equivalent to ReadyBoost?

Is there a kernel module or some other patch or something similar to Windows' ReadyBoost? Basically I'm looking for something that allows disk reads to be cached on a Flash drive.
39
votes
5answers
15k views

How can I create a /dev/null-like “blackhole” directory?

I would like to create a "/dev/null" directory (or a "blackhole" directory) such that any files written to it are not really written, but just disappear. I have an application that writes out large ...
6
votes
1answer
6k views

Modifying a squashfs,

Obviously I don't want to actually modify a squashfs. What I would like to do though is take an existing squashfs, a set of files and create a new squashfs which is identical to the old one except ...
3
votes
1answer
211 views

EXT3 file system pre digest material

I am looking for understanding EXT3 filesystem source code. I think I need a little pre-digestion to fully understand the code. Can anyone please suggest some material(blog etc.) where I can get some ...
158
votes
4answers
28k views

/usr/bin vs /usr/local/bin on Linux

Why are there so many places to put a binary in Linux? There are atleast these five: /bin/ /sbin/ /usr/bin/ /usr/local/bin/ /usr/local/sbin/ And on my office box, I do not have write permissions ...
3
votes
2answers
617 views

How to test file system correction done by fsck

How to make sure that fsck is correcting corruptions while keeping the integrity of file system? Suppose clients are writing lots of files through NFS to server, and there happens something that ...
12
votes
5answers
7k views

How to cache or otherwise speed up `du` summaries?

We have a large file system on which a full du (disk usage) summary takes over two minutes. I'd like to find a way to speed up a disk usage summary for arbitrary directories on that file system. For ...
8
votes
4answers
7k views

Is it possible in bash, to start reading a file from an arbitary byte count offset?

I want to locate a date which is somewhere in an 8 GB log (text). Can I somewhat bypass a full sequential read, and first do binary splits of the file (size), or somehow navigating the filesystem ...
6
votes
2answers
288 views

Allowing user to read only parts of NTFS filesystem

After installing ntfs-3g I have an option in nautilus to mount a Windows directory but I need to give root password. While I have no objection to giving root password I would prefer to be restricted ...
48
votes
4answers
39k views

Reserved space for root on a filesystem - why?

I understand that by default, newly created filesystems will be created with 5% of the space allocated for root. I also know you can change the defined space with: tune2fs -m 1 /dev/sdXY What I'm ...
2
votes
2answers
556 views

How many entries are created when you make a new directory in *nix?

As per the question, I am thinking mkdir ~/a is either two or three: 1 entry for the dir it sits in (~/a) 1 entry for itself (cd a && ls .) and/or 1 entry for itself again (cd a && ...
5
votes
2answers
327 views

Choosing the file system to use with LVM

Since I found out about LVM I have been giving more thought to the process for choosing the file system for my future installs. Usually I'd always choose whatever default option the distro would ...
11
votes
3answers
3k views

What file systems on Linux store the creation time?

Are there any (good known, reliable) file systems on Linux that store the creation time of files and directories in the i-node table? If there are, is the "changed" time replaced by the creation ...
5
votes
3answers
130 views

Network Filesystem + Local Access

I need to set up a network fs, so that I can mount a directory from Box A on to Box B and Box C. However, I need those files to not be transferred from Box A upon every access request; basically, I ...
1
vote
2answers
426 views

Swap root at runtime

I am developing an embedded Linux system. The system is usually installed by creating a ISO file which is written to a USB stick the board can boot from. To make the installation possible to do ...
0
votes
1answer
1k views

How to copy files nested in directories that match a pattern?

I'm looking to copy files from subdirectories that match this pattern vendor/plugin/*/tasks/*.rake into a folder lib/tasks I think that this could be done several ways, but wanted to see if a ...
1
vote
1answer
6k views

Where are the mount points defined in CentOS?

There is a mount point at /mnt/mountname and it goes to a large SAN with lots of storage but it's mounted as a read-only filesystem. I want to add a mount point with a different name that's ...
4
votes
3answers
405 views

What would be a good choice for an elastic file system (for adding storage at a later date)?

I'm currently running a Debian 6.0 server with EXT3, but I'd like to move over to Arch. It's being used as a file server right now with a 1TB drive in it (of which 650GB in it is used). What I'd like ...
2
votes
2answers
879 views

How to run e2image to backup a remote CentOS server?

Our server is hosted out of the country, I just have SSH access. I want to take an image backup of my server. I found the e2image utility to take an online backup of that server, but when I run ...
5
votes
1answer
300 views

Why do I need ntfs-3g when I have already enabled NTFS support in the kernel?

When configuring the kernel I see an option to add read-write support for NTFS. Then when mounting my NTFS partition I still have to install ntfs-3g and pass ntfs-3g as the type. I thought if I add ...
1
vote
2answers
340 views

How are directories managed in the filesystem?

On behalf of this particular question I would like to know how directories are managed in the file system. What does the author of the above question mean by telling each directory has n+2 ...
55
votes
3answers
2k views

Why does '/' have an '..' entry?

This just baffles me. Why does the root directory contain a reference to a parent directory? bob@bob:/$ ls -a . build home lib32 mnt .rpmdb sys vmlinuz .. cdrom ...
15
votes
3answers
2k views

Is there a limit of hardlinks for one file?

Is there a limit of number of hardlinks for one file? Is it specified anywhere? What are safe limits for Linux? And what for other POSIX systems?
2
votes
2answers
6k views

Formatting external drive in CentOS previously used on OS X

I have a USB key they I want to use on a CentOS box. The USB key was previously used on OS X so I want to erase it to make it writable by CentOS. Can someone help me with the commands I need to run? ...
1
vote
1answer
2k views

Compared to other filesystems why is ZFS so slow, with incoming data?

Ok. I get about 1/3 of the speed on the same drives when using ZFS. Now, I understand that ZFS is self-healing and that everything is also stored with its hashes. This makes it safer to use. I ...
6
votes
4answers
2k views

How to setup a “data” partition shared by multiple Linux OS'es?

Currently I have a NTFS partition that contains shared data. My rationale is, NTFS doesn't have any idea about file permissions, so I won't have any trouble using them in a multi-boot system ...
8
votes
2answers
1k views

How to repair an ext3 partition after broken resize operation?

I was using gparted to resize a near-terabyte ext3 partition, adding about 40 GB to the left. After nearly 12 hours of moving data (and with 23 more hours estimated to remain) the system hung. Now ...
8
votes
2answers
13k views

How do you make samba follow symlink outside the shared path

This is Ubuntu server 10.04 64 and samba 3.4.7. I have a shared directory /home/mit/share and another one /home/temp that I link into the shared one: ln -s /home/temp /home/mit/share/temp But on ...
3
votes
1answer
7k views

Mount samba filesystem into RHEL 5.5

I have a trial RHEL version for a proof of concept where I was asked to mount a windows filesystem into linux. I tried mount -t smbfs -o username=samba,password=samba //Desktop/Public /mnt/public ...
3
votes
1answer
6k views

What is an inode? [duplicate]

Possible Duplicate: What is a Superblock, Inode, Dentry and a File? Documentation of Unix-file-systems contains often the term 'inode'. What is that and what does that? Why have ...
36
votes
3answers
10k views

What is the difference between procfs and sysfs?

What is the difference between procfs and sysfs? Why are they made as file systems? As I understand it, proc is just something to store the immediate info regarding the processes running in the ...
1
vote
1answer
1k views

What is the significance of Linux's Disk caching Mechanisms?

I would like to know the exact meaning and significance of Linux's Disk caching Mechanisms. In one of the articles I have read, page cache and dentry cache are two forms of them. Could somebody ...
4
votes
1answer
7k views

e2fsck: unable to set superblock flags on LogicalVolume

When I boot my machine either in normal mode or runlevel 1 it throws following error and I'm unable to boot the machine: checking filesystems /dev/MyGroup/LogVol00: UNEXPECTED INCONSISTENCY; RUN ...
54
votes
5answers
42k views

What is a Superblock, Inode, Dentry and a File?

From the article Anatomy of Linux File Systems by Tim Jones, I read that Linux views all the file systems from the perspective of a common set of objects and these objects are superblock, inode, ...
5
votes
1answer
370 views

What is the typical file limit of a folder on *nix file systems?

Obviously, if you stick a lot of files in one folder, the efficiency of various file operations is going to go down (e.g. ls takes a lot longer). However, what's the limit for how many files you can ...
9
votes
3answers
2k views

What are the benefits and downsides to use FuseFS filesystems?

I know some filesystems present themselves through Fuse and I was wondering about the pros and cons to this approach.
8
votes
2answers
355 views

How is file ownership affected across different systems?

As I understand Unix file systems, any file on a unix system must belong to a group and a user of the said system. A file cannot belong to a group or user that does not exist on the system. From that ...
3
votes
1answer
408 views

Are there any differences between mounting a /proc filesystem inside a chroot compared to mounting it from the outside?

Compare the following: mount -t proc none ./my_chroot/proc and: chroot ./mychroot mount -t proc none /proc
2
votes
2answers
158 views

Why does truncate fail for sizes above 2043G in ext3?

Why does this work: truncate -s 2043G foo ...while this fails: truncate -s 2044G foo Why 2043 gigabytes, of all values?
14
votes
1answer
7k views

Number of files per directory

I have a directory with about 100000 small files (each file is from 1-3 lines, each file is a text file). In size the directory isn't very big (< 2GB). This data lives in a professionally ...
2
votes
1answer
682 views

immutable-like flag for perms

Is there any chattr flag that would allow me to lock a file's unix permissons, and not change them without resetting the flag? The file itself should still be modifiable, I just want to prevent ... ...
1
vote
4answers
143 views

Linux compability file system

I need to develop a file system for Linux for my diploma work. Where can I find infomation about this theme? How can I test it and other?