LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 07-27-2005, 02:33 PM   #1
wagnerm25
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?

Thanx

Wagner
 
Old 07-27-2005, 02:56 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

Rep: Reputation: 30
The JFS homepage says basically that it can't be done easily, but if you want to anyhow here's how:
Quote:
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:

default=jfsboot2
...
image=/boot/vmlinuz-2.4.0-jfs
label=jfsboot2
read-only
root=/dev/hda6

Make sure that you run 'lilo' again before you reboot.
(From http://jfs.sourceforge.net/project/pub/jfsroot.html)

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 reformatting...it'll use less disk space

Last edited by rose_bud4201; 07-27-2005 at 02:58 PM.
 
Old 07-27-2005, 03:08 PM   #3
wagnerm25
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.

Wagner
 
  


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


All times are GMT -5. The time now is 07:55 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration