Re: fdisk and MBR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 08, 2010 at 08:20:41PM +0200, Bernard Pidoux wrote:
> Formerly (that is before Linux was born...) DOS fdisk was usefull for  
> reparing damaged MBR.
> I am wondering why there is no MBR option in Linux fdisk ?
> I agree that MBR is rarely distroyed nowadays.
> However I can rember of one case when a Linux disk would not boot any more.
> Steps to recover from this situation are not obvious for me.

 backup:   dd if=/dev/sda of=mbr.img bs=512 count=1
 restore:  dd if=mbr.img of=/dev/sda bs=512 count=1  (or cat mbr.img > /dev/sda)

 if you don't have a backup image than you can try to use 
 http://www.cgsecurity.org/wiki/TestDisk

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux