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

learn more… | top users | synonyms (2)

3
votes
2answers
181 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
344 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
276 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
5k 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
5k 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
701 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?
13
votes
3answers
4k 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
17k 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
238 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
21k 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
249 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?
1
vote
4answers
528 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
478 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 ...
4
votes
2answers
3k views

How to resize an IMG file's partition info?

I made an ISO this way: sudo partimage save /dev/sdc1 /media/56AE8240AE82191F/Backup/xfcefat.iso The resulting iso file is very small but when mounted I see that it has correctly preserved the ...
4
votes
1answer
245 views

With full data journaling, why does data appear in the directory immediately?

I've got a question regarding full data journaling on ext3 filesystems. The man page states the following: data=journal All data is committed into the journal prior to being written into the main ...
11
votes
1answer
12k views

Difference between block size and cluster size

I've got a question concerning the block size and cluster size. Regarding to what I have read about that I assume the following: The block size is the physical size of a block, mostly 512 bytes. ...
1
vote
1answer
70 views

What are the ways to improve system stability and prevent data loss in conditions of frequent hard reboots and/or kernel panics?

Suppose we are working in environment where you can't be sure that your computer won't just suddenly shut off. What measures can be taken to improve system's (unix) resist to such failures? And how to ...
18
votes
4answers
5k views

The merits of a partitionless filesystem

I ran into something a couple of weeks ago that I'd never seen before: A filesystem (ext3 I believe) installed to a storage device without a partition. In essence /dev/sdb was the entire filesystem. I ...
34
votes
2answers
13k views

What is this new /run filesystem?

I just ran df -h a minute ago and noticed a filesystem has been added that I'm not familiar with. Does anyone know why /run exists? Is this something that's been added by the kernel? By Arch Linux? ...
3
votes
2answers
1k views

Virtualbox, mounting guest directory on host computer

Is there a way to mount a directory residing on my VB guest (linux) on my host (linux)? I know I can do it the other way around with the shared folders feature on Virtualbox, but is there a way to do ...
3
votes
3answers
2k views

Adding an unused partition to a linux filesystem

I am running kubuntu 11.04. I installed it in a dual-boot scenario on a single drive, with Windows XP installed first. The XP installation is fubar so I now would like to use the space in kubuntu. I ...
5
votes
2answers
831 views

How does the Unix file privilege system differ from that of Windows?

Related question: How does the Linux file system/organization differ from Windows? I am somewhat familiar with how privileges work when it comes to files and directories - each entry has an owner and ...
4
votes
2answers
6k views

ext4: How to account for the filesystem space?

I've recently formated a 1.5 TB drive with the intention of replacing ntfs with ext4. Then I noticed that the files I saved don't fit on the new partition. df: ext4 (ext3 & ext2 show the same ...
11
votes
4answers
3k views

What is the “directory order” of files in a directory (used by `ls -U`)?

According to the man page for ls, ls -U means: do not sort; list entries in directory order. What does "directory order" mean, and how is it determined? The following test (executed on an ...
19
votes
4answers
2k views

File system for an SSD drive

I always thought that traditional file systems, are geared and optimized for non-ssd drive, where, for instance, data locality is important, and fragmentation is problematic. Is there a file system ...
3
votes
3answers
17k views

How do I remove a Read-only file system from a usb drive

During an ill-fated attempt to get tinycore linux to boot from a USB drive I managed to create a bunch of files that I now cannot remove. fortino@rebel:/media/working/boot/isolinux$ rm *.* rm: ...
3
votes
2answers
1k views

How many files can be saved in one directory on Linux? [duplicate]

Possible Duplicate: Number of files per directory I need to save 1 milion static html files in one directory as there is not possible to group the files into the directories (all files must ...
0
votes
2answers
128 views

where on the filesystem do user-generated system scripts go?

I have a couple command line php scripts and also php pages that call the same class file. Instead of having mutiple copies of it floating around, I want to put class.myApi.php in one central location ...
3
votes
1answer
1k views

Where can I see the last mount time?

E.g: I need to know when was the last time a pendrive was mounted. Where could I see that? The pendrive has e.g.: FAT32, EXT3 filesystem.
21
votes
5answers
5k views

Do journaling filesystems guarantee against corruption after a power failure?

I am asking this question on behalf of another user who raised the issue in the Ubuntu chat room. Do journaling filesystems guarantee that no corruption will occur if a power failure occurs? If this ...
26
votes
1answer
2k views

Why does “ls *” take so much longer than “ls”?

I have a couple of files in a directory: $ ls | wc -l 9376 Can anybody explain why there is such a huge time difference in using ls * and ls? $ time ls > /dev/null real 0m0.118s user ...
12
votes
3answers
10k views

How to change partition UUID (2 same UUID)?

I have a fedora guest OS in VMware. I want to expand /boot partition, so I add another virtual disk to this VM, and try to clone the disk. After dd if=/dev/sda1 of=/dev/sdb1, blkid report that ...
4
votes
1answer
2k views

What options are there for tuning Linux file system caching?

What various types of caching are possible in the ext3 file system and how can their values be changed using system calls or other methods? I don't want to use commands or tools.
25
votes
2answers
10k views

What mount points exist on a typical Linux system?

I have 2 questions. During Linux installation we specify memory space for 2 mount points - root and swap. Are there any other mount points created without the users notice? Is this statement ...
1
vote
2answers
1k views

How can I fix linux disk without unmount it?

I had large file 200GB in my ext2 disk, then I deleted it(three are no files in Trash). And I haven't gained any free space. I don't want to use fsck as it requres me to unmount disk. I were windows ...
13
votes
3answers
2k views

How can I de-fragment a drive using Ubuntu?

Is it necessary to defrag drives in Ubuntu? If so, how do I do it and how often should it be done?
6
votes
1answer
915 views

How are extended attributes stored and preserved?

I have a small question about extended file attributes. Assume I label my files with metadata in extended attributes (e.g. to account for the integrity - but this does not matter for my question). The ...
4
votes
2answers
2k views

Determine file system timestamp accuracy

File timestamps accuracy is limited to one second for EXT3, one microsecond for UFS, and one nanosecond for EXT4 (at least according to experience). Is there any way to determine this based only on ...
21
votes
6answers
6k views

What's the most “correct” mount point for a permanent NTFS partition?

I have an NTFS partition (containing a Windows installation from which I dual boot) that I would like to permanently mount from my Linux installation. Problem is, I can't figure out what the ...
4
votes
2answers
543 views

How to synchronize a networked drive and an external drive (Ubuntu & OS X)?

In light of a recent hardware failure, I've decided that it's time to be a little less lax regarding back-ups. What I have: An Ubuntu 10.10 'server/NAS' A MacBook 5,2 A WD external HDD The server ...
44
votes
1answer
36k views

How do I find on which physical device a folder is located?

Specifically: I did sudo mkdir /work, and would like to verify it indeed sits on my harddrive and not mapped to some other drive. How do I check where this folder is physically located?
4
votes
3answers
1k views

When networkmanager is used, OpenSuSe gets stuck during boot for 10 minutes

I have this problem on all machines that I every installed (different configurations, different geographical locations, even different OpenSuSe versions) and it's extremely irritating. When I turn on ...