[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] MBR



Sumit Rangwala wrote:
> 
>  We know that if our MBR get corrupt we can rescue
> it using
>      fdisk /mbr in dos
> What is the counter part of this in unix or Linux.


Re-install LILO!!  It is that simple. (type 'lilo' as root to reinstall)


> And how this command rebuild the mbr info? Is there a copy of mbr elsewhere > on the disk?


Lilo writes a fresh copy of code to MBR. DOS fdisk /mbr does the same
job.

Yes, lilo keeps a backup copy (/boot/boot.NNNN). But lilo does not use
that while (re)installing the boot loader in MBR. It simple writes a new
one. 

DOS fdisk cannot save you if you lose the partition table entries.
Whereas Linux fdisk at least gives you a chance to try and recreate the
partition entries to its previous values. If you succeed, you can rescue
your entire lost partition.

Conclusion: On all counts LILO is a better alternative to DOS fdisk
/mbr.

- -- 
Manoj Victor Mathew

- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

------------------------------