6
votes
1answer
395 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 ...
3
votes
0answers
59 views

Optimal rootflags for rootfs for ext4 file system running on USB thumdrive [closed]

I have made myself a bootable USB Debian 7 thumbdrive, using debootstrap. It boots nicely - but occasionally freezes for a bit. I can see the load average is much higher than the running tasks should ...
5
votes
3answers
115 views

What filesystem metadata operations are actually journaled in ext4 & xfs?

I can't find a simple, straight answer about which filesystem metadata operations are actually persisted to the ext4 & xfs filesystem journals. Note that I am not inquiring about what POSIX ...
1
vote
1answer
118 views

Best parameters for ext4 filesystem to handle virtualbox disk images

I have ext4 partition, which holds disk image files VirtualBox works with. They all are fixed-size images (i.e. files never change their size). They are defragmented as much as possible (with ...
3
votes
1answer
51 views

ext4 inode size, shown by dumpe2fs

Manpage about mke2fs says "mke2fs creates 256-byte inodes by default". I've formatted my small (320MB) test partition with command: sudo mkfs -t ext4 /dev/sdc1 The defaults for the mke2fs are ...
3
votes
1answer
72 views

ext4, why 70k file takes 88 blocks

[root@xx]# cat -n create_extents.sh 1 #!/bin/bash 2 3 if [ $# -ne 2 ] 4 then 5 echo "$0 [filename] [size in kb]" 6 exit 1 7 fi 8 9 ...
0
votes
2answers
46 views

Are there any tools to recover files from a previously formatted WinNT drive?

I scratched the previous Windows NT filesystem, now I'm running Ubuntu. I've created the whole disk as EXT4. Are there any tools to locate and save some previous Windows files from the original ...
0
votes
1answer
70 views

Recovering truncated file

I'm in a peculiar situation. While editing a Perl program I accidentally truncated the file to zero length (using an Emacs lisp code I was developing). I need to recover that program... How do I that ...
4
votes
2answers
1k 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 ...
1
vote
0answers
52 views

Optimization for an SSD?

I am running Fedora 20 on a Laptop ( Lenovo Ideapad Yoga 2 Pro ) with an SSD. My filesystem is LVM with ext4 as the format option. I am now running Fedora as the only OS on the system with Legacy BIOS ...
0
votes
1answer
37 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 ...
4
votes
4answers
142 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, ...
3
votes
1answer
85 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
178 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 ...
3
votes
1answer
99 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
2answers
512 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
160 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
267 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 ...
2
votes
4answers
600 views

How do I find the offset of an ext4 filesystem?

I have a failing hard drive that is unable to write or read the first sectors of the disk. It just gives I/O errors and that is all there is. There are other areas on the disk that seem (mostly) fine. ...
1
vote
1answer
160 views

fsck ext4 on ssd: max mountcount and checkinterval

I'm using an ssd as the only drive in my laptop (Debian stable). It seems that SuSE sets mountcount to -1, disabling fsck at boot. The thread linked says that ext4 needn't be fsck'd anyway. Is that ...
2
votes
1answer
75 views

relocate ext4 structures to survive truncation

I have a 6Gb raw disk image with 1 ext4 partition on it. I have only 1Gb worth of data on it Is there a way to reposition/adjust ext4 datastructures such that I can truncate the disk at 1 GB or 1.2Gb ...
1
vote
1answer
96 views

How does my partition (ext4) know its size of used/free space?

I ran df, and the output appears almost instantly: (FS Size Used Avail Use%) /dev/sda1 145G 8.4G 130G 7% sda1 is an ext4 partition. Without summing the size of all files, how can ...
1
vote
4answers
4k views

What does “mounting fs with errors” mean in dmesg and what to do after that?

I run dmesg and this is what I see: EXT4-fs (sda1): warning: mounting fs with errors, running e2fsck is recommended EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: Here is the ...
1
vote
1answer
102 views

ext4 drive takes forever to ls?

I've had an external HDD formatted in ext4 for a while. For some reason, it's started to take forever to list directories. Sometimes just running ls /mount/point/of/drive takes minutes, sometimes that ...
3
votes
3answers
2k views

How can I change the date modified of a folder to the last changed file inside? [duplicate]

In my media center directory all modified times of my folders are somehow not the desired date. How can I change all modified times of the main folders to the modified time of the newest media-file ...
1
vote
0answers
127 views

How to blacklist bad blocks from a MD-raid + dm-crypt + ext4?

I have a ext4 partition, on top of a dm-crypt, on top of a MD-RAID 10. One partition (/dev/sdc1) dropped out of the array with a ton of read errors. I ran the manufacturer provided diagnostic tool ...
1
vote
2answers
749 views

Which filesystem to backup is the best? [closed]

I just bought a disk to backup all my documents and to store it apart and I don't know what is the filesystem under Linux that gave me better reliability. Maybe I'll backup one time each month and it ...
0
votes
1answer
639 views

Not possible to recover or delete file in a ext4 filesystem

How can I fix a message like this (read after a dmesg command)? EXT4-fs error (device hdb1): ext4_lookup: deleted inode referenced: 119197 EXT4-fs error (device hdb1): ext4_free_inode: bit already ...
1
vote
1answer
82 views

not able to add files to HDD

I created a single primary partition to my WD WD800BB-55JHA0 80GB HDD using MBR partitioning scheme. Into this partition I created an ext4 file-system with 200048640 inodes! Then I created loads of ...
1
vote
1answer
947 views

Filesystem suddenly read-only?

I've been storing some files on a MicroSD formatted to ext4 that I connect via USB. I tried to move a directory in it to an external hard drive, and I got mv: error reading ...
1
vote
2answers
406 views

What is the “cost” of deeply nested folders in ext4?

I was running into performance problems with hundredthousands of files in single directories when I needed to do certain wildcard matches. From my applications point of view, a simple solution is to ...
7
votes
1answer
1k views

ext4: where did my free space go?

I just upgraded my Mageia 2 64bits VM to Mageia 3, and now my virtual disk free space is almost nil, even though less than 100% of the space is used. I am not an ext4 filesystem expert but I have ...
1
vote
2answers
124 views

Encrypted disk filesystem compatibilities

On my Debian Linux system during the install I decided to use disk encryption (the one offered during a regulard Debian install). When the system boots up I need to enter a password and then the ...
1
vote
0answers
119 views

How can I delete data from in a hexdump file from one offset to another?

I've created a disk image which was zeroed, formatted to ext4 file system, and then had several various files copied to it. I'm trying to extract these files using a combination of xxd and dd, but ...
5
votes
1answer
753 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 ...
4
votes
2answers
5k views

Should a laptop user switch from ext4 to btrfs?

Related to this. I'd like to take advantage of an OS switch to upgrade to BTRFS. BTRFS claims to offer a lot (data-loss resiliency, self-healing if RAID, checksumming of metadata and data, ...
6
votes
1answer
583 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 ...
2
votes
1answer
154 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 ...
3
votes
1answer
196 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 ...
14
votes
2answers
4k views

Birth is empty on ext4

I was just reading up on the Birth section of stat and it appears ext4 should support it, but even a file I just created leaves it empty. ~ % touch test ...
3
votes
3answers
420 views

A lot of errors on ext4, however smart doesn't show any errors

I have a Debian box with additional ( it is not a system disk ) 1.5Tb sata hdd (wd caviar green). There is only one partition on the whole disk. Disk is used for backups from remote system (with ...
2
votes
1answer
297 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 ...
3
votes
1answer
271 views

corrupted library after hard shutdown

yesterday night my laptop executes a hard shutdown because my battery was out of charge. After the reboot Xorg hangs and the troubleshooting was pretty hard. A first file system check of my ext4 ...
3
votes
1answer
3k views

recovering ext4 partition after dd'ing over start of HD

I accidentally used dd and wrote over the first 208MB of my external disk. What I wrote over is a partition on its own (Debian nestinstaller) so what I see now is not my old (now damaged) ext4 ...
2
votes
1answer
1k views

Why my partitions don't show the right capacity on a 4096 byte physical block hard drive?

After reading a lot about why newer 4096 byte physical block hard drives should be partitioned taking care of alignment (Linux on 4KB-sector disks: Practical advice, What is partition alignment and ...
0
votes
1answer
2k views

File system jfs/btrfs/xfs/ext4 [closed]

I was looking into some of the requirement, where huge amount of recursive files are written and deleted and looking forward if any FS (file system) as such gives advantage on others. I am trying to ...
4
votes
1answer
137 views

ext4 directory lists as a file

I'm working with a large (8TB) EXT4 filesystem in linux. After a power outage, the filesystem wouldn't mount. fsck is taking weeks to complete, but i ran testdisk and i'm able to see my partition ...
8
votes
2answers
4k 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 ...
2
votes
1answer
100 views

To use -c0 -io in file-systems with journal

I've several partitions with EXT4. Now, I would want if it makes sense to use tune2fs with flags -c0 (max-mount-counts) and -i0 (interval-between-checks) in the partitions with a journal file-system ...
5
votes
3answers
1k 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?