You are not logged in.

#1 2009-04-07 15:46:59

Flasher
Member
From: Bavaria / Germany
Registered: 2005-04-24
Posts: 126

Copying complete root partition (seperate /boot)

Hello!

I want to migrate my root-Partition file system from xfs to ext4. I have a seperate ext2 formatted /boot partition. I created (free space on my disc) a temporary partition to copy all data from the xfs partition and formatted it in ext4.

Now, I want to boot my system from CD mount both partitions and make a complete copy. But which cp parameters are needed?

copy -r /mnt/xfs/* /mnt/ext4_temp ?

Thanks for help!

Best regards,

Flasher

Offline

#2 2009-04-07 16:16:04

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: Copying complete root partition (seperate /boot)

mkdir /mnt/root-xfs /mnt/root-ext4
mount /dev/sdaX /mnt/root-xfs
mount /dev/sdaY /mnt/root-ext4
(cd /mnt/root-xfs && tar cf - .) | (cd /mnt/root-ext4 && tar xvpf -)

Then - you must obviously remember to update your /mnt/root-ext4/etc/fstab and also your boot/grub/menu.lst

Offline

#3 2009-04-07 16:50:54

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Copying complete root partition (seperate /boot)

cp -a would work also.  recursive, retains permissions and mod times.

Offline

Board footer

Powered by FluxBB