Michael Devore wrote:
At 07:47 AM 2/24/2006 -0500, Mark Bailey wrote:

If you don't have a low-level disk editor of some type, you can either use Bart's utilities' MKBT to read a boot disk image from the flash disk and examine it for a valid partition information etc., or you can use DEBUG's 'L' command to load the first sector in memory and look at things there.

So, if I have an MBR with partition information at 1BE-1FE then it is
not formatted as a floppy emulation?  I now have three or four different
ways, under Linux and WindowsXP, to examine boot sectors and MBR's!  :-)

fdisk /mbr will build a partition table.  There are ways to do it in
Linux as well.



No, they have a MBR, but they don't have partitions at offset 1BE-1FE of the first sector. Rather, the bytes are used by the boot loader code as part of launching KERNEL.SYS. They are garbage when interpreted as partition values -- except, as I said, for the one time I got hard drive status going on the stick.

So, if I understand this correctly, the first 512 bytes of the stick
(what Linux would call /dev/sda and Windows utilities call the MBR)
is actually the boot sector? Which is what, on a hard drive or
a partitioned memory stick, would be /dev/sda1 under Linux or
something like I: under Windows.

Thanks for the assistance in understanding this junk!

Mark



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to