USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Ext4 is part of the Linux 2.6.28 kernel
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » System Administration and Security
View previous topic :: View next topic  
Author Message
tlmiller
Ultimate Member


Joined: 01 May 2024
Posts: 2433
Location: MD, USA

PostPosted: Tue Dec 30, 2024 11:56 am    Post subject: Reply with quote

If I were part of the lug, I would vote for just sticking with pacman as the manager. Why reinvent the wheel if there's already something that does everything you need?

But then, I'm lazy like that.



_________________
Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
Back to top
View user's profile Send private message AIM Address MSN Messenger
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Tue Dec 30, 2024 1:49 pm    Post subject: Reply with quote

platinummonkey wrote:

actually.. Razz TAMULinux Razz for the TAMULUG down here Razz
http://platinummonkey.com:500/~tamulug/tamulinux-dev/
temporary dev page/notes for myself Razz

ISO will hopefully come out by the end of Jan Smile


Nice references in your link above, even though several of them are quite dated. They still provide plenty of useful background and information.

Looking forward to giving your system a try when it becomes available!



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
ghostdawg
Member


Joined: 27 Dec 2024
Posts: 130
Location: MO

PostPosted: Tue Dec 30, 2024 11:03 pm    Post subject: Re: Could be done, but it'd take a fair amount of work Reply with quote

masinick wrote:
ghostdawg wrote:
So, is anybody using it yet? If so, any comments about it?


I have not tried it yet. I know that kernel support is imminent. After that, we will start to see rollouts of ext4 in use.

Should I get into a situation where I have a fair amount of extra testing time, I'd like to look into trying out this file system. Even test versions ought to be usable enough that they should not seriously corrupt systems, but I could be wrong. I would imagine that it would take a bit of doing to set up this file system if not integrated into the kernel already. Would involve recompiling a kernel with the ext4 support included - not a huge deal, but it would involve some searching for the right base code and the right extensions, then actually building the kernel to support ext4, then migrate from one file system to another, not exactly trivial work.

Isn't it available for the newest kernel? If so, can it be used now? Just a thought on it.



_________________
Debian 64 - Sourcemage - Fedora 10
Back to top
View user's profile Send private message
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Wed Dec 31, 2024 12:05 am    Post subject: 2.6.28 has the support if distros implement it Reply with quote

There is some support in the 2.26.28 kernel. Whether it is complete support and whether each distro owner chooses to include it or not remains to be seen. You could probably get it going with Arch, Gentoo, and perhaps sidux with a bit of help, or you could build your own custom kernel from the latest sources, explicitly include ext4 support and it ought to work.



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Wed Dec 31, 2024 1:03 pm    Post subject: Reply with quote

well I can say that ext4 has arrived

I converted the / of my gentoo-amd64 install to ext4 by doing the following:

