Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Upgrade from Ext3 to Ext4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sian
Apprentice
Apprentice


Joined: 26 Jan 2004
Posts: 288

PostPosted: Sun Jun 07, 2009 7:15 pm    Post subject: [SOLVED] Upgrade from Ext3 to Ext4 Reply with quote

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
View user's profile Send private message
Kosmas
Apprentice
Apprentice


Joined: 14 Sep 2006
Posts: 276
Location: Greece

PostPosted: Sun Jun 07, 2009 8:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
blueflame
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2006
Posts: 107
Location: Singapore

PostPosted: Mon Jun 08, 2009 12:42 am    Post subject: Re: Upgrade from Ext3 to Ext4 Reply with quote

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
View user's profile Send private message
sian
Apprentice
Apprentice


Joined: 26 Jan 2004
Posts: 288

PostPosted: Mon Jun 08, 2009 11:17 am    Post subject: Reply with quote

Hello,
I used systemrescuecd to do it.
THX !!
_________________
Kernel : 2.6.32 - E17 - OpenRC-0.61 - gcc-4.4.3
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Mon Jun 08, 2009 9:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
sian
Apprentice
Apprentice


Joined: 26 Jan 2004
Posts: 288

PostPosted: Tue Jun 09, 2009 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
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