Full Version: Replacing a failing /dev/sda in a mirror array
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Unplug sda

Plug sdb in drive 0 position (master position) on motherboard

1. Boot from a Linux CD-ROM type : linux rescue when at the boot prompt.

2. make a folder to mount the disk to: mkdir /mnt/temp

3. The mount the master disk to a temp mount. mount /dev/sda1 /mnt/temp

4. Go to the mount location and make sure everything is there for a reality check.

5. Now we will re-write the boot loader so we can boot the disk (assuming hd0 is our target drive position the sda1 partition becomes a 0 as grub start counting a 0). This comes together as (hd0,0)

grub> root (hd0,0)
grub> setup (hd0)
grub> quit

6. Now reboot the machine and your clone drive should be a bootable master disk.
Reference URL's