ext3 (third extended filesystem) is a journaled file system that is commonly used by the Linux kernel.
3
votes
1answer
18 views
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 ...
6
votes
3answers
68 views
How to search for files with immutable attribute set?
For 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 ...
0
votes
1answer
28 views
Can an entire ext3 filesystem be corrupted if the system loses power?
I understand that any files being written to during power loss can get corrupted, but is it possible for an entire ext3 filesystem to become corrupted during a power loss event? If so, how?
Thanks!
8
votes
3answers
723 views
EXT3: If block size is 4K, why does ls -l show file sizes below that?
If you run ls -l on a file that contains one letter, it will list as 2B in size. If your file system is in 4k blocks, I thought it rounded files up to the block size? Is it because ls -l actually ...
6
votes
1answer
294 views
“Converting” a filesystem from ext3 to ext4
I've read on some Q&A on this website that one can "convert" an ext3 filesystem to ext4 without formatting, by issuing
tune2fs -O extents,uninit_bg,dir_index /dev/dev-name
And then running ...
0
votes
3answers
31 views
Verify semantic integrity of filesystem
I just started up my linux box to find that one of my filesystem's had errors: I had to login as root to run fsck and hit y repeatedly. There were a lot of errors. So many that I used silly putty and ...
4
votes
2answers
78 views
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
vote
0answers
70 views
Mount EXT3 with 16KB blocks
I have a failing Sparc based Netgear ReadyNAS that uses LVM on Raid with EXT3 partitions with a 16KB block size. I would like to pull the drives out of the NAS and mount them read only in a Linux box. ...
5
votes
2answers
167 views
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 ...
1
vote
1answer
53 views
Why is it impossible to change the inode count of an ext filesystem?
I know that it isn't possible to change the inode count of an ext filesystem after its creation, but I haven't been able to find any explanation on why it isn't.
Can anyone enlighten me?
0
votes
1answer
26 views
mke2fs difference between -i and -I options
sudo mke2fs
Usage: mke2fs [-c|-l filename] [-b block-size] [-C cluster-size]
[-i bytes-per-inode] [-I inode-size] [-J journal-options]
[-G flex-group-size] [-N number-of-inodes]
[-m ...
3
votes
2answers
728 views
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. ...
0
votes
2answers
27 views
Tool to create a bad physical location report on disk
I am in need of a tool that would run on an Ubuntu system that would be able to report the following:
Bad physical locations on a disk (cylinders, sectors)
Files that are affected by these bad ...
2
votes
2answers
369 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
0answers
95 views
linux io stack analysis
I'm trying to understand the Linux IO stack by analyzing blktrace trace.
Below is the trace i captured by executing simple fio sequential write with no Direct IO (5 x 8k request size).
8,16 1 ...
2
votes
1answer
110 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 ...
4
votes
1answer
157 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 ...
3
votes
1answer
103 views
Is there a problem using resize2fs too often?
I have a partition which contains MySQL data which is constantly growing. My LVM PV has precious little free space remaining and therefore I find I'm frequently adding additional space to my /var ...
3
votes
1answer
52 views
Automatically set file attributes in a given directory
Let's say I want to set one or more attributes (in the chattr sense) on every file created in a given directory.
Is there a way to achieve this automatically, like umask does for file permissions ?
...
6
votes
1answer
200 views
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 ...
2
votes
1answer
109 views
Minimizing “idle” writes on a file system
Leaving out many details, I need to create a read/write file system on a device with the following main goals:
Eliminate all writes while data is not being explicitly written.
Reduce all indirect ...
2
votes
3answers
395 views
Safe to disable boot fsck on read-only ext3 file system?
I have a large, frequently read, ext3 file system mounted read-only on a system that is generally always hard power cycled about 2-3 times per day.
Because the device is usually powered off by ...
3
votes
1answer
143 views
What would happen if we mounted a file system that e2fsck is already running on?
It is generally a bad idea to e2fsck a file system while the file system is mounted (the man page mentions one specific situation where it is safe: -n given, and -c, -l or -L not given, and even then ...
2
votes
0answers
141 views
What caused this ext3 filesystem / mounting problem?
((K)Ubuntu 12.04, kernel 3.2.0-38-generic, fstype ext3)
I recently came across the 'great idea' of using hibernation to save state in my main OS, while I boot another OS. I've done this without ...
0
votes
3answers
2k views
Unable to mount ext2 hard drive
I have been trying to mount an ext2 hard drive in ubuntu server, but when i run sudo mount /dev/sdb /media/mynewdrive -t ext2 I get
wrong fs type, bad option, bad superblock on /dev/sdb1,
missing ...
12
votes
3answers
2k views
What mount option to use for ext3 file system to minimise data loss or corruption?
I have an embedded setup using an initramfs for the root file system but using a custom ext3 partition mounted on a compact flash IDE drive. Because data integrity in the face of power loss is the ...
1
vote
1answer
148 views
Cannot make anyfs-tools. My e2fslibs package seems not to be the compatible version
anyfs-tools promises to convert a ntfs partition into ext3. That's what I want to do. (I have backed up what was necessary).
But when I try to compile anyfs-tools I get a make compilation error ...
3
votes
3answers
180 views
Convert old /home from ext3 to ext4
I have an old /home partition, that dates back to former linux systems, and it is still in ext3 format. Whereas the rest of my system, / and some other mounted point are devices formated in ext4.
I ...
1
vote
2answers
4k views
ext3 root filesystems goes read-only with aborted journal even after repairs
Short version: ext3 root filesystem on rackspace (xen) VM detects aborted journal on boot and mounts read-only. I've attempted to repair this from a rescue environment with tune2fs and e2fsck as ...
2
votes
2answers
153 views
decreasing “reserved block count” does not show up in df output
By default my ext3 file system had 122060 blocks(5%) reserved. I decreased this to 24412(1%), but there were no changes in df output:
root@t60:~# df -P
Filesystem 1024-blocks Used ...
3
votes
0answers
259 views
Confusion with how to restore corrupt ext3 files if power outage occurs during a file write
I am running a small embedded system. Because the system will never be gracefully shutdown and will just have the power cable unplugged, I am running an initramfs but mounting an ext3 partition on a ...
5
votes
1answer
632 views
Is it possible to disable file permissions on a ext3 or ext4 file-system?
Is it possible to disable file permissions on an ext3/4 file-system?
Just wondering if it's possible to completely disable or ignore file permissions on a ext3 or ext4 file system. Perhaps a mounting ...
5
votes
3answers
100 views
What makes ext3 determine how frequently to perform file system checks when no options are specified?
I created two partitions on a 1.5 TB drive, the first was 1 TB, the latter was the remaining .5 TB. Both were formatted as ext3. I don't mind the automatic filesystem checks occurring every so often, ...
3
votes
1answer
92 views
md5sum change after mount?
I have a ext3 filesystem on a .img file. After mounting and unmounting it, I noticed that the md5sum is changed, even if no file inside was changed!
md5sum myfilesystem.img
XXXX myfilesystem.img
...
1
vote
0answers
31 views
Recover files from ext3 formatted external hard drive [duplicate]
Possible Duplicate:
Recovering deleted files on fedora
I have an external hard drive that I had been using to store some photographs, but I accidentally installed Lubuntu on it.
I'd like to ...
3
votes
2answers
508 views
Location of inodes (ext)?
Say I want to observe how the flow from file name to cluster on hard disc goes.
I get the inode number of I file (which is mapped in a directory data):
1863 autorun.inf
So, now i know that i have ...
1
vote
1answer
384 views
File access after fsck very slow for first-time access?
My drive started to show up errors, I unmounted it and ran fsck on it. It's a 2TB drive installed on Debian Squeeze, using ext3.
The fsck too about 17 hours. I found some, luckily mostly unimportant, ...
1
vote
1answer
946 views
recover corrupted directory from ext3 partition
It's my mounted directory that I want to restore folder ostani. It contains many PHP, CSS, Javascript, etc. files. How can I access it? I use dd_rhelper to create an image and tried to fsck to repair ...
0
votes
1answer
279 views
Recover ext3 files from hard disk with bad sector [duplicate]
Possible Duplicate:
Recover formatted ext3 partition
I have a folder of about 5GB that suddenly disappeared. When I checked its hard disk, I found out it has bad sector for about 2-3MB on ...
31
votes
6answers
12k views
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?
2
votes
1answer
312 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 ...
2
votes
2answers
141 views
Can I make low-level changes on a root fs mounted RO?
Related to this question: having a root file system that had to be mounted read-only (say it's completely broken), can I reformat the partition or dd a older backup image on top of it (and then ...
0
votes
0answers
107 views
ufs fails on debian
I am a longtime openSUSE user. However, my friend convinced me to give debian a try.
When installing, I noticed there was no ext3 option (which I usually use), so I selected ufs. Then I got an ...
3
votes
1answer
195 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 ...
2
votes
1answer
288 views
How to fix a fragmented ext disk - myth or truth?
I just read this article about the virtually non-existent disk fragmentation on *nix filesystems.
It was mentioned that due to the way ext handles writing data to the disks, fragmentation may only ...
0
votes
5answers
2k views
Debian stucks at formatting 33%
I'm trying to install Debian Squeeze 6.0.5 on a new HP Proliant Microserver N40L with 4 GB RAM and 1.5 GHZ and 2 new Seagate BARRACUDA 2TB HDD (delivered yesterday).
The installation stuck at the ...
3
votes
2answers
812 views
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 ...
7
votes
1answer
3k views
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 ...
5
votes
3answers
910 views
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?
12
votes
1answer
473 views
How to compact a directory
Every so often, some application runs wild and fills a directory with a huge amount of files. Once we fix the bug and clean up the files, the directory stays big (>50MB) even though there's only 20-30 ...



