View previous topic :: View next topic |
Author |
Message |
sian Apprentice
Joined: 26 Jan 2004 Posts: 288
|
Posted: Sun Jun 07, 2009 7:15 pm Post subject: [SOLVED] Upgrade from Ext3 to Ext4 |
|
|
Hello all,
I found how to upgrade a partition from Ext3 to Ext4 but I have only one partition '/' (/dev/hda4 in my case) which is in Ext3.
As it is mounted, I cannot convert it to Ext4 with this command :
tune2fs -O extents,uninit_bg,dir_index /dev/hda4
With a livecd, the root partition would be mounted as well, then how to do ?
I do not want to make a new fresh install.
Thanks for your help _________________ Kernel : 2.6.32 - E17 - OpenRC-0.61 - gcc-4.4.3
Last edited by sian on Mon Jun 08, 2009 11:14 am; edited 1 time in total |
|
Back to top |
|
|
Kosmas Apprentice
Joined: 14 Sep 2006 Posts: 276 Location: Greece
|
Posted: Sun Jun 07, 2009 8:27 pm Post subject: |
|
|
Hello there,
Perhaps you should use the system rescue cd which is the new alternative for the gentoo live cd and do it without mounting the root partition.
Hope I helped,
Kosmas. |
|
Back to top |
|
|
blueflame Tux's lil' helper
Joined: 26 Nov 2006 Posts: 107 Location: Singapore
|
Posted: Mon Jun 08, 2009 12:42 am Post subject: Re: Upgrade from Ext3 to Ext4 |
|
|
sian wrote: | With a livecd, the root partition would be mounted as well, then how to do ? |
Err, actually no it's not. You can run the tune2fs command from the live-cd.
Perhaps you're not clear on what the live-cd does...? |
|
Back to top |
|
|
sian Apprentice
Joined: 26 Jan 2004 Posts: 288
|
Posted: Mon Jun 08, 2009 11:17 am Post subject: |
|
|
Hello,
I used systemrescuecd to do it.
THX !! _________________ Kernel : 2.6.32 - E17 - OpenRC-0.61 - gcc-4.4.3 |
|
Back to top |
|
|
Cyker Veteran
Joined: 15 Jun 2006 Posts: 1746
|
Posted: Mon Jun 08, 2009 9:34 pm Post subject: |
|
|
Wait, can't you just mount it as ext4?
That's what I did and it seemed to work okay... (Admittedly I've not turned on extents, but the word is that if you do that then all new files will use extents and old ones will stay the same until they are re-written?) |
|
Back to top |
|
|
sian Apprentice
Joined: 26 Jan 2004 Posts: 288
|
Posted: Tue Jun 09, 2009 6:10 pm Post subject: |
|
|
Hello,
I wrote "ext4" in my fstab and could mount my partition as Ext4 is compatible with Ext3.
But I guess the new files are not written with the new features.
I wanted the new features of Ext4 which is done by the tune2fs operation.
I thought at first that it would convert all the partition.
Now only the new files will be written with the new features like extents. _________________ Kernel : 2.6.32 - E17 - OpenRC-0.61 - gcc-4.4.3 |
|
Back to top |
|
|
|