LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-02-2007, 08:23 AM   #1
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 518

Rep: Reputation: 51
dd disk to disk but wont boot


i have a voicemail server running suse and it only has a single drive. i wanted to dd the drive to another. i shutdown, cabled in another drive, booted with knoppix, dd'd from one to the other, all went fine. but now if i swap disks and try to boot the system wont boot. did i miss something ??
 
Old 01-02-2007, 08:35 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
The implication is that old and new drives are the same protocol--IDE? SATA?

Are they the same size?

Did you "dd" the whole drive, or just a partition? (Post the actual command you used.)
 
Old 01-02-2007, 08:39 AM   #3
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 518

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by pixellany
The implication is that old and new drives are the same protocol--IDE? SATA?

Are they the same size?

Did you "dd" the whole drive, or just a partition? (Post the actual command you used.)
ah, the details.

yes, same type and size drive. i did this a few months back so i dont recall the exact command i used (i think it was just dd if=/dev/hda of=/dev/hdb). but yes, i used dd to copy every block of the disk. when finished the block count matched that of the disk size, so it looked to me like the whole disk was copied....

Last edited by Linux_Kidd; 01-02-2007 at 09:29 AM.
 
Old 01-02-2007, 02:22 PM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Please could you tell us exactly what error messages you are getting. When you say you switched drives you do mean that you physically unplugged the old drive and put the same cables into the new drive?
 
Old 01-02-2007, 05:59 PM   #5
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 518

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by TigerOC
Please could you tell us exactly what error messages you are getting. When you say you switched drives you do mean that you physically unplugged the old drive and put the same cables into the new drive?
the destination drive was on same ide but jumper set as slave. i then took off the primary drive, changed destination drive jumper to master and tried to boot, system would just hang at a blck screen after bios post.
 
Old 01-02-2007, 06:23 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,004

Rep: Reputation: 304Reputation: 304Reputation: 304Reputation: 304
Get into BIOS during the boot process and see it it lists the new drive. Try switching the ide connectors - plug the new drive into the same connector as the previous drive was plugged in to. Make sure when you went from slave to master with that jumper that you didn't accidently get the wrong position. Check to make sure that in all the jostling around that you didn't slightly unseat the ide cable off it's motherboard connector. Try setting the jumper to "cable select" rather than master (and plug the drive into the first connector on the cable). Check the power connector on the new drive. Try putting the old drive back in place and see if it still boots.

Last edited by haertig; 01-02-2007 at 06:24 PM.
 
Old 01-02-2007, 08:31 PM   #7
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 518

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by haertig
Get into BIOS during the boot process and see it it lists the new drive. Try switching the ide connectors - plug the new drive into the same connector as the previous drive was plugged in to. Make sure when you went from slave to master with that jumper that you didn't accidently get the wrong position. Check to make sure that in all the jostling around that you didn't slightly unseat the ide cable off it's motherboard connector. Try setting the jumper to "cable select" rather than master (and plug the drive into the first connector on the cable). Check the power connector on the new drive. Try putting the old drive back in place and see if it still boots.
i tried all that, and yes, old drive still works just fine and is what's running now.
 
Old 01-03-2007, 08:55 AM   #8
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Is the bios seeing the new drive? Try booting with Knoppix or some live cd and see if file system is present. The dd command should have transfered the mbr on to the new disk.
 
Old 01-03-2007, 09:02 AM   #9
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 518

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by TigerOC
Is the bios seeing the new drive? Try booting with Knoppix or some live cd and see if file system is present. The dd command should have transfered the mbr on to the new disk.
yes, and yes. my thoughts were exactly your last sentence, but it just wont boot to anything.

ok, i'll conclude that something went wrong. i'll try again, but this time i'll use another pc for the destination disk, then i'll use knoppix to boot each and do a dd over netcat.

is it safe to dd a disk that has mounted partitions and is very write/read active (its a voicemail box)?

thanks
 
  


Reply

Tags
boot, dd, suse


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot Disk Failure, Insert System Disk and Press Enter!! novkhan Linux - Hardware 1 12-15-2005 07:39 PM
disk wont boot ben_h_24 Linux - Newbie 2 09-20-2005 04:33 PM
RHEL AS Disk 1 Bootable or not,creating boot disk. kmlinux12 Linux - Enterprise 1 09-23-2004 04:20 AM
Red Hat 9.0 Wont Boot Lost Boot Disk! AndrewBalmos Linux - Newbie 8 01-05-2004 07:06 PM
Installing Slack using Boot Disk (root disk stalls!) guardian653 Slackware 3 10-07-2003 04:03 PM


All times are GMT -5. The time now is 09:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration