The ext4 or fourth extended filesystem is a journaling file system for Linux, developed as the successor to ext3.

learn more… | top users | synonyms

5
votes
3answers
9k views

Fastest way to convert an ext4 formatted disk to LVM with ext4 on it?

I'm currently doing cp -aR to copy data from my (99% full) 1TB ext4 formatted disk to a new LVM-with-ext4-on-it disk. It's taking forever. Is there any way to attempt to "convert" the disk in place? ...
3
votes
2answers
2k views

Parted has no 'resize' command available

I'm trying to resize a partition using parted, but it has no the 'resize' command available gchain@archbogchain@archbook:~$ sudo parted /dev/sdb GNU Parted 3.1 Using /dev/sdb Welcome to GNU Parted! ...
1
vote
1answer
1k views

Reverse lookup of inode/file from offset in raw device on linux and ext3/4?

In linux, given an offset into a raw disk device, is it possible to map back to an partition + inode? For example, suppose I know that string "xyz" is contained at byte offset 1000000 on /dev/sda: ...
1
vote
0answers
294 views

Mounting a remote disk image which I made local via sshfs? Possible?

The core question first: Is sshfs fit to provide low-level reads/writes/seeks as required when a file contains blockdevice-like contents? Why? Well... I am trying to locally mount a filesystem-image, ...
1
vote
1answer
1k views

Slow rm performance on an ext4 partition

Removing what seems to me to be a moderate number of files takes a very long time. For example: $ pv linux-3.0.16.tar.bz2 | tar xj 73.2MB 0:00:16 [4.55MB/s] $ pv linux-3.0.16.tar.bz2 | tar xj 73.2MB ...
2
votes
1answer
181 views

Is file creation durable on ext4?

On some filesystems, when creating a file, it is necessary to call fsync() not only on the file itself, but also on the parent directory, to make the file creation durable. Otherwise, the directory ...
4
votes
2answers
7k views

How long can file system writes be cached with ext4?

A while ago, there has been some discussion about ext4 potentially leaving empty files after an unclean unmount, summed up pretty well in this article. Basically, because of delayed allocation, writes ...
0
votes
1answer
471 views

zram trimming by writing zero pages

I'm using ZRAM as a backing block device for /tmp filesystem in the following manner: echo 8000000000 > /sys/block/zram0/disksize mkfs.ext4 -O ...
1
vote
1answer
371 views

EXT4-fs error (device loop0) ext4_mb_generate_buddy

I've been randomly getting theses in my /var/log/messages [5747511.945300] EXT4-fs error (device loop0): ext4_mb_generate_buddy: EXT4-fs: group 1: 29505 blocks in bitmap, 29455 in gd Not had any ...
0
votes
1answer
553 views

western digital caviar black. EXT4-fs error

Recently I update my HDD on desktop machine, and bought WD Caviar Black. But after I format & copy information to it (using dd), and fix partitions size: I have next errors in kern.log: Aug 27 ...
0
votes
1answer
111 views

Quick way to empty a partition

I have a partition, formatted ext4, that I want to empty completely. I will be repeating this write-then-empty process repeatedly, so I want the emptying step to be as quick as possible. One option ...
17
votes
3answers
45k views

How to mount read-write an ext4 partition on Windows?

I want to use ext4 on my external HDD, but it must be cross-platform. (At least Linux, Win7 & WinXP). Unfortunately, I haven't found any proper driver allowing Windows to WRITE to ext4. I've ...
1
vote
1answer
644 views

On Linux allow a file to be read/write but not deleted

Is there a way in Linux on a ext4 file system that I can make a file readable and writeable but not deletable? The directory that the file resides in still needs to be writeable by the owner of the ...
1
vote
1answer
3k views

Is there a tool to browse files on a VMware virtual disk w/o starting a virtual machine?

I am looking for a way to browse through a VMware virtual disk in order to extract/copy files that are located on an Ubuntu EXT4 partition that is allocated on that disk, without the need to actually ...
2
votes
1answer
2k views

Having trouble with EXT4 on LVM on software RAID 5 (corruption)

Here's the quick and dirty of my problem. I'm using Lubuntu 12.04, Xubuntu 12.04 and plain Ubuntu 12.04. Tried with generic kernels 3.2.0-25 and 3.2.0-26. This issue persists on all 3 variants which ...
0
votes
1answer
84 views

Dealing with different usernames when mounting removable media in Linux

I have a laptop in which my username is, say, "foo". I have an external drive, formatted with Ext4, for which all files are owned by "foo" (at a filesystem level). Now, I have a desktop in which my ...
3
votes
3answers
538 views

