On 2002.06.07 21:00 Rob Cartier wrote:
> I was looking for right way to replace a failing
> hard drive in RH 7.2. Starting to throw dma_intr 0x51 and 0x40 errors
> 
> 
> Can anyone point me to a write-up. I found one for rh 6.0
> but I tried it and failed at boot time
> 
> http://www.storm.ca/~yan/Hard-Disk-Upgrade.html
> 
> While it appeared to copy all the files from one disk/partition to
> the other. There seems to be a flaw in the boot.
> 
> It couldn't find a ram disk and it complained that /dev/hda1 was mounted
> 
> 
> any and all help would be greatly appreciated before the disk fails
> completely and I am forced to rebuild from scratch :(

You'll need to reconfigure the boot process to tell it to use the new disk.

"info grub"

or just poke about in /etc/grub.conf.

Then you'll eventually need to poke some more because the after the
old drive is removed the new drive will be the first drive.

For safety, and maybe necessity, you'll want a boot floppy or 3.

Also get toms root boot from toms.net.

To make a boot floppy.

dd if=/boot/vmlinuz of=/dev/fd0 bs=512; # or /boot/<whateveryourkernelis>
(remove and replace floppy)
cmp /boot/vmlinuz /dev/fd0; # verify, should get an EOF on vmlinuz

rdev /dev/fd0 /dev/hda1; # or /dev/<myrootpartition>, see what "mount" 
says is "/"
rdev -R /dev/fd0 1

You'll want several floppys mounting different partitions as root.
You'll have two, one on the new and one on the old disk, and they'll
move about as you add or delete drives.  Make sure they work before you
muck about too much.

You'll also have issues with /etc/fstab as drive names change.

Learn to use single user mode "telinit 1", or when booting:
<kernelname> single
(Although you wind up here anyhow when things break.)


Karl <[EMAIL PROTECTED]>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to