Skip to contentSkip to conversation

Ext4 rootfs option

Buildroot Mark Constable 5 participants 6 messages Feb 8, 2012 – Feb 9, 2012

lore
Share & tools
lore
#0 lore raw

Is it worth my while to provide some (first time newbie) patches for a ext4 rootfs?

I've read some reports it's faster than ext2 on flash, when journaling is disable, and I need it for HDD installs anway.

#1 lore raw

Hello,

Le Wed, 08 Feb 2012 17:14:00 +1000,
Mark Constable <[email protected]> a ?crit :

Quoted 2 lines

Is it worth my while to provide some (first time newbie) patches for a ext4 rootfs?

Sure!

How do you generate ext4 images? You use genext2fs and then some other commands to enable ext4-specific features? Is there another utility?

Best regards,

Thomas Petazzoni

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw
Quoted 5 lines · On Wednesday 08 February 2012 22:24:45 Thomas Petazzoni wrote:

Hello,

Le Wed, 08 Feb 2012 17:14:00 +1000,
Mark Constable <[email protected]> a ?crit :

Quoted 7 lines
Quoted 2 lines

Is it worth my while to provide some (first time newbie) patches for a ext4 rootfs?

Sure!

How do you generate ext4 images? You use genext2fs and then some other commands to enable ext4-specific features? Is there another utility?

I currently use genext2fs, followed by tune2fs to add the journal and
e2fsck to fix the incorrect FS version number. But it's extremely inefficient, especially since genext2fs first builds the filesystem in memory before committing to the output image. Not good when you want to create a 500GB partition :-)

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle <[email protected]> writes:

Hi,

Arnout> I currently use genext2fs, followed by tune2fs to add the Arnout> journal and e2fsck to fix the incorrect FS version number. But Arnout> it's extremely inefficient, especially since genext2fs first Arnout> builds the filesystem in memory before committing to the output Arnout> image. Not good when you want to create a 500GB partition :-)

Wow, you're using Buildroot for systems with 500GB rootfs? Must be those binary video codecs / GPU drivers you were talking about ;)

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw
Quoted 4 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle <[email protected]> writes:

Hi,

Quoted 9 lines

Arnout> I currently use genext2fs, followed by tune2fs to add the Arnout> journal and e2fsck to fix the incorrect FS version number. But Arnout> it's extremely inefficient, especially since genext2fs first Arnout> builds the filesystem in memory before committing to the output Arnout> image. Not good when you want to create a 500GB partition :-)

Wow, you're using Buildroot for systems with 500GB rootfs? Must be those binary video codecs / GPU drivers you were talking about ;)

Naw, this is the embedded inventory system for the home refrigerator. Leaves room for a bit of meal variety week-to-week. ;)

Mike

#5 lore raw
In reply to Peter Korsgaard
Quoted 4 lines · On Wednesday 08 February 2012 23:15:07 Peter Korsgaard wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle <[email protected]> writes:

Hi,

Quoted 8 lines

Arnout> I currently use genext2fs, followed by tune2fs to add the Arnout> journal and e2fsck to fix the incorrect FS version number. But Arnout> it's extremely inefficient, especially since genext2fs first Arnout> builds the filesystem in memory before committing to the output Arnout> image. Not good when you want to create a 500GB partition :-)

Wow, you're using Buildroot for systems with 500GB rootfs? Must be those binary video codecs / GPU drivers you were talking about ;)

Actually, no. I wrote the script so it was possible to write the image to
a block device, and it would determine the required fs size automatically. And then some idiot had the idea of plugging in a USB harddisk instead of the normal 1GB compactflash card... Serves me right for trying to be too generic.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F