[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#80325: Installer misreports partition numbers



> debbi:/usr/src/boot-floppies/utilities/libfdisk# ./testing
> /dev/hda: /dev/hda1, /dev/hda2, /dev/hda5, /dev/hda6, /dev/hda7, /dev/hda8, /dev/hda3, /dev/hda4, >/dev/hda9, /dev/hda10, /dev/hda11, /dev/hda12, /dev/hda13, /dev/hda14, /dev/hda15,
> /dev/hda1 (DOS 16-bit FAT >=32M), /dev/hda2 (BSD/386), /dev/hda5 (4.2BSD), /dev/hda6 (BSD swap), >/dev/hda7 (4.2BSD), /dev/hda8 (4.2BSD), /dev/hda3 (Unknown), /dev/hda4 (DOS Extended), /dev/hda9 (Linux
>native), /dev/hda10 (Unknown), /dev/hda11 (Linux native), /dev/hda12 (Linux native), /dev/hda13 (Linux
> native), /dev/hda14 (Linux native), /dev/hda15 (Linux swap),
> Mounted partitions:
> Swap partitions in use:/dev/hda11,
> ext2 fs partitions: /dev/hda9, /dev/hda11, /dev/hda12, /dev/hda13, /dev/hda14,
> swap fs partitions: /dev/hda15,
> msdos fs partitions: /dev/hda1,
> minix fs partitions:
> affs fs partitions:
> hfs fs partitions:
> nfs fs partitions:
> (null) fs partitions: /dev/hda4,
> (null) fs partitions: /dev/hda2, /dev/hda5, /dev/hda6, /dev/hda7, /dev/hda8, /dev/hda3, /dev/hda10,


Clearly this is saying that libfdisk sees your BSD slices <hda5 to
hda8>, and lists them prior to your extended partitions.
<primary partitions><bsd slices><extended partitions>



> debbi:/usr/src/boot-floppies/utilities/libfdisk#
> 
> > >    Device Boot    Start       End    Blocks   Id  System
> > > /dev/hda1   *         1       258   1950448+   6  FAT16
> > > /dev/hda2           259       775   3908520   a5  BSD/386
> > > /dev/hda3           776       820    340200   4f  QNX4.x 3rd part
> > > /dev/hda4           821      3970  23814000    5  Extended
> > > /dev/hda5           821      1078   1950448+  83  Linux
> > > /dev/hda6   *      1079      1336   1950448+  eb  BeOS fs
> > > /dev/hda7          1337      1594   1950448+  83  Linux
> > > /dev/hda8          1595      2111   3908488+  83  Linux
> > > /dev/hda9          2112      3117   7605328+  83  Linux
> > > /dev/hda10         3118      3892   5858968+  83  Linux
> > > /dev/hda11         3893      3970    589648+  82  Linux swap
> 

fdisk (thats what this is from correct?) doesnt list your 4 BSD slices
(4.2BSD), (BSD swap), (4.2BSD), (4.2BSD) only the partition which holds
them, i.e. hda2, so because fdisk doesnt detect BSD partitions, its hard
to expect it to order the partitions in the same way as libfdisk.

What i really need you to do is compile a kernel with BSD partition
support, and do "cat /proc/partitions" and then compare the kernels list
of partitions with libfdisks idea of partitions.

If they both list all 15 partitions and in a different order then
libfdisk should be corrected to behave the same way as the kernel.


Glenn



Reply to: