You are not logged in.

#1 2011-08-25 23:47:12

lastdeadmouse
Member
Registered: 2011-03-08
Posts: 9

Moving / /boot and swap partitions to new drive

My be/fe mythtv box currently has 1- 1TB drive in it partitioned as sda1 /boot, sda2 swap, sda3 /, and sda4 /home.

I've recently happened upon a new WD 150 GB velociraptor through a fortunate series of warranty events, and I would like it and move the root, boot, and swap partitions to it.  This would be to relieve some I/O from the 1TB as it's used for recording, as well as provide more space for and speed up mysql.  Reinstalling is really not an option due to a very specific setup that took many, many hours, and very specific versions of certain packages (including the kernel) in order to not break my perfect video and ir receiver.

I have access to tools such as ERD and acronis which can read and copy ext2/3 (don't know about 4, only home is ext4 anyways) to the new drive leaving me only to fix grub and fstab I think.  Should I instead boot single user, partition as needed, cp -ax the necessary partitions, chroot and install grub?  I'm really at a loss on how to go about doing this, and my search-fu has yet to figure out a way I see fit.  Any advice?

Offline

#2 2011-08-26 02:05:42

cybertorture
Member
Registered: 2010-05-05
Posts: 339

Re: Moving / /boot and swap partitions to new drive

rsync -avxHAXS --delete --progress / /new-root
rsync -avxHAXS --delete --progress /boot /new-boot

as for swap u just mkswap-it big_smile, only thing left is grub,syslinux,lilo or w/e you use to create on new harddrive, even tho it is not really important IMO because you can leave /boot on old drive and boot from it.


O' rly ? Ya rly Oo

Offline

#3 2011-08-26 04:54:25

lastdeadmouse
Member
Registered: 2011-03-08
Posts: 9

Re: Moving / /boot and swap partitions to new drive

And then what all needs changed?  Fstab, I can do.  Grub to point at the new root?  how?

Offline

#4 2011-08-26 05:10:56

lastdeadmouse
Member
Registered: 2011-03-08
Posts: 9

Re: Moving / /boot and swap partitions to new drive

I think I got it, thanks!

Offline

Board footer

Powered by FluxBB