floppy disk boot sector

This is a discussion on floppy disk boot sector within the C Programming forums, part of the General Programming Boards category; does the arrangements of the boot sector contents differ in different OS or in different machines. i wrote a structure ...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    3

    Question floppy disk boot sector

    does the arrangements of the boot sector contents differ in different OS or in different machines.
    i wrote a structure to find the contents of boot sector in my machine having XP and i find that the structure gives me different result in another machine having win 98(first edition)

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    No it doesn't. However, the way you would go about accessing the boot sector would differ depending on OS. You are probably getting different results because you are using a technique that is invalid on Win98 but is valid on WinXP (such as CreateFile()).

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    3

    Post but..

    thanks for replying. but what i meant was different.
    what i meant when i said it was diffrent was that i got the serial number stored in the 39th byte onwards, occupying a space of four bytes(but in the reverse direction). that is 39th byte had the first byte of serial number and the 236th byte starting from the first in the boot sector had the last byte of serail number.
    i checked this out by reading the entire the boot sector in an array and inspected it, byte by byte.(this was done in win98 second edition).
    the same array when inspected in another machine containing windows 98 first edition gave a an altogether different result.
    further, win xp doesn't store at all the volume label in the boot sector. it always gives a "no name" as default. why??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. reading floppy disk sector
    By fatrix in forum C++ Programming
    Replies: 4
    Last Post: 12-03-2004, 11:20 PM
  2. freebsd and redhat dual boot.
    By xddxogm3 in forum Linux Programming
    Replies: 1
    Last Post: 05-09-2004, 07:06 PM
  3. Writing a boot sector. I must be mad...
    By SMurf in forum Tech Board
    Replies: 8
    Last Post: 03-19-2003, 02:07 PM
  4. help on boot sector plzzzzz
    By neversell in forum C Programming
    Replies: 3
    Last Post: 07-05-2002, 12:04 AM
  5. Floppy boot sector disassembly
    By RobR in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 03-05-2002, 04:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21