Mailing List Archive

Support open source code!


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

Re: Another thing... Boot Sector



> Is it possible to extract a linux partition's boot sector?  My linux
> resides on /dev/hdb2, but whenever I try to extract the boot
> sector (to allow NT Loader to boot the partition), I seem to get
> no output.
> dd if=/dev/hdb2 bs=512 count=1 of=bootsect.lin

That command should report 1+0 records in and 1+0 records out, and it should
copy the boot sector to your file bootsect.lin.

The fact that your linux system resides on /dev/hdb2 isn't quite relevant
here.  The question is where you told lilo to install the lilo boot sector.
Obviously you (correctly for your purposes) remembered not to let it install
lilo in the MBR of /dev/hda.  We still don't have evidence of whether you
correctly told it /dev/hdb2, and whether the lilo command obeyed your
request.  If it didn't get there, then the dd command should still operate
and produce the same visible output, but the resulting bootsect.lin file
won't contain what you need.

Of course, next you need to copy bootsect.lin to /c (or wherever you mount
your Windows-style C: drive, i.e. the NT system partition).

(By the way, in case the above wording looks strange, it is.  Microsoft uses
the words "system partition" for the partition that gets booted and
Microsoft uses the words "boot partition" for the partition where the NT
system files are installed.)

Hmm.  Since you already ran the dd command, you had Linux running, but you
didn't get there from the NT booter.  So you booted from a Linux rescue
floppy?

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links