Re: partition table information
- From: Stefan Patric <tootek2@xxxxxxxxx>
- Date: Sat, 15 Mar 2008 02:50:18 GMT
On Thu, 13 Mar 2008 00:24:20 -0700, 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 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.
Do you mean /sbin/fdisk -l /dev/hdx (or sdx, if a SATA), where x is the
appropriate drive? This will list the partition table. You'll probably
have to be root to get it to work. Depends on how your system is set up.
Here's what it outputs on my little system:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1220 9799618+ 83 Linux
/dev/sda2 1221 6100 39198600 83 Linux
/dev/sda3 6101 6163 506047+ 82 Linux swap/Solaris
/dev/sda4 6164 19457 106784055 85 Linux extended
/dev/sda5 6164 19457 106784023+ 83 Linux
Type man fdisk in a terminal for details on using fdisk.
Stef
.
- References:
- partition table information
- From: neeraj nama
- partition table information
- Prev by Date: Re: freecom external drive stops spinning
- Next by Date: Re: Sony Cyber-shot DSC-W55
- Previous by thread: Re: partition table information
- Next by thread: DVD-RAM?!?!?!?
- Index(es):
Relevant Pages
|