Linux - GeneralThis 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.
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.
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?
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...
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
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,697
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.