Are there any reasons why I wouldn't want to format a USB flash drive in HFS+ for Linux/Mac usage?

There have been other questions regarding the use of HFS+ formatted drives on Linux (e.g. this); however, I am specifically interested in knowing if this is a good idea for a particular purpose. I ...
1
vote
1answer
781 views

How could I easily pack a directory to an ext4 loop partition image?

I would like to pack the content of a directory into an ext4 partition image easily, without mounting a loop device. Background: I am building a version of Android which will mount system partitions ...
2
votes
1answer
697 views

Hard drive partition size wrong. How do I resize without loss of data?

$ fsck fsck from util-linux 2.20.1 e2fsck 1.42 (29-Nov-2011) The filesystem size (according to the superblock) is 610471680 blocks The physical size of the device is 536870911 blocks Either the ...
0
votes
0answers
504 views

Cannot mount harddrive from HP ProBook via SATA-USB adapter

I'm trying to mount harddrive from HP ProBook 4525s to another computer for data backup from damaged laptop. There are two ext4 and one swap partition on hdd. I'm using SATA-USB adapter, but after I ...
5
votes
1answer
472 views

A weird issue relate to ext4/lvm/raid-5 after partition recovery

I have 3 hard disks, in the following paragraphs named /dev/sda, /dev/sdb and /dev/sdc, newest came first. Note: /dev/sdc has one primary partition /dev/sdc1, one extended partition /dev/sd2, and 3 ...
9
votes
3answers
83k views

How do I format a drive as EXT4 on Windows 7?

I'm trying to create an ext4 file system on an external drive. The partition manager I usually use, EASEUS Partition Master, doesn't support ext4. What are some free alternatives? Edit: It turns out ...
5
votes
1answer
1k views

Why are the sizes of 2 directories different if the data within the directories is identical? They are identical ext4 partitions and disks

root@phoenix:~# ls -ld /backups/external?/var/subsonic/thumbs/110 drwxr-xr-x 2 root root 73728 Mar 4 15:35 /backups/external3/var/subsonic/thumbs/110 drwxr-xr-x 2 root root 69632 Mar 4 15:35 ...
0
votes
1answer
349 views

Ext4 forensic analysis

I'm doing a thesis about forensic analysis and I'd like to format a disk with an ext4 file system without zeroing it, to analyze the possibility to recover deleted files. This is a problem, because ...
0
votes
0answers
218 views

parted killed my ext4 stuff

In parted you're supposed to be able to delete a partition, make a new one, and your data will still be there. It's gone. Nothing, not even testdisk is finding the partition. If I do the same stuff ...
0
votes
0answers
588 views

Booting an EXT4 image file from GRUB2

My friend needed a fast HDD so I gave her my small 64GB SDD. This SSD had my Linux install on it. I used dd to make an image of the partition (boot, root and home on one partition). This partition is ...
0
votes
1answer
4k views

Unable to repair an ext4 filesystem with bad superblock

Using the dd command, I was hoping that I would be able to copy over the first 446 bytes from Disk B (250GB) to Disk A (80GB), in order to make Disk A bootable just like Disk B. I issued the command: ...
1
vote
2answers
196 views

Drive system file size

When i made a new drive it take some space for system file FAT32 take the less space, then NTFS, then ext4 my question how to know the space will be taken for the system before make the drive, if the ...
0
votes
1answer
1k views

Mounting external usb harddisk (ext4) in virtual box in windows

I would like to mount my external linux formatted usb harddrive in a virtual machine. The host is windows 7. Unfortunately virtual box doesn't enumerate the external harddrive in the options menu of ...
1
vote
1answer
81 views

Is it possible to fork a symlink?

I have my configuration file (e.g. .zshrc) put into an encfs container. When I log into the system the container is not yet mounted, hence the the symlink is dangling then. Is there a way to let the ...
4
votes
2answers
4k views

how to convert NTFS to ext4 in windows?

I want to convert one partition of my windows which is NTFS (or can be FAT32) to a linux file system partitioning? I'm looking for some tools or ways to do it for me!
3
votes
1answer
4k views

linux change ext4 block size to 8192 now can't mount it

I've done that: mkfs.ext4 -j -b 8192 /dev/sda3 Now I'm trying to mount it with: sudo mount -t ext4 /dev/sda3 foo But I'm getting this error: mount: wrong fs type, bad option, bad superblock on ...
0
votes
1answer
605 views

using setfacl to give access to another user without giving access to a group

