ext3

What happens if you never ever run e2fsck?

What happens if you never ever run e2fsck? We have servers which have been running for a long time. When they reboot, we see this message: kernel: EXT4-fs (sda3): warning: maximal mount count reached, running e2fsck is recommended My question is: what if you never ever run e2fsck? Man page does not shed enough light. …

Total answers: 1

How do I create small disk image with large partitions

How do I create small disk image with large partitions I am building a disk image for an embedded system (to be placed on an 4GB SD card). I want the system to have two partitions. A ‘Root'(200Mb), and a ‘Data’ partition(800Mb). I create an empty 1GB file with dd. Then I use parted to …

Total answers: 4

What is the difference between fsck options -y and -p?

What is the difference between fsck options -y and -p? The ext2/3/4 filesystem checker has two options that seem to be very similar, -p and -y. Both seem to perform an automatic repair, but the manpage states that -p can exit when it encounters certain errors while for -y no such thing is mentioned. Is …

Total answers: 1

How to search for files with immutable attribute set?

How to search for files with immutable attribute set? For config auditing reasons, I want to be able to search my ext3 filesystem for files which have the immutable attribute set (via chattr +i). I can’t find any options for find or similar that do this. At this point, I’m afraid I’ll have to write …

Total answers: 9

Reliable way to detect ext2 or ext3 or ext4?

Reliable way to detect ext2 or ext3 or ext4? I need to detect a filesystem type from a C/C++ program using the filesystem superblock. However, I don’t see much differences between superblocks for ext2 and ext4. The s_rev_level field is the same (=1), the s_minor_rev_level is the same (=0). I could check some features from …

Total answers: 2

ext3 Filesystem shows full to most apps, but only 77% full to DF

ext3 Filesystem shows full to most apps, but only 77% full to DF Var is showing as full to many apps like Nagios, Puppet, and the LVM tools (pvs, vgs, etc) df -h output 6.0G 4.3G 1.4G 77% /var vgs output /var/lock/lvm/V_rootvg:aux: open failed: No space left on device Can’t get lock for rootvg Skipping …

Total answers: 2

fdisk -l shows ext3 file system as HPFS/NTFS

fdisk -l shows ext3 file system as HPFS/NTFS I have an external HDD which I formatted as NTFS partition in Windows. Now, I formatted this HDD in my linux system using the below command. mkfs.ext3 /dev/sdb1 It was formatted successfully. However, when I run the fdisk -l command, it gives me the system as NTFS/HPFS. …

Total answers: 2

zerofree verbose returns what?

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 github: https://github.com/haggaie/zerofree/blob/master/zerofree.c And there’s this line: if ( verbose ) { printf(“r%u/%u/%un”, modified, free, fs->super->s_blocks_count); } So I guess the middle number was the free space (in kB?), the first …

Total answers: 1

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

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 Size Used Avail Use% Mounted on /dev/mapper/fedora_greeneggs-home 402G 146G 236G 39% /home Then use …

Total answers: 1

md raid1 ext3 and 4k sectors slow with directory operations

md raid1 ext3 and 4k sectors slow with directory operations I recently moved from a hardware RAID1 enclosure to using two eSATA drives with md. Everything seems to be working fine, except for the fact that directory traversals/listings sometimes crawl (on the order of 10s of seconds). I am using an ext3 filesystem, with the …

Total answers: 1

What filesystem should be used when transferring files between Linux systems?

What filesystem should be used when transferring files between Linux systems? I often need to move files between two Linux computers via USB. I use gparted to format the USB’s. When I formatted the USB to use FAT32, the USB was unable to copy symlinks, so I had to recreate the symlinks on the other …

Total answers: 3

How do I know if a partition is ext2, ext3, or ext4?

How do I know if a partition is ext2, ext3, or ext4? I just formatted stuff. One disk I format as ext2. The other I want to format as ext4. I want to test how they perform. Now, how do I know the kind of file system in a partition? Asked By: user4951 || Source …

Total answers: 12

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

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 wasted due to internal fragmentation? …

Total answers: 1

Besides the journal, what are the differences between ext2 and ext3?

Besides the journal, what are the differences between ext2 and ext3? I just saw an answer question about filesystems for embedded hardware on another Stack Exchange site. The question was “What file system format should I use on flash memory?” and the answer suggested the ext2 filesystem, or the ext3 filesystem with journaling disabled a’la …

Total answers: 3

largefile feature at creating file-system

largefile feature at creating file-system Is useful to use -T largefile flag at creating a file-system for a partition with big files like video, and audio in flac format? I tested the same partition with that flag and without it, and using tune2fs -l [partition], I checked in “Filesystem features” that both have “large_file” enabled. …

Total answers: 2

ext2/3/4 reserved blocks percentage purpose

ext2/3/4 reserved blocks percentage purpose I know that this feature dates back 20 years but I still would like to find out What is the purpose of the reserved blocks in ext2/3/4 filesystems? Asked By: Karlson || Source The purpose of reserving a small number of blocks for root’s use only is to give root …

Total answers: 3