[Wylug-help] Switching the system to a new hard drive

John Hodrien johnh at comp.leeds.ac.uk
Sun Feb 10 21:41:47 GMT 2008


On Sun, 10 Feb 2008, Felix Ulrich-Oltean wrote:

> My plan:
>
> - make some new partitions with cfdisk on /dev/sda
>
> - mount the new partitions and copy across all the data (with rsync or
>  cp?)

I'd be more of a fan of dump and restore.  This is the sort of thing I do like
LVM for, as it'd let you move from the old disk to the new disk without
unmounting or a reboot...

> - change /etc/fstab to point /var, /home, /boot and / to the new
>  partitions

Yep.

> - fiddle with /boot/grub/menu.lst (not sure exactly what to put in
>  there?)

If you're physically removing the old disk then you've got to also reinstall
grub on your SATA disk.  It really won't be that different, so you should be
able to work it out.

> - cross fingers, etc.
>
> Any advice, pointers, HOWTO ideas, etc much appreciated,

Make sure your initrd has all the modules you need to use the SATA disk, else
it'll be a disappointing reboot.

jh

-- 
"However efficiently artificial light annihilates the difference between night
  and day, it never wholly eliminates the primitive suspicion that night people
  are up to no good."                                 -- Alfred Alvarez



More information about the Wylug-help mailing list