View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 12 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Nov 28, 2009 3:16 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
My old LinHES hdd is getting old and I want to transfer it to a new drive on a newer motherboard. Both boards have the same chipsets, one is slightly newer with SATA1 onbaord (SiI chipset). Note: both boards are old, but again, use the same chipset if this matters. Old board: Asus A7N8X-VM and new board: Asus A7N8X Deluxe.

1) I used gparted to copy my functional LinHES partition from old HDD (IDE) to new HDD (SATA).
2) I manually created swap
3) I manually created a new /myth and copied over the old /myth
4) I adjusted the /etc/fstab (not using uuids but just /dev/sda1, /dev/sda2, /dev/sda3)
5) I installed grub on the new HDD with a live Arch CD so it would work which it does

I can't boot the new drive. It displays the grub menu and tries to boot, but it can't find the root device '/dev/sda1' and drops me to a recovery shell.

I'm wondering if LinHES installed to an IDE system and manually xfered to a SATA system is missing the SATA hooks? Help :)

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 28, 2009 5:40 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I suspected that I had to re-run mkinitcpio to get the sata hooks in there, so I followed an Arch wiki page I used to install Arch from within a Live Ubuntu CD once in the past. See this article.

Basically, I booted into my live arch cd then did:

Code:
# mkdir /newarch
# mount /dev/sda1 /newarch
# 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


Then I rebooted and everything was great! Hope someone else finds this useful.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 23, 2010 7:44 pm 
Offline
Joined: Sun Feb 12, 2006 7:40 pm
Posts: 6
I had the same problem after completely upgrading the hardware in my system (except the hard drives, of course) - this procedure worked like a charm!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 24, 2010 2:47 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Cool man, glad someone else found it useful. It has saved me several times now.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2011 11:16 pm 
Offline
Joined: Thu Jan 01, 2004 9:21 pm
Posts: 84
Location: Fort Collins, CO USA
Just want to say that this also worked for me when moving my PATA drive with R6.03 on it from an old system to a new one. I did use a PATA-to-SATA adapter on the drive to plug it into a SATA port on the motherboard, but I think these steps would have been necessary even if I plugged it into a PATA port on the motherboard.

Thanks graysky.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2011 11:30 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
This looks like it will be very useful for my situation. I don't have an ARCH live CD -- can I do this by booting a LINHES live CD?

_________________
Marc

The views expressed are my own and do not necessarily reflect the views of my employer.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 10, 2011 11:31 am 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
Yes the procedure will work with the linhes install cd.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 10, 2011 12:40 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Glad people are still getting some mileage on my random thoughts :)

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 11, 2011 9:27 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
I can confirm that it worked like a champ for me. I've been looking for a way to do this for years -- thanks for publishing this!

Marc

_________________
Marc

The views expressed are my own and do not necessarily reflect the views of my employer.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 15, 2011 5:46 am 
Offline
Joined: Mon Apr 19, 2010 2:23 am
Posts: 52
Location: Australia
Just wondering if you could use Clonezilla to copy to a new HDD. Has anyone tried it, or know if it would work?

http://clonezilla.org/


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 15, 2011 7:50 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
@ryan - to move the data you can probably use it but you will still have to rebuilt your kernel if the hardware is different. In my opinion, manually partitioning and formatting + rsync is the safest way to go.

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 15, 2011 9:11 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
Ryan, Graysky is spot on. Cloning will work if the hardware is similar enough, but I had never been successful doing cloning, copying or anything else until I follow Graysky;'s instructions when I was moving from a machine with the root partition connected via IDE to a a machine with the root partition connected via SATA.

_________________
Marc

The views expressed are my own and do not necessarily reflect the views of my employer.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 81 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