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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-26-2008, 04:15 PM
|
#1
|
Member
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48
Rep:
|
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!!
|
|
|
12-26-2008, 04:26 PM
|
#3
|
Member
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48
Original Poster
Rep:
|
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!!
|
|
|
12-26-2008, 06:49 PM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,238
|
Have a look at ext4.txt in your source tree - it will refer you to the ext4 wiki. Spend some time there.
|
|
|
12-26-2008, 08:14 PM
|
#5
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by harry edwards
|
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.
|
|
|
12-27-2008, 06:37 AM
|
#6
|
Member
Registered: Apr 2007
Location: Argentina
Distribution: Slackware
Posts: 48
Original Poster
Rep:
|
Quote:
Originally Posted by syg00
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!
|
|
|
12-27-2008, 09:58 AM
|
#7
|
Member
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438
Rep:
|
Quote:
Originally Posted by rengo.Java
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.
|
|
|
All times are GMT -5. The time now is 09:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|