LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 12-15-2004, 05:27 PM   #1
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Rep: Reputation: 30
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.
 
Old 12-15-2004, 05:30 PM   #2
sigsegv
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: Reputation: 46
Google is your friend
 
Old 12-15-2004, 06:32 PM   #3
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Original Poster
Rep: Reputation: 30
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?
 
Old 12-15-2004, 06:53 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
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...
 
Old 12-15-2004, 06:59 PM   #5
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Original Poster
Rep: Reputation: 30
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
 
Old 12-15-2004, 07:11 PM   #6
Brian1
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: Reputation: 61
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
 
Old 12-15-2004, 07:20 PM   #7
Garibaldi3489
Member
 
Registered: Oct 2004
Posts: 172

Original Poster
Rep: Reputation: 30
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?
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert ext3 to ext2 reply2vinay Linux - Hardware 1 09-30-2005 06:24 AM
how to convert from ext3 -> ext2 Kristian2 Linux - General 3 07-04-2004 10:37 AM
convert ext2 to ext3 perch Linux - Newbie 2 10-05-2003 09:26 AM
Convert ext2 to ext3 or something else? coldfusion713 Linux - Software 3 08-03-2003 01:57 AM
How can I convert my ext3 partitions to ext2 ? kkempter Linux - Software 2 02-25-2003 02:05 PM


All times are GMT -5. The time now is 09:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration