From: Andrew J. Cosgriff ! (andrewc@aurora.cc.monash.edu.au)
Date: 12/27/92


From: andrewc@aurora.cc.monash.edu.au (Andrew J. Cosgriff !)
Subject: [BUG] with fdisk -l
Date: 27 Dec 1992 09:08:46 GMT


I just noticed a bug in fdisk (comes from one of HJ's disks i think - it's linked with jump
tables 4.1) - when I did fdisk -l, I got the following (courtesy of those wonderful selection
patches) :

Disk /dev/hda: 15 heads, 17 sectors, 1001 cylinders
Units = cylinders of 255 * 512 bytes

   Device Boot Begin Start End Blocks Id System
/dev/hda1 * 1 1 161 20519 4 DOS 16-bit <32M
/dev/hda2 162 162 362 25627+ 81 Linux/MINIX
/dev/hda3 363 363 491 16447+ 5 Extended
/dev/hda4 492 492 1001 65025 81 Linux/MINIX
/dev/hda5 363 363 427 8287 81 Linux/MINIX
/dev/hda6 428 428 491 8159+ 82 Linux swap
Ignoring extra extended partition 2

Disk /dev/hdb: 16 heads, 17 sectors, 755 cylinders
Units = cylinders of 272 * 512 bytes

   Device Boot Begin Start End Blocks Id System
/dev/hdb1 1 1 490 66631+ 6 DOS 16-bit >=32M
/dev/hdb2 491 491 754 35904 5 Extended
/dev/hdb5 363 340 401 8287 81 Linux/MINIX
/dev/hdb6 428 401 461 8159+ 82 Linux swap

-- Note that /dev/hdb5 and /dev/hdb6 are the same as the ones from /dev/hda5 and /dev/hda6
 - that's because they ARE the ones from /dev/hda5 and /dev/hda6
 - my REAL /dev/hdb partition table looks like this (from fdisk /dev/hdb then a 'p') :

Disk /dev/hdb: 16 heads, 17 sectors, 755 cylinders
Units = cylinders of 272 * 512 bytes

   Device Boot Begin Start End Blocks Id System
/dev/hdb1 1 1 490 66631+ 6 DOS 16-bit >=32M
/dev/hdb2 491 491 754 35904 5 Extended
/dev/hdb5 491 491 754 35895+ 6 DOS 16-bit >=32M

-- That's more like it !

Nothing serious, but I just thought someone might like to know...

Enjoy !

Cos !

 

-- 
===============================================================================
 * Andrew J. Cosgriff ! *                   #include <std_witty_quote.h>
#define HERE cc.monash.edu.au               #include <std_disclaimer.h>
Hassle me at :      andrewc@aurora.HERE ; andrewc@lindblat.HERE ; cos@yoyo.HERE