LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2008, 05:15 PM   #1
rengo.Java
Member
 
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48

Rep: Reputation: 15
From ext3 to ext4


Hi all!
I hear that ext4 is stable in the 2.6.28 kernel.
I download it and compile it whit ext4 support.

Now, what is the best way to migrate the ext3 partitions to ext4.
Is enough with mounting the partitions using the ext4 filesystem type? in this way i have all the adventages of ext4 like extents?? Or I must to format or run some command to migrate??
And can I use ext4 in my root partition (and boot from it with LILO)?

I read a lot of articles and Im confused about this...

Thanks!!
 
Old 12-26-2008, 05:19 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
Does this help: http://www.ibm.com/developerworks/li...xt4/index.html it seems all you have to do it mount using the new type.
 
Old 12-26-2008, 05:26 PM   #3
rengo.Java
Member
 
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
To use a device as an ext4 file system, you should mount it with the ext4dev file system type code. (When ext4 becomes stable, the file system type code will change to ext4.) For instance, mount -t ext4dev /dev/sda6 /mnt/point mounts /dev/sda6 as an ext4 file system at /mnt/point. That's all there is to basic ext4 use. Be aware that the default mount options enable extents, which renders the file system unusable as an ext3 file system. If you want to try ext4 but retain the option of going back to ext3, use the -o noextents option to disable use of extents.
Thanks!!
 
Old 12-26-2008, 07:49 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,288

Rep: Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993
Have a look at ext4.txt in your source tree - it will refer you to the ext4 wiki. Spend some time there.
 
Old 12-26-2008, 09:14 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 403Reputation: 403Reputation: 403Reputation: 403Reputation: 403
Quote:
Originally Posted by harry edwards View Post
Does this help: http://www.ibm.com/developerworks/li...xt4/index.html it seems all you have to do it mount using the new type.
That will work, but just mounting it as the new type will not provide ALL the ext4 new capabilities.

Check this,

http://kernelnewbies.org/Ext4

all the procedures are described there. The full conversion involves using tune2fs to turn on the new capabilities, and fsck to apply all the changes so it can be mounted as ext4.
 
Old 12-27-2008, 07:37 AM   #6
rengo.Java
Member
 
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
Have a look at ext4.txt in your source tree - it will refer you to the ext4 wiki. Spend some time there.
There is a thing I dont understand

Quote:
Or configure an existing ext3 filesystem to support extents and set
the test_fs flag to indicate that it's ok for an in-development
filesystem to touch this filesystem:

# tune2fs -O extents -E test_fs /dev/hda1
When I do this step, the filesystem to be converted, must be unmounted? I think yes, but unsure...

Thanks for the answers!
 
Old 12-27-2008, 10:58 AM   #7
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Quote:
Originally Posted by rengo.Java View Post
There is a thing I dont understand



When I do this step, the filesystem to be converted, must be unmounted? I think yes, but unsure...

Thanks for the answers!
Yes, to run the tune2fs command, the target filesystem must be unmounted. This means you may have to boot from a LiveCD, depending on which partition you plan to convert.
 
  


Reply

Tags
ext4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Ext4 Filesystem LXer Syndicated Linux News 1 12-25-2008 03:58 PM
Ext4 aukuntin Linux - General 1 09-16-2008 10:15 AM
ext4 on fedora sulphur marciobarbalho Fedora 5 06-22-2008 09:02 PM
installing 2.6.20.rc2 kernel, upgrading ext3 to ext4? Lord of the Board Linux - General 2 12-29-2006 05:15 PM
LXer: Ext3 for large filesystems and Time for ext4? LXer Syndicated Linux News 0 06-24-2006 07:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration