View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 1 post ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Nov 29, 2009 5:49 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 24 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu