Restoring contents from unbootable drive

erobs

Well-Known Member
Nov 24, 2002
48
0
156
I had a primary harddrive that has failed to boot, but could be remounted using redhat rescue disk.

How can I move contents from old drive to new cpanel on new drive?

Thanks,
Rob

cPanel.net Support Ticket Number: 17422
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,050
0
166
Put both drives in the machine; they should be the same size. New drive should be primary (clean drive, no partitions or data), old drive should be secondary. Boot off a rescue CD into a shell and issue the following:

dd if=/dev/hdb of=/dev/hda bs=1024k

After rebooting to the new drive in single user mode:

fsck -y /dev/hda1
mount /dev/hda1 /boot
lilo -v
sync
shutdown -r now

*Assuming that /boot is hda1

cPanel.net Support Ticket Number:
 

ThunderHostingDotCom

Well-Known Member
Nov 18, 2002
449
1
168
All over!
Originally posted by ciphervendor
Put both drives in the machine; they should be the same size. New drive should be primary (clean drive, no partitions or data), old drive should be secondary. Boot off a rescue CD into a shell and issue the following:

dd if=/dev/hdb of=/dev/hda bs=1024k

After rebooting to the new drive in single user mode:

fsck -y /dev/hda1
mount /dev/hda1 /boot
lilo -v
sync
shutdown -r now

*Assuming that /boot is hda1

cPanel.net Support Ticket Number:

The only problem is that the new main drive is a SCSI so it is not exactly the same size as the IDE.

cPanel.net Support Ticket Number:
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,050
0
166
Originally posted by ThunderHostingDotCom
The only problem is that the new main drive is a SCSI so it is not exactly the same size as the IDE.

cPanel.net Support Ticket Number:
Who said anything about SCSI or IDE in this thread?

cPanel.net Support Ticket Number:
 

ThunderHostingDotCom

Well-Known Member
Nov 18, 2002
449
1
168
All over!
Originally posted by ciphervendor
Who said anything about SCSI or IDE in this thread?
cPanel.net Support Ticket Number:
I was referred from my original post in another thread that mentioned my setup with IDE & SCSI.

cPanel.net Support Ticket Number:
 

carperman

Well-Known Member
Feb 7, 2002
150
0
316
Originally posted by ciphervendor
Who said anything about SCSI or IDE in this thread?

cPanel.net Support Ticket Number:
surley hda indicates IDE?

cPanel.net Support Ticket Number:
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,050
0
166
Originally posted by carperman
surley hda indicates IDE?

cPanel.net Support Ticket Number:
hda was used as an example; notice the asterisk at the end of my post. The SCSI/IDE discussion you're impeding on is in regards to another thread--which was mentioned earlier in this thread.

cPanel.net Support Ticket Number:
 

ThunderHostingDotCom

Well-Known Member
Nov 18, 2002
449
1
168
All over!
Originally posted by ciphervendor
hda was used as an example; notice the asterisk at the end of my post. The SCSI/IDE discussion you're impeding on is in regards to another thread--which was mentioned earlier in this thread.

cPanel.net Support Ticket Number:

I find it funny how when you have been doing this for years like you have you seem to forget where you come from & take for granted how much others know or dont know!

cPanel.net Support Ticket Number: