Partition table Information - Setup

This is a discussion on Partition table Information - Setup ; hi I am working with linux kernel 2.6.12, i want to read partition table information for 250 G.B. harddisk. I am using 48-bit LBA addressing and i am able to read primary partition information but not able to read extended(information ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Partition table Information

  1. Partition table Information

    hi

    I am working with linux kernel 2.6.12, i want to read partition table
    information for 250 G.B.
    harddisk.

    I am using 48-bit LBA addressing and i am able to read primary
    partition information but not able to read extended(information for
    logical partition) partition information, i found starting sector no
    of extended partition, when i read from that starting sector i found
    all zeros 16 bytes information,please tell me how do i read,thanks.

    with regards
    neeraj

  2. Re: Partition table Information

    neeraj nama wrote:
    > hi
    >
    > I am working with linux kernel 2.6.12, i want to read partition table
    > information for 250 G.B.
    > harddisk.


    I do not know what the problem is. I use /sbin/fdisk and get stuff like this
    (for a smaller disk):

    ]# /sbin/fdisk /dev/sda

    The number of cylinders for this disk is set to 8942.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
    (e.g., DOS FDISK, OS/2 FDISK)

    Command (m for help): p

    Disk /dev/sda: 73.5 GB, 73557090304 bytes
    255 heads, 63 sectors/track, 8942 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 2102 16779892+ 83 Linux
    /dev/sda3 2103 2624 4192965 83 Linux
    /dev/sda4 2625 8942 50749335 5 Extended
    /dev/sda5 2625 4191 12586896 83 Linux
    /dev/sda6 4192 5235 8385898+ 83 Linux
    /dev/sda7 5236 5757 4192933+ 83 Linux
    /dev/sda8 5758 6279 4192933+ 83 Linux
    /dev/sda9 6280 6534 2048256 82 Linux swap / Solaris
    >
    > I am using 48-bit LBA addressing and i am able to read primary
    > partition information but not able to read extended(information for
    > logical partition) partition information, i found starting sector no
    > of extended partition, when i read from that starting sector i found
    > all zeros 16 bytes information,please tell me how do i read,thanks.
    >
    > with regards
    > neeraj


    If fdisk does not do what you want, you may wish to examine:

    http://www.win.tue.nl/~aeb/partition...n_types-2.html

    --
    .~. Jean-David Beyer Registered Linux User 85642.
    /V\ PGP-Key: 9A2FC99A Registered Machine 241939.
    /( )\ Shrewsbury, New Jersey http://counter.li.org
    ^^-^^ 09:40:01 up 2 days, 15:44, 3 users, load average: 4.09, 4.14, 4.10

+ Reply to Thread