1. updated to kernel 2.6.28 (I'm running stable not ~arch) and compiled with ext4 support
2. from within gentoo (doesn't need to be) edited /etc/fstab changing ext3 to ext4 for / (note don't do this for /boot!!!)
3. rebooted into my arch64 and ran the following (I have e2fsprogs-1.41.3-2 which includes the ext4 support):
Code:
tune2fs -O extents,uninit_bg,dir_index /dev/sb1

4. ran the fsck (absolutely required):
Code:
fsck -pf /dev/sdb1

note: there'll be a lot of checksum errors - these are par for the conversion process
5. reboot

At present you can do any one of 3 things if you have the right kernel and tools:

1. build a new filesystem from scratch (e.g. a fresh install)
2. convert an existing ext3 partition (not /boot without grub2 and some additional tweaking and if /boot resides in /root I would go for option 1 only)
3. mount an existing ext3 as ext4 with -o noextents (i.e. it'll show up as ext4 but the file-structure is still ext3 and you have none of the ext4 stuff working <-- I could well be wrong there, but take it as a rough synopsis)

Before anyone thinks of doing what I've done, note that I've rebooted 2x, synced and emerged all of one (small package), browsed and played a couple of tunes - it may not boot up tomorrow Wink

Additionally, the steps above are in no way a tried and tested howto - follow at your own peril...no actually don't even do that, go read everything you can find related to ext4 for your distro/hardware, weigh that against the value of your working install and stored data

FWIW, gentoo with open.rc and ext4 boots up in no time Smile


Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Wed Dec 31, 2024 2:03 pm    Post subject: Reply with quote

I'll probably just wait until Arch has it as an option in the installer.... and then i'll just reinstall. 99% of my actual important data is on an external hard drive, so it's not that big of a deal to actually reinstall Arch when it's available via the installer.

Good to know it's fast Wink



_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Wed Dec 31, 2024 2:18 pm    Post subject: Reply with quote

this provides a good overview of the migration from ext3 to ext4
It includes some of the pitfalls, the different options currently available, and a rough howto.
It also outlines the roadmap including online defrag using the e4defrag tool (not in 2.6.28 ). Which actually means, I won't be able to fully convert existing data to ext4 until that becomes available (more on that here under the tweaking ext4 section)
That said, there is/will be enough support for migration to avoid reinstalls (which I avoid like the plague)


Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Wed Dec 31, 2024 3:05 pm    Post subject: Reply with quote

jester wrote:
this provides a good overview of the migration from ext3 to ext4
It includes some of the pitfalls, the different options currently available, and a rough howto.
It also outlines the roadmap including online defrag using the e4defrag tool (not in 2.6.28 ). Which actually means, I won't be able to fully convert existing data to ext4 until that becomes available (more on that here under the tweaking ext4 section)
That said, there is/will be enough support for migration to avoid reinstalls (which I avoid like the plague)


Thanks, Jester! While I am not quite ready to jump to ext4 just to know the file system, I do plan on keeping an eye on its maturity, and I do plan to be a moderately early adopter, at least on a test system, but I will probably not go for a widespread, mass conversion until it becomes the status quo.

Very interesting to see how it is coming along, though, and your posts are most informative, so thank you very much for them!



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
jada
Linux Guru


Joined: 13 May 2024
Posts: 3064
Location: Sun City, CA 92585

PostPosted: Wed Dec 31, 2024 3:40 pm    Post subject: Reply with quote

I have tested ext4 with Fedora before, and it is allready a part of Archlinux in testing. The new Grub uploaded today on the Archlinux servers "core stable" is ext4 ready. But how need ext4? Does some have t-drives?



_________________
openSUSE 11.1 Desktop KDE 4.3.1 buildservice Factory
Linux Mint 7 Desktop Gnome
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
tlmiller
Ultimate Member


Joined: 01 May 2024
Posts: 2433
Location: MD, USA

PostPosted: Wed Dec 31, 2024 3:57 pm    Post subject: Reply with quote

I'll move to EXT4 as soon as I can install it as EXT4 instead of converting.



_________________
Debian Squeeze, Arch, Kubuntu mostly. Some Mandriva. Some Windows.
Desktops: shadowdragon, medusa
Laptops: bluedrake, banelord, sandwyrm, aardvark.
Back to top
View user's profile Send private message AIM Address MSN Messenger
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Wed Dec 31, 2024 4:09 pm    Post subject: Reply with quote

masinick wrote:
Thanks, Jester! While I am not quite ready to jump to ext4 just to know the file system, I do plan on keeping an eye on its maturity, and I do plan to be a moderately early adopter, at least on a test system, but I will probably not go for a widespread, mass conversion until it becomes the status quo.

Very interesting to see how it is coming along, though, and your posts are most informative, so thank you very much for them!

I guess every forum needs a couple of crash-test-dummies Wink Thanks for the props, but I think I've tested far sketchier code (2.5.x kernels, kernel patch-sets from respected to 'never-let-anyone-else-ever-know', reiserfs4, the list goes on Wink ). The main point here is that it's in the mainstream kernel, it's no longer testing; however, the ext2/3 family have been such stalwarts for the majority of linux users/adopters (whether they knew it or not), the looming jump to ext4 potentially poses a huge shear in their computing reality.

@jada: yep, it's in arch testing, but I keep my arch as bog-standard as I can; I'm close to 7 years on gentoo, but only 2 on arch - as today's experiment showed, having that stable arch around actually allowed me to go into and execute the gentoo experiment.

Put the stability discussion aside, and yes, arch users are also getting the conversion trick working, but it is taking a few more steps than gentoo since several of the tools are still not mainstream. It is possible on arch (and all distros, if you can live with the required steps to get there - I read that ubuntu is quite the hoop-fest...), that is not in debate (note the highlighted text in the linked screenshot).

As to who needs ext4, well eventually most of us, but not because of terabyte and up storage - a read through the Ext4 wiki entry not only clarifies its origins as being extensions to address 64-bit computing concerns but covers reduced fragmentation through extents, better journal checking, better allocation, and better timestamps, including but not limited to the following:

wikipedia wrote:
The year 2024 problem (also known as "Unix Millennium bug", or "Y2K38" by analogy to the Y2K problem) may cause some computer software to fail before or in the year 2024. The problem affects all software and systems that store system time as a signed 32-bit integer, and interpret this number as the number of seconds since 00:00:00 January 1, 1970.[1] The latest time that can be represented this way is 03:14:07 UTC on Tuesday, 19 January 2024. Times beyond this moment will "wrap around" and be stored internally as a negative number, which these systems will interpret as a date in 1901 rather than 2024. This will likely cause problems for users of these systems due to erroneous calculations.

Most 32-bit Unix-like systems store and manipulate time in this format, so this problem is often referred to as the "Unix Millennium Bug". However, any other non-Unix operating systems and software that store and manipulate time this way will be just as affected by this problem.


Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Sun Feb 01, 2024 1:08 am    Post subject: Reply with quote

Although e4defrag is not yet out there, Con Kolivas has a defrag script (fs-agnostic I think) available

Running this on the recently ext3 > ext4 converted gentoo / partition has enabled extents, which you can check by running
Code:
lsattr

if all has gone to plan, you should see your files (not folders) listed with
Code:
-------------e- /home/jester/new.conkyrc

The ArchWiki now has a write up on how to move to ext4 with the usual caveats one would expect with such a 'young' fs

If I've understood correctly, there is no turning back for my gentoo / Wink
ArchWiki wrote:
WARNING: ext4 is backwards-compatible with ext3 until extents and other new fancy options are enabled. If the user has a partition that is shared with another OS that cannot yet read ext4 partitions, it is possible to mount said partition as ext4 in Arch and still be able to use it as ext3 elsewhere at this point... Not so after the next step! Note, however, that there are fewer benefits to using ext4 if the partition is not fully converted.



_________________
Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Sun Feb 01, 2024 1:12 am    Post subject: Reply with quote

I have been experimenting a bit with the ext4 file system on Kubuntu 9.04 Alpha tests.



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Sun Feb 01, 2024 1:47 am    Post subject: Reply with quote

masinick wrote:
I have been experimenting a bit with the ext4 file system on Kubuntu 9.04 Alpha tests.

anything to note?
personally I'm not sure that it is particularly faster than ext3 (I've done no benchmarking)

I have arch (reiserfs3) and gentoo (ext4) / both on the 10k/rpm WD Raptor; both systems use prelinking; the other drive is a WD 7.2k/rpm (but SATA-II); boot also sits on the Raptor

Without accurate benchmarking tools, any observations on relative speed of the fs would be purely subjective; I will stand by reiserfs3 before the usual naysaying starts - 8 years and only one (user-inflicted) data corruption; I've also had no issues with ext2/3; xfs used to explode on a regular basis for me back in 2024/3 so I've never looked back

In terms of stability it's far too early to comment; a few medium size compiles, but nothing overly taxing; looking forward to the official tools and some way to monitor the benefits of an online defrag tool


Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » System Administration and Security All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse