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

learn more… | top users | synonyms (2)

41
votes
5answers
8k views

Why do hard links exist?

I know what hard links are, but why would I use them? What is the utility of a hard link?
4
votes
3answers
2k views

How to determine what filesystem a directory exists on?

I have an NFS share which is shared across about two other machines. I recently realized that one of the servers isn't sharing the directory and is keeping files all for itself. Is there a way to see ...
10
votes
1answer
3k views

Is it possible to run a webdav fuse client with no root access?

I have seen examples showing how to use davfs2 under linux, but each has involved one of these things: Running mount as root Adding an entry to /etc/fstab Running mount.davfs setuid, which, alas, ...
7
votes
1answer
2k views

When is exFAT coming to Linux? [closed]

It seems that exFAT is to be the next standard filesystem for removable media. The problem is, it is designed by Microsoft and made proprietary. However, it is the standard FS for the upcoming SDXC ...
9
votes
2answers
4k views

recursively change file permission but not directories?

I was doing a mass recursive change of permissions of some files that I had migrated to a unix system. I changed them to ug+rw, but then I found that I could not traverse subdirectories. I looked at ...
2
votes
1answer
118 views

Is there any method to mount a block of memory as a filesystem in linux?

I have a question,in linux, is there any method to mount a block of memory as a filesystem? For example, in X86 architecture, when power on, I reserve a block of memory about 8 Mbytes, and then when ...
5
votes
2answers
3k views

Permission denied (even as root) on a mounted ISO image with Furius ISO Mount

