Wacky Partition Layout

This is a discussion on Wacky Partition Layout within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Today I made a program that examines the boot sector of a hard drive. My sources were mainly wiki, but ...

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,591

    Wacky Partition Layout

    Today I made a program that examines the boot sector of a hard drive. My sources were mainly wiki, but some other places for name list etc.
    Below is a snapshot of my latest build, contrary to what it looks like. My PhysicalDrive0 has in reality 5 partitions. Plus, this HD got formated and partitioned by OME XP installation disk, so I would assume that it put on a GUID Partition Table. But, I couldn't find one, even when I examined the raw hex of the first 34 LBAs of my HD.
    If you look closely you'll notice that the given CHS points are really messed up, but that's most likely my fault.
    So my question is, what in the world is going on?
    Attached Images Attached Images  
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Since the original boot sector partition table can only hold 4 entries, if you have 5, then some of those must be "logical" rather than "physical" partitions. I'm not quite sure how you go about finding a logical partition, but google should be able to help first.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Disk Partition Stuff
    By CodeMonkey in forum Tech Board
    Replies: 15
    Last Post: 12-19-2008, 10:53 AM
  2. Partition Problem
    By anirban in forum Tech Board
    Replies: 1
    Last Post: 09-30-2007, 03:32 AM
  3. Reading a (possibly EXT2) partition with Windows
    By nickname_changed in forum Linux Programming
    Replies: 5
    Last Post: 08-20-2003, 07:43 PM
  4. Linux/Windows partition
    By Fyodorox in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 04-24-2002, 08:16 AM
  5. hardware interaction in c
    By vineetwadwekar in forum C Programming
    Replies: 6
    Last Post: 03-29-2002, 08:01 AM

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