lkml.org 
[lkml]   [1997]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: *Help!* Where is device partition info stored by the kernel?
Dave Cinege:

: I was hoping someone would say "Look here in proc" or "This new version of
: fdisk will print that info"

Well, since nobody else is saying that:

for i in /dev/hda*; do echo -n "$i: "; sfdisk -s $i; done

says on this machine here:

/dev/hda: 6353235
/dev/hda1: 471051
/dev/hda2: 1417
/dev/hda3: 10867
/dev/hda4: 1 <- this is the extended partition
/dev/hda5: 1024348
/dev/hda6: 1024348
/dev/hda7: 1024348
/dev/hda8: 20286
/dev/hda9: 2776378

On the other hand, this information is not at all enough
to reconstruct the partition table with certainty.

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.326 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site