I have a user that I use for backup, and I use setfacl to give that user access to files. However, setfacl changes the base ACL entry for group and some applications require that the base ACL entry ...
6
votes
2answers
10k views

How can I get access to EXT2, EX3 and EXT4 partitions on Windows 7?

I tried all programs recommended to mount Linux partitions like EXT2 or EXT3 or even EXT4 but no one can do well on Windows 7 32 bit. I want to access read-write, is there a program that can do this? ...
0
votes
1answer
377 views

Recovering ext4 data after accidental partial re-image?

I had a CD that automatically starts to image a system with windows XP/NTFS. Accidentally booted from it on a Linux system which has one large ext4 partition (500GB). Interrupted the imaging process ...
7
votes
5answers
8k views

Linux file system for a big file server

I would like to know, from more experienced people, what would be the best choice of file system to use for a file server having more than 20TB of hard disks. Personally I always used EXT3 (back in ...
1
vote
1answer
1k views

Kernel log littered with re-mount attempts because of going to/from battery mode. How do i turn it off?

My boot times became a bit too much so i decided to take a look ad kernel log to see what might be causing the problem.. There i noticed repeating: 12/17/11 02:25:28 PM EXT4-fs (sda6) ...
-1
votes
1answer
1k views

Data recovery after sudo rm -rf /* on ext4

I sent the following command to my friend: sudo rm -rf /* He launched it. Does someone know how to recover data after deleting from ext4 on Ubuntu 10.10?
0
votes
1answer
268 views

Strange file permissions on FAT32 under Ubuntu

On my machine (Lenovo ThinkPad w510, Ubuntu 10.10) I have (at least) two logical partitions: an ext4 partition to which Ubuntu is installed; a FAT32 partition (the bigger one) on which I store all ...
0
votes
1answer
181 views

Recovering data from two partitions, one NTFS, the other ext4

I have an external HD, and it had three partitions on it. One was a 4GB ext4 filesystem ,and two others 120GB NTFS and 120 GB ext4. I created an image on the 4GB using the Linux utility dd on Fedora ...
8
votes
2answers
6k views

SSD: NTFS vs EXT4

Always when I read about SSD usage under Linux, the advice is to disable journalling in Ext4 (or use Ext2), since it's too bad for your SSD. But in all articles about SSD tweaks for Windows, I never ...
1
vote
1answer
572 views

Does stat/lstat on nonexistent file cause a disk seek?

When searching for a library file from a right folder, my application currently does couple of lstat's for the possible locationslocations. Now I'm wondering whether these lstat's (application is ...
1
vote
2answers
1k views

sharing an ext3/ext4 partition on external drive

is there a way of sharing an ext3/ext4 formatted partition on an external USB drive between different users (uids) on different Linux machines without creating a group for this purpose, setting the ...
0
votes
2answers
971 views

unable to mount lvm ext4 filesystem

I was moving a couple of physical volumes from my lvm. I managed to successfully pvmove and pvremove them. After this i was moving some files from the lvm to one of the removed pvs. Now during this my ...
1
vote
2answers
1k views

Recover data from repartitioned EXT4 filesystem

On my drive I had 2 partitions for an Ubuntu 9.04 (swap, /) and one partition for Windows. I figured out that I should upgrade my Ubuntu, so I deleted the "/" partition and in its place created 2 new ...
1
vote
1answer
399 views

Recommendations for Filesystem

I have built the bones of a NAS system (which comprises of Ubuntu server 11.04 on 500GB SATA drive, and 3 2TB SATA disks in software RAID5 configuration)... I'm looking for some advice on what ...
5
votes
1answer
3k views

Does an ext4 writer for Windows exist?

Are there any applications that can write to ext4 file systems from Windows?
0
votes
0answers
274 views

Command: How to format Ext2/Ext3 with Cygwin? [duplicate]

Possible Duplicate: How to format Ext2 in WinXP? I just installed Cygwin, then i want to format my usb drive to Ext2/3/4 or any other Linux FS. What do i need? And, what is the command?
1
vote
2answers
440 views

How do I prevent external systems from mounting my ext4 partition?

I have an ext4 partition which I use as my home partition. I noticed that by running another Linux system either from the disk or even from LiveCD I am able to mount and inspect the contents of said ...
7
votes
5answers
10k views

Stuck choosing between ext4 and ext3 for the file system

I was in the process of installing Ubuntu 11.10, but got stuck choosing which file system to use. ext3 and ext4; which is better for a personal desktop? If ext4 is better, will it work well on my ...