[LFS] fdisk /mbr

Doumbeck1 at aol.com Doumbeck1 at aol.com
Thu Nov 22 07:55:15 PST 2001


Well it really depends on what you want to accomplish because DOS> fdisk /mbr 
does a few things. It clears teh master boot record and then re-writes a new 
boot record with whatever is the current basic info. Windows then writes some 
other stuff when it loads the next time (it actually writes this stuff 
everytime it loads)

So to sort of duplicate what you want to accomplish, you could do the 
following:

/sbin/lilo -U && /sbin/lilo -z -M && /sbin/lilo -M && /sbin/lilo

The first unintstalls lilo from the mbr, the second will erase the device 
serial number, the third will establish a new device serial number, and the 
last will re-write lilo to the mbr.

WARNING: unless you have a "WORKING" lilo boot disk, don't do this...if you 
or it mess up, you won't be able to boot your computer, and you'll be forced 
to fix it with something like tomsrtbt.

Scot Mc Pherson
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe alfs-discuss' in the subject header of the message



More information about the alfs-discuss mailing list