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

learn more… | top users | synonyms (2)

3
votes
1answer
557 views

What do GDIR, GREG, VDIR, VREG mean in lsof output

The lsof manpage says the following about the TYPE column. TYPE is the type of the node associated with the file - e.g., GDIR, GREG, VDIR, VREG, etc. Can someone please explain (or point ...
5
votes
3answers
1k views

What are the advantages of the Unix file system structure

If I install an application in Linux for example Debian/Gnu Linux, the files of the applications are copied to many different directories in the file system. Some scripts goes into /usr/share .. ...
0
votes
1answer
367 views

The relationship between execute permission on a directory and its inode structure

My question deals with the relationship between the read and execute bits on a directory. I'm going to give my assumptions, first, all according to my current knowledge, then ask my question in bold ...
6
votes
3answers
1k views

Read a directory to see the file to inode mapping

I'm just learning about filesystems and it is said that a directory is just an ordinary file which keeps a list of file-inode pairs. If I try to open the directory Downloads with any of the following ...
1
vote
1answer
360 views

Filesystem with 1Mb block?

I'd like to make a partition for keeping ISO images of nightly builds. Most of files will be bigger than 1Mb. Unfortunately ext2/ext3/ext4 supports only 4Kb blocks. # mkfs.ext4 -b 1048576 -L DISTR -m ...
5
votes
2answers
10k views

Create and format exFAT partition from Linux

Is it possible to create and format an exFAT partition from Linux?
2
votes
2answers
68 views

Download copy of file which updates on change

Sorry about the title, I didn't know how to write it - It's kind of confusing. Ok, I am using my Raspberry Pi (Debian) and I store code on this server in which people have access to. My problem at ...
3
votes
1answer
647 views

How can I set a directory maximum size?

Is there an easy way to cap the size of a directory? I don't think there is but just wanted to make sure. I would like to set max directory sizes for some user home dirs as well as some other dirs, ...
1
vote
1answer
90 views

How do I give global access to a file in a private folder?

For example, I want all the files in /home/trusktr/Downloads/ to remain hidden from other users, except for one. I tried chmod 777 /home/trusktr/Downloads/someFile.avi but someFile.avi is still ...
0
votes
4answers
2k views

Optimal Setup for Windows & Linux - Sharing and Partitioning

This question gets a little complicated so please bear with me. So we have a new custom designed desktop which we will be mostly a dedicated machine for scientific computations in FORTRAN and ...
1
vote
1answer
240 views

Will kjournald takes too much space?

I am changing my hard disk to ext3 because journalling got so much write my server crash. Well, now I use SSD. Journalling is no longer the issue. But SSD are small. Will journaling takes so much ...
1
vote
1answer
846 views

Identify text/ascii files in Linux/Solaris

I have a little project to build bash script that search in the OS ( Linux/Solaris ) the current IP address from files and replace them with other IP address. The problem is that IP address could be ...
1
vote
0answers
135 views

Directly convert Archbang live on a USB drive to one such with persistent file-system

I have installed Archbang 2012.12.03 from ISO image on my USB drive, now I have a USB drive with a live Linux installed on it but at end of every session and rebooting system I faced with a fresh ...
5
votes
1answer
3k views

EXT4 FS needs journal recovery. What does this mean?

$ sudo file -s /dev/sdb1 /dev/sdb1: Linux rev 1.0 ext4 filesystem data (needs journal recovery) (extents) (large files) (huge files) What does "needs journal recovery" mean? Do I need to do ...
1
vote
0answers
120 views

Creating a Virtual filesystem to boot linux

I am trying to boot the linux kernel (bzImage) in QEMU but have had issues. After asking on U&L I found out that my problem was that I was booting the kernel without a filesystem to boot from. So ...
2
votes
1answer
859 views

How to find the type of an img file so it can be mounted

I have a .img file and I want to see what's inside of it. I tried mounting it, but I don't know what filesystem type it is. Is there a way to detect what it is so I can mount it? I'm using Ubuntu. ...
3
votes
1answer
390 views

Virtual file made out of smaller ones (for mac-like sparse bundle solution)

I'd like to recreate a feature of Mac OS X called sparse bundles (disk images made out of smaller files, making them easy to backup after a small change). For that I'm looking for a way to ...
4
votes
3answers
801 views

How do I point certain directory to /dev/null?

I am running CentOS with cPanel, which creates a custom log directory and writes the logs there. The result is that the IO for the hard disk goes sky high. If I do lsof I got: hostsite.com httpd ...
4
votes
1answer
145 views

How can I get a total for space used by a group of subdirectories

My file system is set up like: /ftp/data/ProductGroup*/ProductType*/Year*/Day*/ActualProductFile* ("*"denotes directory names that change) I'd like to find out how much space is being used for ...
16
votes
3answers
7k views

File system compatible with all OSes?

I use Linux and Mac OS X on a regular basis, and sometimes I have to use Windows. I need to use a flash drive on all three, and I need a filesystem that will work well on all of them. None of the ...
2
votes
1answer
79 views

Listing script's file dependencies

Given a shell script, is there an easy way to extract what files it manipulates explicitly (so not like concatenating some command and than eval-ing it)? E.g. #!/bin/bash . /etc/someconfig.cfg ...
8
votes
1answer
199 views

How to re-size partitions in a complete hard drive image?

I have taken a complete image of a hard drive using: dd if=/dev/sda of=/home/user/harddriveimg bs=4M It would seem to me, that I should be able to re-size the partitions within it after suitably ...
3
votes
3answers
1k views

How is GRUB able to read it's config file on ext3 fileystem?

I have read that GRUB can read ext2 filesystems and has modules for doing this. What is the location of the mod on a Redhat system and how about if the /boot partition is ext3/ext4 or other filesystem ...
3
votes
2answers
1k views

Filesystem monitoring

A script where we need to come up with a way for the disk space monitoring to be smarter. On smaller file systems, we still want to alert at 90% full, but on larger file sytems, we should only alert ...
5
votes
2answers
338 views

Why is cd not a file in /bin? [duplicate]

Possible Duplicate: Why is cd not a program? I noticed that every other commonly used util, like ls, cp, rm, etc. are actually files in /bin -- but cd is not. Nor is it in any other ...
1
vote
0answers
25 views

How can I access (including read and write) a linux file system from a windows machine on the same network [duplicate]

Possible Duplicate: How to share files between Linux and Windows? I have a Linux virtual machine (Hyper-V) acting as a web server on my network. I would prefer to browse it's file system ...
2
votes
4answers
110 views

Is there a structured format of version info for OS-level executables?

I am looking for a structured format of version info for OS-level executables, such as in /usr/bin and /usr/local/bin. The problem we are having is the inconsistent architecture between our PROD and ...
2
votes
0answers
146 views

Can a FAT32 and NTFS file system exist without UUID?

I have an USB disk drive partioned with 2 FAT32 partitions, which is not getting detected in the embedded device, but gets detected in a Fedora system. Basically in the udev rules, I am not able to ...
2
votes
1answer
112 views

What does the CONFIG_NLS_UTF8 kernel option do?

The kernel configuration contains an NLS_UTF8 option. It can be found under File systems → Native language support. What does it do? Its description maintains that it is needed for using a FAT or ...
6
votes
1answer
2k views

On the Fly Compression for a Directory

I have a directory that is always going to be storing text files that are rarely (think weekly) used. Naturally this is a great place to use compression. However, rather than having to use tar ever ...
2
votes
2answers
86 views

'tie' [nonexisting] files to programs

Recently, I just had an idea which turned out to be pretty useful under certain circumstances. But first some simple explanation: In Perl, you have the option to tie variables to some functions ...
3
votes
2answers
2k views

Must the filesystem be unmounted while extending an LVM logical volume?

I have seen some tutorials on extending an LVM2 logical volume. None of them instruct you to unmount the filesystem. They claim that you can extend an LVM volume while it is in use. Is this right?
1
vote
2answers
168 views

zfs one pool error

I have zpool with name zroot and zroot has 4 pool when electricity down system reboots and than i saw some error with 1 pool: Solaris: Warning: can`t open object for zroot/var/crash log_sysevent: ...
4
votes
1answer
1k views

Removing files that do not exist

I apologize for the possibly misleading title, but it is the best way I could think of to describe the problem, which is: I have several files that I can cat, but when I try to rm them I get a "No ...
4
votes
1answer
303 views

Can I read and write to alternate HFS+ file forks or NTFS data streams from Linux?

It's possible to mount both Apple HFS+ and Microsoft NTFS filesystems under Linux. Both filesystems support multiple content streams per file, though this is not widely used. Apple uses the term ...
1
vote
1answer
752 views

Trigger action each time a file is modified [duplicate]

Possible Duplicate: Can a bash script be hooked to a file? Is it possible to mount a mechanism to a file to perform an action (e.g. mark the change in some log file and such) each time the ...
0
votes
1answer
362 views

File permission mechanism in Unix like systems

Can some one please explain with a an example the file permission mechanism in Linux and other Unix like systems ? What are the nine bits for ? Why do we have a group id for a user as well as for a ...
2
votes
1answer
872 views

convert /dev/md0 to /dev/sda1

I used a Software-RAID I and want to access the data without RAID now. After mdadm --fail /dev/md0 /dev/sda1 mdadm --remove /dev/md0 /dev/sda1 I tried mount -t ext4 /dev/sda1 /mnt but dmesg ...
2
votes
2answers
1k views

Sphinx Search shutting down after `FATAL: accept() failed: Too many open files`

I'm running Sphinx Search Server V2.06 ( the latest stable release ) on an Amazon EC2 with Linux CentOS. In general it is running fine, but the searchd.log is showing this error over and over with ...
3
votes
1answer
393 views

Any command to view the file system internal fragmentation size under a directory?

If the block size of a file system is 4KB, then for a 1KB file, 3KB space(which is internal fragmentation) is wasted. So, under a directory, is there any command to summarize how much disk space is ...
5
votes
2answers
5k views

What causes /dev/disk/by-label to be populated?

I've noticed that Linux distributions typically have a /dev/disk/by-label directory, but this isn't always the case (For example, the CirrOS Linux test image doesn't have one). What's required on a ...
6
votes
1answer
786 views

Why could the size of the “dot” file “.” exceed 4096?

Today I found an "empty" directory with a size of 4MB. It had no visible contents, so I tried ls -lah. This showed me some hidden files (not very large). Searching for the reason why the directory ...
1
vote
1answer
395 views

Read/write access on raw NTFS image

I backed up an entire 32GB NTFS partition to a raw image with with dd. The file-system on the partition in accessible under Debian after mounting with: $ sudo mount -o ro,loop ...
2
votes
1answer
161 views

Why is some filesystem space used even though the filesystem is empty? [duplicate]

Possible Duplicate: ext4: How to account for the filesystem space? After googleing a little I find that ext4 reserve 5% for root: Reserved space for root on a filesystem - why?, ext2/3/4 ...
1
vote
0answers
279 views

Negative hdd usage. Available is larger than fullsize

Having issues with space accounting of lvm volume. 23G is available. But the full size of the partition is 20G. (So, it shows "-4.1G used" 0_O) > df -h Filesystem Size Used Avail Use% ...
6
votes
1answer
287 views

What filesystems preferentially reuse blocks from deleted files?

Related to this earlier question I asked, I'd like to know what filesystems will preferentially reuse blocks that are freed when files are deleted (if any exist)? I am only interested in stable, ...
2
votes
2answers
1k views

Is there an excellent tutorial on how to resize a rootfs partition (and shrink another) on a drive that is 100% allocated?

I'm experiencing the all-too-common "root partition full" situation. 100% of my hard drive is allocated. My home (ext4) partition has plenty of space to give up for my full root partition (rootfs). ...
3
votes
1answer
201 views

How do I choose between ext 3 and 4?

I tried looking at the difference, the main ones seem to be 4 supports more subdirectories in a file, supports larger files, has delayed write which I don't prefer as I don't want data loss. I also ...
24
votes
1answer
36k views

How to determine the filesystem of an unmounted device? [duplicate]

Possible Duplicate: Find filesystem of a partition from a script How to show the filesystem type via the terminal? I'm looking for a command that yields the filesystem type as mount would ...
4
votes
1answer
191 views

Unix and Linux without a file system?

I was reading Eric Raymond's the Art of Unix Programming, (Amazon and online) and at the very beginning of the book where he analyses what Unix does wrong he says: Having a file system at all may ...