LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2011, 02:38 PM   #1
noobface
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
Question sda hda clone nightmare!


Hi all,

We have a problem trying to boot a Linux RAM image (PING Release 3.00.04, with kernel 2.6.33.2.) from both IDE and SATA hard drives.

The Linux image is on the 2nd partition of the drives and the PING program restores the 1st partition.
We need this setup to be able to boot on IDE (hda2) and SATA (sda2) drives without changing any config files etc.

Is this possible??

Many thanks
 
Old 02-22-2011, 04:29 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by noobface View Post
Is this possible?
The folks on the PING forum might be better able to answer your question. Here is a link to a question similar to yours.
 
Old 02-22-2011, 05:44 PM   #3
vtel57
Member
 
Registered: Jul 2006
Location: VPN Tunnel, USA
Distribution: Slackware64
Posts: 928

Rep: Reputation: 113Reputation: 113
I don't know anything about Ping, but I run numerous distributions on a hybrid (EIDE/SATA) system with no problems. GRUB can do it all.
 
Old 02-22-2011, 07:18 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,187

Rep: Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356
:PING can copy a partition or a drive.

If you make a partition then restore the original to sda2 then all you'd need is grub or another loader to load the OS.
 
Old 02-23-2011, 04:57 AM   #5
noobface
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
more info

OK, forget I mentioned PING , the problem is with booting the system after transferring it to a different hard drive (eg. IDE > SATA)

Is there a way to configure LILO to "sense" the correct boot device or is there an alternative that can do the job?

For the record, altering files AFTER cloning is not an option for us.

Cheers

PS. I've attached a mock up of the system if that helps describing it!
Attached Thumbnails
Click image for larger version

Name:	system.jpg
Views:	13
Size:	65.8 KB
ID:	6231  
 
Old 02-23-2011, 03:33 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,187

Rep: Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356Reputation: 2356
I think the problem is how the drives are being described for your loader. What loader are you using? Lilo?
 
Old 02-23-2011, 06:21 PM   #7
vtel57
Member
 
Registered: Jul 2006
Location: VPN Tunnel, USA
Distribution: Slackware64
Posts: 928

Rep: Reputation: 113Reputation: 113
LILO is a bit behind the times. You'd be better off using GRUB and using UUID numbers to boot the drives/partitions.
 
Old 02-24-2011, 01:12 AM   #8
noobface
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by vtel57 View Post
LILO is a bit behind the times. You'd be better off using GRUB and using UUID numbers to boot the drives/partitions.
That would only work for us if the UUID was the same for every hard drive.

It seems I've got this working now by cloning the drives sector-by-sector which takes forever!
I'll mark this thread solved.

Cheers
 
Old 02-24-2011, 01:30 AM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I can't remember command to get uuid, but there is 1.
Also I believe that grub2 detects and updates them upon installation, atleast in debian.
 
Old 02-24-2011, 07:41 PM   #10
vtel57
Member
 
Registered: Jul 2006
Location: VPN Tunnel, USA
Distribution: Slackware64
Posts: 928

Rep: Reputation: 113Reputation: 113
To determine drive/partition UUIDs for all installed drives on your system:

Code:
ls -l /dev/disk/by-uuid
 
1 members found this post helpful.
Old 02-24-2011, 09:44 PM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Originally posted by; vtel57
Quote:
To determine drive/partition UUIDs for all installed drives on your system:
Quote:
ls -l /dev/disk/by-uuid
That's what I was talking about.
 
Old 02-25-2011, 11:46 AM   #12
vtel57
Member
 
Registered: Jul 2006
Location: VPN Tunnel, USA
Distribution: Slackware64
Posts: 928

Rep: Reputation: 113Reputation: 113
Glad to be of help, Eddy.

Have a great weekend.

~Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sda-> hda linuxgentoo Linux - Kernel 2 04-22-2008 05:06 AM
SDA is Now HDA carlosinfl Linux - Hardware 6 06-05-2007 09:00 PM
/hda to /sda - help! dodgydodgy Linux - General 9 10-20-2006 06:07 PM
Do I use hda or sda? jumico Linux - General 2 02-12-2006 05:55 PM
hda? sda? what do i have? nr5 Linux - Newbie 12 02-24-2005 06:50 PM


All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration