Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 07-27-2005, 01:33 PM   #1
LQ Newbie
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
How to convert ext3 to jfs?

Hi people,

I need to convert an ext3 filesystem to jfs. Anyone here can help me? Have a easy way to make this or i need to backup data, remove all filesystem and create a new fs using jfs choices?


Old 07-27-2005, 01:56 PM   #2
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
The JFS homepage says basically that it can't be done easily, but if you want to anyhow here's how:
Make sure your kernel is built with JFS support.
Make sure you've compiled and installed the JFS file system utilities.

...unmount any NFS, SMB, or cdroms that are mounted. Create a mount point for the new JFS partition and mount it. There are a few things to remember before we start copying files. Don't copy /proc over, but do create a mount point for it after you are done. If you didn't or couldn't unmount some of your NFS mounts or cdroms, remember to skip them when you do the copy. Copy everything else using cp -a.

#mkdir /jfsvol
#mount -t jfs /dev/hda6 /jfsvol
#cd /
#cp -a bin etc lib boot dev home usr var [...] /jfsvol
#mkdir /jfsvol/proc

3.4 Final setup
Before we reboot into our new root partition, there are a just a couple of final things that need to be done. First, we need to change the /etc/fstab entry for the root partition, but you need to be certain to change the right one. Remember that the fstab file we want to work with is the one under /jfsvol/etc. So edit this file, and look for the line describing the root partition. Mine looks like this:

LABEL=/ / ext2 defaults 1 1

We want to change that to say:

/dev/hda6 / jfs defaults 1 1

You can now unmount /jfsvol. Edit /etc/lilo.conf to point to the new root partition. I'm paranoid, so I like to just copy and paste the one I already have for the jfs kernel and modify the root= line to point to the new partition. You'll also need to give it a new label. The new section on my system looks like this:


Make sure that you run 'lilo' again before you reboot.

So basically, have a really big hard drive, half of which isn't used, and format that half all in jfs...then copy your existing system over onto it. I'd p'bly prefer backing up your data and'll use less disk space

Last edited by rose_bud4201; 07-27-2005 at 01:58 PM.
Old 07-27-2005, 02:08 PM   #3
LQ Newbie
Registered: Jul 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Re: How to convert ext3 to jfs?

Thanx for help.

I donīt need to convert all filesystems. Today i have ext3 and jfs on the same server. I need to convert just one of this filesystems. I think we have othe way to do this, but i really apreciated your answer.



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
reiserfs/jfs/ext3 filesystems eranb2 Debian 8 02-20-2005 02:23 AM
RedHat=EXT3 Choice=reiserfs,jfs,xfs myutopia Linux - Enterprise 7 07-09-2004 01:09 PM
Convertin EXT3 to JFS lokee Linux - General 4 06-23-2003 08:15 AM
ext3, reiserfs, jfs, and xfs ? sapilas Linux - Distributions 3 05-13-2002 09:22 AM
Journalized file system jfs/ext3/reiserfs epic Linux - Distributions 4 08-27-2001 03:34 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration