LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 01-22-2002, 02:10 AM   #1
ericcarlson
Member
 
Registered: Jan 2002
Posts: 161

Rep: Reputation: 30
Converting ext2 to ext3


During a recent upgrade from RH 6.2 to RH 7.2 I was asked if I wanted to perform this conversion, I said no. Can I now do the conversion now I 'm happy the upgrade worked?
 
Old 01-22-2002, 05:22 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
yes, it's fairly straightforward, maybe a little scary tho...

to convert ext2 to 3 run

tune2fs -j /dev/hdXX

where XX is the partition number. Then you can edit the /etc/fstab file and change ext2 to ext3 for the relevant partitions. Note that you can only use this on UNMOUNTED partitions, so if you only use one main partition you will need to boot into a rescue mode or such like so as to not have your root system mounted. If you have a /usr or /home partitions you can just go down to single user mode (run 'init 1' on a console) and unmount them with 'umount /usr' for example.

You can still use ext3 as ext2, so if you don't up your fstab immeditaley it won't matter, it simply won't use the journal.
 
Old 01-22-2002, 07:25 AM   #3
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154

Rep: Reputation: 30
ext3

more info:
http://people.spoiled.org/jha/ext3-faq.html
 
Old 01-22-2002, 07:31 AM   #4
ericcarlson
Member
 
Registered: Jan 2002
Posts: 161

Original Poster
Rep: Reputation: 30
"Journal" - yes I heard of that, what exactly does ext3 give you?
 
Old 01-22-2002, 07:40 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well ext3 = ext2 + journal. nothing more.

a journal is a maintained list of files on a partition. it's kept up to date whilst the system is running, and so if the machine crashes there's much elss need to check the disk for errors. It seems kinda strange that there hasn't always been a journal in most file systems. as checking the drives on a 10 gig partition mightn't take that long, but if your 500Gb server goes down, it could be checking for hours.

incidentally, teh journal takes around 30mb of space on a drive, so isn't worth using on very small partitions
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting ext2 to ext3 phillips321 Linux - General 1 04-16-2005 07:45 PM
Converting Ext2 --> NTFS NonSumPisces Linux - General 11 10-28-2004 08:30 AM
Converting ext2 to ext3 joker20 Slackware 6 09-23-2004 06:18 PM
Converting from NTFS to EXT2 filesystem vavoem Debian 2 07-29-2004 07:36 AM
converting from ext2 to ext3 sqn Linux - Software 3 01-13-2004 03:25 PM


All times are GMT -5. The time now is 11:38 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