[CentOS] Re: hard drive failing in linux raid

Wed Nov 15 20:41:37 UTC 2006
Alexey Loukianov <aloukianov at lavtech.ru>

Çäðàâñòâóéòå, Scott.

Âû ïèñàëè 15 ?????? 2006 ?., 20:07:27:
> I actually forgot about this post, but I meant to post
> sfdisk -d /dev/hd_GOOD | sfdisk /dev/hd_NEWDISK
> to get the partition table dump that sfdisk is looking for.
On x86 servers I prefer to use another method:

# dd if=/dev/hd_GOOD of=/dev/hd_NEW bs=512 count=1
# sfdisk -R /dev/hd_NEW

This copies full MBR, including bootloader code, to a new disk.
When using md device as a root - this trick allows you to avoid using
GRUB to reinstall stage1 on a new HDD.

-- 
Ñ óâàæåíèåì,
 Alexey                          mailto:aloukianov at lavtech.ru