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

learn more… | top users | synonyms (2)

3
votes
1answer
42 views

Where are information stored information about hard/soft links

Where does the *nix system store information about number of hard links to a specific inode? I can't find any information about that. Everywhere what a hard link is but rarely a bit more advanced ...
5
votes
2answers
150 views

How to create a fixed size Linux ramdisk which does never swap to disk?

I want to create a fixed size Linux ramdisk which never swaps to disk. Note that my question is not "why" I want to do this (let say, for example, that it's for an educative purpose or for research): ...
6
votes
5answers
741 views

How does one find out how many bits a file has in one command?

I know I can use ls -lat to find out how many bytes has a file and then multiply by 8 to find out how many bits. But is this possible in only one command line?
3
votes
3answers
73 views

Ext4 - How to enable extra sanity, checksums, validations, tests of any kind?

I'm running Ext4 on a harddrive, and to be perfectly honest, I don't really trust the drive because it's old and has a few badblocks. I have nonessential data on the drive, so if it died tomorrow, ...
1
vote
1answer
60 views

Monitor file access count by user

I have written a script which is deployed just by putting it in a globally accessible location for all users. I want to log the usage of this script. Is there a way in Linux to find out how many ...
4
votes
2answers
232 views

Why is dd using direct slower writing to disk than to a file

I am trying to compare aggregate write rates when writing to a file in a GPFS file system, as compared to writing directly to a disk on a system with Red Hat Enterprise Linux Server release 6.4 ...
3
votes
1answer
56 views

File containing ext filesystem

Let's suppose I create a file, map it to /dev/loop0, and create a LUKS partition inside dd if=/dev/zero of=myfile bs=1M count=1000 losetup /dev/loop0 myfile cryptsetup -c aes-cbc-essiv:sha256 -s 256 ...
1
vote
1answer
152 views

fstrim trims more than half of partition size even though partition mounted with discard

When I installed my SSD I just mounted with discard and didn't sweat it. However today I was reading about the pros and cons of using fstrim instead and decided to run the program to get an idea of ...
0
votes
1answer
89 views

Change the root filesystem on an embedded system

I'm using Buildroot to generate an embedded Linux with a kernel v. 2.6.39, which in the end starts busybox. Everything works fine when building with Initramfs as "rootfs". But Initramfs isn't the best ...
1
vote
1answer
113 views

Why is my ext4 filesystem recognizable only on the machine it was formatted on?

Xubuntu liveCD 11.04 running on "bad machine" with mdadm RAID1 array with an unrecognizable ext4 filesystem: To rescue some files, I installed a new hard drive and formatted it to ext4. I copied ...
2
votes
1answer
146 views

How to Free Up Space in a Dynamically Growing qcow2 VM image?

This has happened to one of my VM's that's running CentOS under Proxmox. I copied about 40 GB of data into a VM. I then deleted that 40 GB data a day later. Now taking a backup of the same VM takes ...
3
votes
2answers
1k views

How to repair a corrupted HFS+ partition from a damaged hard-disk?

I have a friend's Mac OS X disk that comes with an HFS+ partition. I am supposed to recover the personal data from this disk, and I'm not yet sure if the filesystem is corrupted or the disk is dying). ...
3
votes
1answer
58 views

Something like VMware “Changed Block Tracking” (CBT) in linux

I'm wondering if is there any possibility to track changed blocks in linux with an ext3/ext4 filesystem (or a specific one supporting it). I mean a feture like the Changed Block Tracking (CBT) ...
2
votes
1answer
67 views

Linux Equivalent of Windows Reparse Points?

I've recently become aware of a neat feature of Windows file systems called a reparse point. My understanding is that they are files whose contents when read are not the contents on the actual disk, ...
8
votes
2answers
254 views

Why does the Linux kernel report “out of disk space” when in reality it is out of i-nodes

A friend of mine who likes programming in the Linux environment, but doesn't know much about the administration of Linux recently ran into a problem where his OS (Ubuntu) was reporting "out of disk ...
2
votes
2answers
232 views

How to clean journals in ext3/ext4 filesystem? [closed]

