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

learn more… | top users | synonyms (2)

5
votes
5answers
139 views

What are the alternatives to the FHS?

Please don't crucify me for asking this question. :) I'm a long time Linux user for over 15 years but one thing I hate with a passion is the mandated directory structure. I don't like that /usr/bin ...
0
votes
0answers
12 views

fs_usage: a part of stdout is missing.. Where did it go?

I'm using $ fs_usage -f diskio to spy on processus when I hear my hard drive spinning for no reason, so that I know who is working so hard.. Here is one sample line: 16:14:13.785568 ...
1
vote
2answers
38 views

Performance of `tar -xf` (block size related)

I'm recently working on optimizing the performance of tar -xf, i.e. untar a file. I notice that under default settings, tar -xf calls writes to write 10 KiB output at a time in chunks. However, this ...
1
vote
0answers
31 views

How do I find out hard disk model and serial number in amazon machine?

when check in local machine /proc/scsi/scsi file it contains Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: ST3160215AS Rev: 3.AA Type: Direct-Access ...
0
votes
0answers
27 views

To fix “Read-only File system” issue when SSH access to IP Camera

Currently I have a IP Camera, which allows the SSH access as root user. The build-in Shell is BusyBox 1.19.3 (but guess not relevant to this issue). There are a few directories, such as /bin, /root, ...
1
vote
1answer
18 views

How to increase the size of a vfat file system to exactly the size of the containing partition?

This is a further question after this one. I google for it, but most of the search results are about how to grow the partition and the file system at the same time. I think this question is simpler ...
0
votes
2answers
42 views

File System that is order sensitive [on hold]

Is there a file system that is unix compatible that is order sensitive? For example the following 2 directory structures would be different. a b c and a c b
0
votes
0answers
16 views

Modify /dev/zero Output Minix [duplicate]

I am trying to modify the /dev/zero block file so that it returns a character "Z" for example instead of zero. I tried opening /dev/zero thinking I would be able to see the code and modify it. To my ...
-1
votes
2answers
24 views

Is there a variant of the “cp -a” command that avoids copying from other filesystems?

Let's say I have a directory /data/something with the following subdirs: /data/something/iowa /data/something/wyoming /data/something/burkinafaso /data/something/slovenia All four subdirs have ...
1
vote
1answer
59 views

how to read and write to a filesystem in linux?

I have a hard disk and partitioned it into several partitions. How can i read and write into the filesystem. What is the use of mountpoint? If a process has to write or read something from that ...
0
votes
0answers
14 views

after extension of partition grub says unknown file system

I have a vServer with Debian Wheezy running, yesterday I wanted to extend the partition but after the reboot grub2 says error: unknow filesystem. Entergin rescue mode... grub rescue> Here I am in ...
-1
votes
1answer
32 views

Why readdir() only reads 32K of directory entries at a time?

readdir() only reads 32K of directory entries at a time. Why does it read only 32K entries? Is it dependent on buffer or any other parameters? Can I change that value so that I can read as many ...
1
vote
3answers
27 views

Having a host with ZFS system, how to make it available to other hosts on local network?

Having a Linux (RHEL 6) host with ZFS system, how to make it available to other hosts on local network (over LAN or InfiniBand if possible)? what shall be done to ZFS pool to make it sharable? how ...
0
votes
2answers
15 views

is VFS a module?

While studying VFS, this question popped into my head. Is it okay to think of VFS as a module? The reason why I thought like that is because VFS has the characteristic of simplifying actual file ...
0
votes
0answers
20 views

How to create several directories in linux using full character set?

I would like to create several thousand directories on ubuntu per command line. Using mkdir {000..999} does create 1.000 directories name 001, 002 etc. How do I create directories using the entire ...
1
vote
0answers
17 views

Which filesystem information are considered to be userspace relevant? [closed]

These filesystems normaly allow to store/retrieve information via files (hierarcical) by way of the kernel - having a module/driver for the filesystem - making the data stored in the filesystem ...
3
votes
1answer
30 views

Using File Date/Time as Metadata: Reliable?

Background: I have groups of files in their own directory which I merge into one file in order of their filename. I call them t1.txt, t2.txt, t3.txt... I merge them in order of the integer. ...
0
votes
3answers
23 views

