Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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-15-2004, 04:27 PM
|
#1
|
Member
Registered: Oct 2004
Posts: 172
Rep:
|
Possible to convert ext2 to ext3?
I have an ext2 install of slackware and I was wondering if it possible to upgrade to ext3 or have journeling without loosing my data. I have recently had boot problems related to my use of ext2 and I would like to try and prevent that if possible.
|
|
|
12-15-2004, 04:30 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197
Rep:
|
|
|
|
12-15-2004, 05:32 PM
|
#3
|
Member
Registered: Oct 2004
Posts: 172
Original Poster
Rep:
|
Quote:
http://www.troubleshooters.com/linux/ext2toext3.htm#_two2three
|
Thanks for the link. Do I only have to do the steps:
Quote:
Converting from Ext2 to Ext3
Xhttp://216.239.51.100/search?q=cache:5PKMKIH0Zx4C:http://www.cscdoc.eku.edu/Styer/401/...hl=en&ie=UTF-8
The conversion procedure is simple enough. Imagine /dev/hda10 mounted as /test – the procedure would be as follows:
* Log in as root
* Make sure /etc/fstab has /dev/hda10 mounted to /test as ext2, read write
* umount /dev/hda10
o If you can't unmount it, then remount it read only (mount -o remount,rw /dev/hda10)
* tune2fs -j /dev/hda10
* Edit /etc/fstab, and for /dev/hda10, change ext2 to ext3
* mount /dev/hda10
* /sbin/shutdown -h now
* mount | grep /dev/hda10
o If it's not shown as ext3, reboot, if still not, troubleshoot
o Otherwise, you're done.
A few explanations are in order. The tunefs command creates the journal file, which is kept in a special inode on the device (by default). You then must change the /etc/fstab entry to reflect it's a journalling filesystem, and then mount it.
|
To convert my whole filesystem.. or must I do the ones below it as well?
And, is this a fairly safe procedure?
|
|
|
12-15-2004, 05:53 PM
|
#4
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
You must do those steps for every partition you want to convert...If your system is spread over three partitions, then you have to do all three manually...
|
|
|
12-15-2004, 05:59 PM
|
#5
|
Member
Registered: Oct 2004
Posts: 172
Original Poster
Rep:
|
Quote:
You must do those steps for every partition you want to convert...If your system is spread over three partitions, then you have to do all three manually...
|
My linux install is installed in 1 partition, mounted at /dev/loop7. So would I change:
/dev/loop7 / auto defaults 1 1
to
/dev/loop7 / ext3 rw 0 0
|
|
|
12-15-2004, 06:11 PM
|
#6
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
I could be wrong but if your ' /etc/filesystems ' file contains ext3 in it then no problem leaving fstab as is. As long as your kernel has ext3 support compiled and add ext3 to ' /etc/filesystems ' then all should be fine.
Brian1
|
|
|
12-15-2004, 06:20 PM
|
#7
|
Member
Registered: Oct 2004
Posts: 172
Original Poster
Rep:
|
Quote:
I could be wrong but if your ' /etc/filesystems ' file contains ext3 in it then no problem leaving fstab as is. As long as your kernel has ext3 support compiled and add ext3 to ' /etc/filesystems ' then all should be fine.
|
I don't have the folder filesystems in /ect/ or a file called filesystems. I'm running kernel 2.4.24, and I'm almost positive that it supports ext3. So just run tunefs -j base.img (my install file) at a boot prompt to change to ext 3, or do I need to add more options?
|
|
|
All times are GMT -5. The time now is 01:38 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
|
|