Some preamble: I'm taking bitwise copy of disk devices (via dd command) from twin hosts (i.e. with the same virtualized hardware layout and software packages, but with different history of usage). To ...
3
votes
1answer
140 views

How do I mount a UFS disk in read-write mode?

I have a system drive that has filled up to the last sector, so that it doesn't boot anymore. The file system is UFS (it's an old Freenas 0.7 installation), but since UFS write support doesn't appear ...
0
votes
0answers
14 views

Recover deleted Directories in centos [duplicate]

How can we recover deleted directories in CentOS 64 bit. I have tried it with test-disk but unable to update. Can anyone let me know the solution?
0
votes
1answer
56 views

where is the user content on a Mac OS X disk?

I have a friend's Mac OS X disk that comes with an HFS+ partition. I am supposed to recover the personal data from this disk (it's not yet clear if the FS is corrupted or the disk dying), but for the ...
2
votes
1answer
25 views

How to prepare a new MicroSDXC card for use with Android?

After buying a 64 GB MicroSDXC card and plugging it into my Android phone, it wasn't recognized. What do I need to do to use the space on this device? Many articles suggest installing closed source ...
2
votes
0answers
57 views

How to restrict directory name creation to pattern?

I have FreeNas CIFS share. Mount command result: /dev/ufs/VSPHERE on /mnt/VSPHERE (ufs, NFS exported, local, soft-updates, nfsv4acls) I want to restrict users from creating directories that do not ...
0
votes
3answers
128 views

How are filesystem snapshots different from simply making a copy of the files?

by doing this, # btrfs subvolume snapshot /mnt/1 /mnt/1/snapshot # tree /mnt/1 /mnt/1 ├── a ├── snapshot │ ├── a │ └── subv └── subv └── b 3 directories, 3 files We can create snapshot ...
3
votes
1answer
87 views

Running du command reports infinity as disk usage

I'm trying to get the total size of what's stored in my home directory. To my surprise, it reports infinity after a few seconds: /home/user $ du -sh . Infinity Huh? I'm pretty sure there are no ...
2
votes
1answer
66 views

zerofree verbose returns what?

zerofree -v /dev/sda1 returned 123642/1860888/3327744. The man page does not explain what those numbers are: http://manpages.ubuntu.com/manpages/natty/man8/zerofree.8.html I found some code on ...
3
votes
1answer
101 views

How can I Allocate More Space to a Filesystem Mounted on /?

I am new to Linux so please forgive the incorrect use of vocabulary. My company has a private cloud that provisions VM's in a KVM. I received a RHEL 6.4. When I provisioned it, I asked for 50GB of ...
1
vote
1answer
64 views

Behavior of filesystem when mount option has been specified as error=panic

Background I have a debian system on which I have something like the following in the fstab file. /dev/sda1 / ext3 defaults,noatime,errors=panic 0 0 The option I wish to focus on is the ...
0
votes
0answers
41 views

Big file overwriten with a 0B file

I just opend for write (by mistake) a big file with data (about 200 MB). Now I have this file and it has 0B. I want to know If I can find raw data on disk for recovery... ?
2
votes
1answer
134 views

Temporary files problem

Recently my server started to behave weird and I have two issues which I believe to be related. In Vi : When I try to save a file I get : E509: Cannot create backup file and I need to save ...
1
vote
1answer
29 views

Monitoring PHP file access with loggedfs - access denied

I am trying to see how many files are included for each page call on my site. When I run: sudo loggedfs -f /path/to/webroot I get a printout of files - I think from a cron job that might be ...
-1
votes
2answers
37 views

Find files systemwide that are created within a date range [duplicate]

Can someone let me know how to use command line to find files systemwide (from root) that are created within a specific date range? Many thanks
2
votes
2answers
113 views

Meaning of Crossing filesystem boundaries, --one-file-system, etc

I'm planning to use rsnapshot to backup my whole Linux system, though I'm confused by -x option (same of one_fs in rsnapshot.conf). The man page says: -x one filesystem, don't cross partitions ...
0
votes
2answers
34 views

How to make file system on DVD