How to influence the inode number, e.g. at fs restore?

Files in *nix filesystems almost ever have an associated inode number. In most cases users seem not to deal very much with those inode numbers, as they use filenames (i.e. a hierarchical ...
7
votes
4answers
2k views

How to get mount point of filesystem containing given file

I am looking for a quick way to find the mount point of the file system containing a given FILE. Is there anything simpler or more direct than my solution below? df -h FILE |tail -1 | awk -F% ...
0
votes
0answers
12 views

Granular control of rwx permissions on NTFS partition

I am running a Ubuntu-Windows dual boot setup, and I have a third NTFS partition for my shared data (documents, music, downloads, etc). I currently mount the partition using /etc/fstab like so: ...
2
votes
2answers
1k views

Debian won't boot: udevd fails to load device sda and sdb

I can't boot my Debian system, I got this error during boot up: Driver 'pcspkr' is already registered, aborting. I have solved this by adding blacklist snd-pscp to /etc/modprobe.d/blacklist.conf ...
1
vote
1answer
35 views

Live Linux and FAT32

I'm looking for a Linux distribution that will run (uncompressed) on a FAT16/32/NTFS partition, preferably on an external USB drive. I've come across Slax and Porteus as well as a few others but they ...
3
votes
3answers
108 views

Bulk remove a large directory on a ZFS without traversing it recursively

I want to remove a directory that has large amounts of data on it. This is my backup array, which is a ZFS filesystem, linear span, single pool. The data is in this pool called san, mounted on /san ...
2
votes
0answers
40 views

Disk i/o latency using /proc/vmstat file

How do i calculate Disk read and write latency in Linux? Is it possible to do the calculation using /proc file system? I am used iostat and vmstat command. But i do not understand how the ...
1
vote
1answer
32 views

Should I use hardlinks for my “sites-enabled” folder instead of softlinks?

Every article I find about web servers suggest creating a sites-available and sites-enabled directory within apache/nginx/etc. Then, using symbolic (soft) links, create a link from the available to ...
2
votes
1answer
31 views

How to take snapshot of an ext4 filesystem

Is there any way we can take a snapshot of an ext4 filesystem so that we can revert back to it later?
4
votes
4answers
3k 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. ...
3
votes
1answer
4k views

Mounting a multi-partition (GPT/HFS+) USB 2.0 harddrive on Debian

I have a 3TB USB 2.0 hard-drive which has two HFS+ (Mac) partitions using GUID partition table for the partition records. It was partitioned with Mac OS Disk Utility. How can I mount these partitions ...
0
votes
1answer
13 views

How to use tune2fs?

I want to adjust the time interval between ext2, ext3 and ext4 filesystem checks to 180 days? I know that I have to use tune2fs -i 180 but I am not sure about the arguments
1
vote
1answer
43 views

Problem mounting disk

[root@localhost ~]# fdisk -l Disk /dev/xvdb: 2147.5 GB, 2147483648000 bytes 255 heads, 63 sectors/track, 261083 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size ...
4
votes
1answer
38 views

Reason for change in ctime when the file content is modified

I understand that ctime changes when the file metadata or the file content is changed and mtime on file content modification. I would like to know the reason for updating ctime when the content of ...
0
votes
0answers
14 views

3 TB ext4 partition performance issue

I have deployed Centos 6.6 VM based on vSphere ESXi 5.5, it consists of 2 VMDK (virtual disks): 1st vmdk is for System / with 25 GB second vmdk /var is a 3TB / ext4 underlying storage is RAID 5 ...
3
votes
2answers
627 views

/var House Keeping [closed]

Does anyone have any general advice or links for doing some house keeping on the /var filesystem on Unix and Linux servers? I have searched the issue quite a bit but can find no real concrete ...
13
votes
2answers
602 views

Why is df missing 500MB of available space?

I've just had a message today from Ubuntu 11.04 that I have only 100 MB left, so I cleaned up some files, and I got 200 MB. Then, after a couple of hours, suddenly I have only 26 MB?! I tried df, du ...
1
vote
1answer
8 views

Only move folders not existing in target directory

I am looking for a way to move folders that are not already present in the target directory on my linux server. Example: Target directory folder1 folder2 folder3 folder4 Source directory folder1 ...
18
votes
6answers
3k views

How to safely turn off swap permanently? (on Debian Jessie)

I fresh installed Debian Jessie with default partitioning on an SSD drive. My current disk partitions look like this: As I have 16GB RAM, I think I don't need swap. On Windows, I had it turned off ...
2
votes
1answer
32 views

remounting FS with read write rights

Looking for the read only file system: grep "\sro[\s,]" /proc/mounts /dev/disk/by-uuid/2c04d594-b11d-4b02-b1b3-3d9f0b66b73c / ext3 ro,relatime,errors=remount-ro,barrier=1,data=ordered 0 0 So the / ...
2
votes
0answers
22 views

Why is my raid5 always resyncing ? (device names no persistent?)

I have a Intel RST software raid on ubuntu 14.04 with mdadm: (4 x 6TB drives in Raid 5, created with device names /dev sudo mdadm -C /dev/md/imsm /dev/sda /dev/sdb /dev/sdh /dev/sdi -n 4 -e imsm sudo ...
1
vote
1answer
26 views

Content Explanation Of: /proc/fs/ext4/device_name/mb_groups

I've been wondering, what are the explanation of the columns in the /proc/fs/ext4/device_name/mb_groups file. The columns are: #group: free frags first [ 2^0 2^1 2^2 2^3 2^4 2^5 2^6 2^7 2^8 2^9 2^10 ...
-2
votes
0answers
32 views

df and du differences too large [duplicate]

-bash-3.2$ df -h | grep /mnt/opt /mnt/opt 197G **163G** 32G 84% /mnt/opt -bash-3.2$ du -sh /mnt/opt **74G** /mnt/opt More then 1/2 the differences between df and du. ...
2
votes
1answer
2k views

/etc/fstab is mounting rw filesystem as read-only

A partition of my internal hard drive (not the root partition) I want to mount automatically on boot. I've been using /etc/fstab to mount my external backup drive automatically read-only, so this is ...
6
votes
4answers
7k views

Fix EXT4-fs bad geometry (block count exceeds size of device)

I have a micro SD card which has a FAT32 partition and an EXT4 partition. The EXT4 partition will no longer mount. dmesg shows the following error: EXT4-fs (sdb2): bad geometry: block count ...
3
votes
0answers
31 views

OverlayFS - How to make changes to upper filesystem persistent without unmounting?

I am using an USB drive to start a linux system which needs changes from time to time and also writes some logs. Flash drives tend to fail early if there are many write operations. That brought me to ...
0
votes
1answer
25 views

why does my Ubuntu Virtual Machine slow down after a number of searches, and builds?

I recently learned that my Ubuntu Linux file system may cache the result of some commands such as searches, sorts, and perhaps build commands such as make. I run Ubuntu in a VM, and although I have ...
0
votes
2answers
663 views

RPM command stuck/FREEZE when installing RPM file

I want to install the following rpm from some reason RPM is stuck or freeze and not install the RPM package also I cant stop it by control C , please advice what could be the problem ? root]# rpm ...
0
votes
1answer
59 views

How to turn default Scientific Linux on top of some file system into linux on top of zfs?

So I have a cluster with an array of hard drives (say 6), currently they are not in any RAID, on top of one of them I currently have my Scientific Linux installed and running. How to migrate it onto ...
2
votes
1answer
27 views

System call 'open' mode not working

I am writing a simple code about opening a file with O_CREAT | O_WDONLY | O_EXCL flags. The code looks like this: int fd = open(fileName, O_WRONLY | O_CREAT | O_EXCL, 0777); It works well, except ...
9
votes
8answers
14k views

How to clean up unnecessary files

Please suggest me any particular unnecessary file that I can clean to back everything to normal condition(temporarily). (i.e. any log or archieve or anything ). My var/log has only 40MB and Home ...
1
vote
1answer
41 views

What do “extents” feature do in ext4 filesystem in linux?

I was reading about the ext4 filesystem that it supports compression, encryption and a feature called extents which is used to save disk space. What are extents and how are they are effective for ...
0
votes
1answer
23 views

Does udev (/udev) consume storage?

Let's say I install a single partition (root) of linux that's 20GB. When I run 'df' it shows me the root drive that's 20GB, udev, and several tmpfs info. I believe tmpfs is just temporary and from ...