On Wed, Jun 19, 2002 at 01:32:33PM +0200, Andries Brouwer wrote:
> > 22 0 1515870810 hdc
> > 22 64 1515870810 hdd
> > 3 0 29316672 hda
> > 3 1 117400 hda1
> > 3 2 1 hda2
> > 3 5 999904 hda5
> > 3 6 1499872 hda6
> > 3 7 683392 hda7
> > 3 8 26015944 hda8
> > 3 64 1515870810 hdb
> I changed something here a few weeks ago. The idea was to avoid
> listing partitions of size 0 but do list full devices, regardless
> of size. Especially in case of removable media that is useful.
> For example, a
> blockdev --rereadpt /dev/sda
> might show that there is something there now.
Seems it doesn't handle the case of 'no media in drive' too well.
hdc - cdrom, hdd - zip drive, hdb - no device there.
hda2 is odd looking too showing a #blocks of '1', when
it's actually..
Device Boot Start End Blocks Id System
/dev/hda2 234 58168 29199240 5 Extended
Oddly, on another machine, it detects an LS-120 drive with
no media correctly..
22 64 0 hdd
(but still gets the 'no device' case wrong on that box).
Dave.
-- | Dave Jones. http://www.codemonkey.org.uk | SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Jun 23 2002 - 22:00:19 EST