I mounted a ISO image with Furius ISO Mount. I cd to the mounted directory and tried to copy a file with sudo cp file /dir but cp writes error message cp: cannot stat `file': Permission denied ...
10
votes
3answers
2k views

Why is sorting files by access time not working?

I tried to use command ls --time=atime it was working in one directory but wasn't working in another directory. I opened certain files in vim, evince and other applications but after the command file ...
5
votes
3answers
2k views

recursively copy only images and preserve path

I'm working on a website migration. I have a scrape of the site, with all the files and directory structure as you would see them in the URL. I want to pull all images, maintaining the directory ...
25
votes
1answer
4k views

What do the device files in /dev actually do?

(Not a duplicate of Understanding /dev and its subdirs and files) I was browsing around my filesystem and for the first time I took a second to analyze my /dev directory. I was surprised by the ...
3
votes
3answers
1k views

What is the safest hard drive format for archiving media storage data?

What is the safest hard drive format (NTFS, HFS+, XFS, ZFS, ...) for archiving or/and storing media (data)? I'd prefer to have the data not corrupt and be relatively safe from corruption and other ...
3
votes
2answers
76 views

Text files with sections in common with a given file

I need to maintain a set of plain text files saved in a directory which all have a section taken from another file. An example follows: Files: /directory/textfile1 (every other file in the directory ...
2
votes
1answer
8k views

how to make read only filesystem writable on busybox?

I want to change some files on my router. Firstly i can change everything in /var, but i want to change /etc/fstab. when i try to change it, i get an error message that says filesystem is read only. ...
4
votes
1answer
1k views

What happens to partition labels after removing a partition?

What will happen to all the remaining partition labels if I remove a single partition? For example if I have a layout that looks like this: /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sda5 and if ...
3
votes
1answer
826 views

How race conditions affect reads and writes (that happen at the same time)

Let's say I open a file a for reading. What if an application, let's call it aWriter writes to this file in random intervals. Are there any possibilities of me receiving improper file contents if I ...
6
votes
3answers
6k views

How to resize a VirtualBox HDD image

I initially created a dynamically expanding VirtualBox image, and have tried to increase its hard drive space: VBoxManage modifyhd "VirtualBox VMs/JHBuild/JHBuild.vdi" --resize 16384 After that, I ...
4
votes
2answers
1k views

How to construct a read-only compressed modular filesystem

I am designing a Linux distro and was toying with the idea of creating pre-packaged compressed bits of the filesystem that are merged with a read-only file system, and from there stacked under a ...
5
votes
2answers
4k views

Using vim to view the contents of a directory file

As I understand, in Linux directories are mostly normal files w/ some special handling (e.g. 'rm' a file is ok; 'rm' a dir will complain w/o -r). When I execute the following bash commands: mkdir ...
4
votes
4answers
4k views

How to recover a file just deleted [duplicate]

I just deleted a file in Nautilus with Shift+Delete, which warned me that "If you delete an item, it will be permanently lost." I wonder if there is no way to recover the file? My OS is Ubuntu 10.10. ...
9
votes
4answers
6k views

How are directories implemented in Unix filesystems?

My question is how directories are implemented? I can believe a data structure like a variable e.g. table, array or similar. Since UNIX is Open Source I can look in the source what the program does ...
1
vote
1answer
269 views

did a “ sudo go-wrx” on / … oops, broken

OK, I was trying to set up ssh to work properly, and a website said it was really picky about permissions, and to use go-wrx on ~/.ssh, and that / and /home need to have at least go-w permissions. on ...
7
votes
3answers
2k views

Why do we need to specify partition type in fdisk and later again in mkfs?

I'm a little confused about fdisk and mkfs. So - here is typical USB flash drive partitioning and formatting: umount /dev/sdb fdisk fdisk /dev/sdb Command (m for help): d Selected partition 1 ...
17
votes
3answers
5k views

What are the advantages of Btrfs for end users?

Btrfs has begun to gain some momentum in replacing ext4 as the default filesystem of choice for a few distributions such as Fedora Core 16. It is experimentally available in a number of other ...
2
votes
1answer
69 views

Creating Directories: with Permissions

I need to create a directory that is RW to all users using chown. what arguments should I pass chown to get a file with those permissions? Or maybe there is an even better way to do it......
2
votes
1answer
729 views

How are NTFS drives handled by Linux? Nothing is in fstab yet it's automounted. Nothing in mtab yet it's currently mounted

I'm running Fedora 14 with the 2.6.35.13-92.fc14.i686 kernel and Gnome 2.32.0. I have a few NTFS drives that are mounted when I start up. However, there is no entry for them in fstab and nothing in ...
362
votes
3answers
129k views

What is the purpose of the lost+found folder in Linux and Unix?

There is a folder at the root of Linux and Unix operating systems called /lost+found/ What is it for? Under what circumstances would I interact with it? How would I interact with it?
2
votes
1answer
1k views

CLI filesystem benchmark for random read/write with specified block size

I'm in search of a filesystem benchmark utility. I basically want to run a test which should be able to do random reads/writes on a specified drive with a given block size. e.g. a 4K random write on a ...
4
votes
2answers
493 views

How to configure CONFIG_DEFAULT_RELATIME to disable relatime

Since linux 2.6.30, filesystems are mounted with "relatime" by default. In this discussion, Ingo Molnar says he has added the CONFIG_DEFAULT_RELATIME kernel option, which: makes 'norelatime' the ...
11
votes
1answer
2k views

When was `relatime` made the default?

What is the first Linux kernel release to set relatime as the default mount option?
3
votes
2answers
185 views

How to detect out-bound port from PID

I have several applications that run on random ports. How would I take the pid or the file location and find which port it is running on? Example of desired output: www-data/apache = 80 ...
3
votes
2answers
3k views

Keep local copy of nfs mount on computer

I mount all my home directories and what ever else on my laptop when it is on my home network. I was wondering if there is a way to keep a local copy of the nfs mount when my laptop is off the ...
4
votes
2answers
383 views

Sometimes I feel like a directory, some times I feel like a regular file

For organizational purposes I would like a certain filesystem object which most of the time appears as a file, on occasion, to appear as a directory. The basic idea is that generically for cp, mv, ...
1
vote
2answers
278 views

Can I create a new partition from the free space inside my reiserfs-formatted /home partition?

Ok, I have Ubuntu installed but I want to install Windows also (dual-boot). Problem is, I don't have a free partition. I have my root partition (15 GB), and my /home partition (300 GB). The home ...
2
votes
2answers
2k views

iscsi target to a folder of a mounted parition?

i'm thinking about installing and setting up iscsitarget on my Debian squeeze box. so far, the examples i saw on various Google searches and the debian wiki: ...
1
vote
1answer
83 views

What do I install into a given install prefix

Which directories should I expect to have in an install prefix when I'm writing makefiles? I've noticed that in the common prefix /usr, there is no /etc, yet there is an /include dir, which isn't in ...
5
votes
3answers
6k views

How do I open a .bak file on Linux?

I have received a file of .bak format, let it be foo.bak. I don't know if it is a MS-DOS file or Linux/Unix file. What I know is that I can't open it because my Linux (Ubuntu) does not give any hint ...
5
votes
1answer
2k views

What is a fragment size in an ext3 filesystem?

This is an output from dumpe2fs: root: ~/# dumpe2fs -h /dev/sdb3 | grep -i 'fragment|block size' dumpe2fs 1.39 (29-May-2006) Block size: 4096 Fragment size: 4096 Fragments ...
2
votes
2answers
6k views

Suse filesystem turns read-only

I've installed openSUSE 11.2 (64bit) a while ago, and am mainly using it as a dedicated Apache hosting machine. Everything has been working properly for a while (~1 month), but as of a few days back, ...
-2
votes
1answer
758 views

“Clean” Filesystem Hierarchy

The Linux filesystem hierarchy is full of unused folders that only exist for historical reasons. Do any distros install with only the directories that are actually used?
14
votes
3answers
5k views

Automatically rename files when they are placed in a specific directory

Is it possible to automatically rename a file when it's placed in a specific directory? For example I have a directory named "dir0".I move or copy a file named "file1" to "dir0".then "file1" should ...
3
votes
1answer
18k views

EXT4-fs (sdc): VFS: Can't find ext4 filesystem

In short, this is where I found the best answers to my problem with my disks: https://help.ubuntu.com/community/DataRecovery During Fedora 15 installation, I added all my 3 drives to be mounted on ...
3
votes
0answers
133 views

129 MB used space shown in the SD card even after formatting it with mkfs.ext4 [duplicate]

Possible Duplicate: ext4: How to account for the filesystem space? The full 2 GB space doesn't get shown as free space even after fully formatting it with mkfs.ext4. Are these some system ...
9
votes
2answers
1k views

Choosing filesystem for a 16TB Raid

I'm just putting together a machine with eight 2TB disks. I will be using Raid 6 (12TB of usable capacity) on top of them, but I'm not sure whether I should make LVM on top of the RAID, or what ...
1
vote
1answer
239 views

arch linux installation, “could not create filesystems”

im installing arch linux, the x86-64 net install. during the part where the hard drive is being processed/erased, i get: "Warning: Could not create all needed filesystems. Either the underlying ...
9
votes
2answers
4k views

Several questions about file-system character encoding on linux

Due to a lot of file exchange works between Windows (GBK encoding) and Linux (UTF-8 encoding), it will encounter character encoding issues easily, such as: zip/tar files whose name contains chinese ...
5
votes
3answers
24k views

How to check if a file is corrupt or not?

Are there any general solutions to check if a file is corrupt or not? For example, whether a video file is bad, or a compressed file is corrupt, etc.
1
vote
1answer
278 views

Do the file descriptors get lost when remounting a file system?

If I remount the file system on /home with: mount -o,remount /home will the open file descriptors be lost?
2
votes
4answers
583 views

Fast incremental searching of files from shell

I like the command-t script in vim editor that is able to intelligently and incrementally search for files. Is there some similar program that is able to search from shell? It would be great if it ...
1
vote
2answers
481 views

Status of adding Reiser4 to the Linux kernel

I used the Reiser4 fs for some time and would love to see it get into the mainline kernel. I would think the project can still go forward even if Hans is not able to contribute these days. Is there ...
7
votes
1answer
2k views

When does UNIX “defrag”? (specifically Solaris)

On Windows, there is Disk Defragmentor that runs every so often to make files contiguous again. I explain this to users in lay-men terms, but at the same time, I would like to mention yet another +1 ...