You are not logged in or registered. Please login or register to use the full functionality of this board...
Linuxcat.org
Replacing a failing /dev/sda in a mirror array - Printable Version

+- Linuxcat.org (https://www.linuxcat.org)
+-- Forum: Linux Guides and Troubleshooting (/forumdisplay.php?fid=1)
+--- Forum: Linux Guides (/forumdisplay.php?fid=2)
+--- Thread: Replacing a failing /dev/sda in a mirror array (/showthread.php?tid=50)



Replacing a failing /dev/sda in a mirror array - knifebunny - 07-30-2012 06:33 PM

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)

type:
/mnt/temp/sbin/grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

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