I ran the below command to check file system on a few DVDs. sudo file -s /dev/sr0 The DVDs which were working had responded properly to this command. But the DVDs which were not getting burnt (by ...
4
votes
1answer
42 views

How overwriting works for non-contiguous files?

In ext4 (or ext*, ntfs, fat) file system, if I overwrite a non-contiguous file will the same non-contiguous storage spaces be used or there's a different way to handle such?
2
votes
2answers
143 views

How to know file system of any medium like hard disk, CD/DVD, flash drive? [duplicate]

Is there any command or any way to know what file system is there on a medium like hard disk or CD/DVD or flash drive etc. From GUI gparted one can know the type on hard disks/pen drive but not of ...
4
votes
1answer
104 views

How can I dump the contents of a filesystem's superblock?

I understand that I can list the location of a filesystem's superblocks using the following commands. Example First get the device handle for the current directory. $ df -h . Filesystem ...
12
votes
1answer
494 views

What is the relationship of inodes, LBA, Logical Volumes, blocks, and sectors?

I'm a bit embarrassed to ask this question but I'd like to see a diagram that shows how the following things are related. It would be nice if the diagram also included any transforms required to map ...
6
votes
2answers
244 views

How can I find out a file's range of LBA's using its inode?

While answering this U&L question titled: What command do I use to see the start and end block of a file in the file system?, I tried to figure out if it was possible to determine a file's LBA ...
2
votes
3answers
149 views

What command do I use to see the start and end block of a file in the file system?

Is there any command that will output the beginning and ending blocks of any file?
1
vote
1answer
54 views

Running 'diff 'command after the 'find' command

I'm running this code on shell mv -f ~/sites/text1.txt ~/sites/text2.txt;find ~/sites/ -type f -exec sha1sum {} >> ~/sites/text.txt \;diff ~/sites/text1.txt ~/sites/text2.txt; However every ...
3
votes
2answers
65 views

Explanation for mount -t and mkfs

What is the purpose of specifying which type of file system will be mounted with argument [-t] if you previously already used mkfs.[whatever] to format your HDD/flash drive? I have no problem in ...
0
votes
0answers
123 views

touch: setting times of No such file or directory

I got strange issue with TeamCity server (from log-file): [2013-12-26 16:48:52,915] WARN - jetbrains.buildServer.SERVER - Failed to save custom data to the file: ...
0
votes
0answers
81 views

What's the problem with fsck.ext3?

It seems there is some problem with my HDD in my satellite box. The box records to and plays video from the HDD, but occasionally it hangs (it was stable before). It's Linux version ...
0
votes
1answer
278 views

Granting all users access to mounted CIFS shares

I'm trying to set up a debian server that will run several network-based services. These services need access to an external network drive to store their data. For security reasons, I have set up each ...
1
vote
1answer
122 views

How to change swap partition from primary to logical?

I was installing Mint on dual boot with Win8 and I accidentally created primary swap partition. Is there any way I can change the partition type from primary to logical? Or do I have to delete those ...
0
votes
1answer
279 views

Elementary OS System Settings has disappeared

I don't know how this happen. Part of the system setting has disappeared. How have any idea to restore them ?
0
votes
1answer
145 views

How to create a volume group, logical volume and a file system on AIX?

I'm getting some difficulties to create a file system on an AIX server. In Linux the task is easy and takes four commands, but I cannot figure out how to do it in AIX. On Linux I'd do the following: ...
0
votes
3answers
180 views

noexec on /tmp and /var/tmp directory

Our client servers are running old version of jboss (Jboss 4.0) which has lots of known vulnerabilities. Result is that the server is hacked and we are seeing some unknown executables running from ...
2
votes
1answer
81 views

Relation between “Block Size”and “Upper Limits” in ext2

A similar looking question asks for the reason why the upper file limit could be 2 TB in ext2. I am trying to understand but the Documentation on ext2 but find this hard. Please correct me if I'm ...
6
votes
2answers
108 views

Linux File Versioning?

We are migrating from A VMS environment to a Linux environment for some old alpha servers we are decommissioning. The one challenge I have not been able to overcome is file versioning. VMS keeps ...
3
votes
2answers
103 views

How to fake a filesystem that cannot be mounted by others

I'm currently working on a project. There's an Ubuntu Linux system installed on a disk, DA, mounting the other disk, DB. What it requires is that DB can be only mounted by DA in order to prevent data ...