LinuxQuestions.org
Visit Jeremy's Blog.
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, 04: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, 04: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: 47
Google is your friend
 
Old 12-15-2004, 05: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, 05:53 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
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, 05: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, 06:11 PM   #6
Brian1
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: Reputation: 65
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, 06: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 05:24 AM
how to convert from ext3 -> ext2 Kristian2 Linux - General 3 07-04-2004 09:37 AM
convert ext2 to ext3 perch Linux - Newbie 2 10-05-2003 08:26 AM
Convert ext2 to ext3 or something else? coldfusion713 Linux - Software 3 08-03-2003 12:57 AM
How can I convert my ext3 partitions to ext2 ? kkempter Linux - Software 2 02-25-2003 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:38 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
Open Source Consulting | Domain Registration