LinHES Forums
http://forum.linhes.org/

HOWTO: transfer LinHES from IDE --> SATA HDD
http://forum.linhes.org/viewtopic.php?f=25&t=20621
Page 1 of 1

Author:  graysky [ Sun Nov 29, 2009 5:49 am ]
Post subject:  HOWTO: transfer LinHES from IDE --> SATA HDD

This HOWTO is based on my experience transferring a fully functional LinHES (R6.00.01) install from an IDE drive to a SATA drive for use in another system. See that post here.

Kudos to the arch wiki for this article. It was really thanks to it that I was able to do this!

On to the howto... you'll need two things:
Gparted-Live CD (or usb)
Arch Linux Live CD (or usb)

(Booted into gparted)
1) I used gparted to copy my functional LinHES partition from the old HDD (IDE) to the new HDD (SATA) as /dev/sda1
2) I manually created swap as /dev/sda2
3) I manually created a new /myth as /dev/sda3 and copied over the old /myth (may take a long time depending on the size of the partition)
4) I adjusted the new /etc/fstab (not using uuids but just /dev/sda1, /dev/sda2, /dev/sda3)

(Booted into Arch live)
1) I reinstalled grub on the new HDD with a live Arch CD
Basically just login as root, then

Code:
# grub
<<<now you're in grub>>>
> root (hd0,0
> setup (hd0)
> quit


At this point, you won't be able to boot the new drive. You'll see the grub menu, but won't be able to find the root device '/dev/sda1' and will be dropped to a recovery shell. LinHES installed to an IDE system and manually xfered to a SATA system is missing some critical SATA hooks!

You're stilll booted into your live Arch CD and logined in as root so, do the following to fix it:

Code:
# mkdir /newarch
# mount /dev/sda1 /newarch


Note that you'll need to change /dev/sda1 to match your system. Also know that if you made a custom partition layout, it'll could be different AND if you made a separate /boot that you'll need to manually mount it to your /newarch/boot as well!

Code:
# cd /newarch/dev
# rm console ; mknod -m 600 console c 5 1
# rm null ; mknod -m 666 null c 1 3
# rm zero ; mknod -m 666 zero c 1 5
# mount -o bind /dev /newarch/dev
# mount -t proc none /newarch/proc
# mount -o bind /sys /newarch/sys

# chroot /newarch /bin/bash
# mkinitcpio -p kernel26


Now just reboot and everything should work!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/