Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
JFS to Ext3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
MK24
n00b
n00b


Joined: 31 Dec 2004
Posts: 46

PostPosted: Sun Apr 22, 2007 4:56 am    Post subject: JFS to Ext3 Reply with quote

I am currently using jfs which has become slower and slower. So is their a possibility to change the filesystem of a partition from jfs to ext3?
Back to top
View user's profile Send private message
nbvcxz
Guru
Guru


Joined: 02 Sep 2005
Posts: 379
Location: Kraków / PL

PostPosted: Sun Apr 22, 2007 6:51 am    Post subject: Reply with quote

LiveCD -> partition backup (tar.bz2 ?) -> mkfs.ext3 -> restore backup -> change fstab

there is probably no other way (no on-fly filesystem converters)

btw. after making ext3 filesystem you can also tune2fs -O has_journal -o journal_data /dev/XXX eg. look@: https://forums.gentoo.org/viewtopic-t-549935-start-0.html
_________________
nBVCXz
zen-kernel (bfq compcache) | /tmp -> tmpfs | ext4 | zsh | xfce | schedtool


Last edited by nbvcxz on Sun Apr 22, 2007 10:30 am; edited 1 time in total
Back to top
View user's profile Send private message
buddabrod
Apprentice
Apprentice


Joined: 15 Oct 2006
Posts: 241
Location: Germany

PostPosted: Sun Apr 22, 2007 7:49 am    Post subject: Reply with quote

You can try shake.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sun Apr 22, 2007 10:12 am    Post subject: Reply with quote

is your partiton a data partition or your root partition?

If plenty of space is left try gparted and move then the data, only if this is a data partition. Dont forget=> bakcup before.
Back to top
View user's profile Send private message
MK24
n00b
n00b


Joined: 31 Dec 2004
Posts: 46

PostPosted: Sun Apr 22, 2007 6:25 pm    Post subject: Reply with quote

It's the root partition.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3432
Location: Gainesville, Florida

PostPosted: Mon Apr 23, 2007 2:42 pm    Post subject: Reply with quote

When I was using reiser3 and ran into fragmentation slowdown (perhaps with your jfs too), I did essentially what nbvcxz suggested from a knoppix live cd boot, using a spare data partition (/mnt/data) I had on my hard drive. I just didn't tar stuff up on my fragmented / partition, and instead used (as an example) cp -a /bin/ /mnt/data, etc., etc.

IIRC, I didn't copy over sys and proc to the spare data partition (or any other directories that aren't on / and have their own partitions, like /home), but recreated sys and proc as empty directories after deleting the others from /, and copying them back before rebooting.

There's lots of info on this subject, and probably better ways to do this than I'm describing, but they all accomplish the same thing. You could also reformat / in another file system if you wished before copying back. If you stay with the same FS, reformatting is not necessary just to defrag- just deleting the old directories and copying them back does the job.

The main thing is doing this operation from a live cd- knoppix was very convenient
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.7.2 USE=experimental python3_11
Back to top
View user's profile Send private message
buddabrod
Apprentice
Apprentice


Joined: 15 Oct 2006
Posts: 241
Location: Germany

PostPosted: Mon Apr 23, 2007 2:50 pm    Post subject: Reply with quote

wrc1944 wrote:
If you stay with the same FS, reformatting is not necessary just to defrag- just deleting the old directories and copying them back does the job.
As i said, look at shake, it does pretty much what you want but hast additional routines which organize all files in a better way, for example packing them physically close together on the hard drive.
Back to top
View user's profile Send private message
vipernicus
Veteran
Veteran


Joined: 17 Jan 2005
Posts: 1462
Location: Your College IT Dept.

PostPosted: Mon Apr 23, 2007 4:27 pm    Post subject: Reply with quote

buddabrod wrote:
wrc1944 wrote:
If you stay with the same FS, reformatting is not necessary just to defrag- just deleting the old directories and copying them back does the job.
As i said, look at shake, it does pretty much what you want but hast additional routines which organize all files in a better way, for example packing them physically close together on the hard drive.


If I wanted to do this on a root partition, would i do shake /dev/sda5?
_________________
Viper-Sources Maintainer || nesl247 Projects || vipernicus.org blog
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3432
Location: Gainesville, Florida

PostPosted: Mon Apr 23, 2007 4:30 pm    Post subject: Reply with quote

Shake looks pretty interesting. Is there any more user feedback/experiences or reviews I can look at, other than what a google search tured up?
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.36-r7, gcc-13.2.1_p20230304
kernel-6.7.2 USE=experimental python3_11
Back to top
View user's profile Send private message
deno
Guru
Guru


Joined: 13 Sep 2006
Posts: 411

PostPosted: Mon Apr 23, 2007 8:21 pm    Post subject: Reply with quote

google... Have you found this?

https://forums.gentoo.org/viewtopic-t-463204.html
Back to top
View user's profile Send private message
buddabrod
Apprentice
Apprentice


Joined: 15 Oct 2006
Posts: 241
Location: Germany

PostPosted: Mon Apr 23, 2007 8:55 pm    Post subject: Reply with quote

vipernicus wrote:
buddabrod wrote:
wrc1944 wrote:
If you stay with the same FS, reformatting is not necessary just to defrag- just deleting the old directories and copying them back does the job.
As i said, look at shake, it does pretty much what you want but hast additional routines which organize all files in a better way, for example packing them physically close together on the hard drive.


If I wanted to do this on a root partition, would i do shake /dev/sda5?
I did
Code:
shake --old 0 -T 20 -t 20 -vv /
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum