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

Bug#1860: fdisk bugs



Observe the session transcripts below.

The first bug is the coredump.

The second bug is where it won't let me recreate hda3 after having
deleted it, claiming that I'm only allowed to go up to cylinder 2047
for some reason.  If I delete hda4 too it will let me do it, and then
I can recreate hda4 so that it looks the same as it was.

When I did this for real I gave up on fdisk at that point, not
trusting it to have done hda3 and hda4 correctly (hda4 has a
filesystem that I don't want to disturb).  cfdisk was perfectly happy
to delete hda3 and recreate it.

More information on request.

Ian.

-chiark:~> fdisk /dev/hda
You will not be able to write the partition table.
The number of cylinders for this disk is set to 2477.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software form other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 16 heads, 63 sectors, 2477 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot  Begin   Start     End  Blocks   Id  System
/dev/hda1           1       1    1679  846184+  83  Linux native
/dev/hda2        1024    1680    1718   19656   82  Linux swap
/dev/hda3        1024    1719    2227  256536    5  Extended
/dev/hda4        2048    2228    2477  126000   83  Linux native
/dev/hda5        1024    1719    2227  256504+  83  Linux native

Command (m for help): x

Expert command (m for help): p

Disk /dev/hda: 16 heads, 63 sectors, 2477 cylinders

Nr AF  Hd Sec  Cyl  Hd Sec  Cyl   Start    Size ID
 1 00   1   1    0  15  63 1023      63 1692369 83
 2 00  15  63 1023  15  63 1023 1692432   39312 82
 3 00  15  63 1023  15  63 1023 1731744  513072 05
 4 00  15  63 1023  15  63 1023 2244816  252000 83
 5 00  15  63 1023  15  63 1023      63  513009 83

Expert command (m for help): r

Command (m for help): d
Partition number (1-5): 5
Segmentation fault (core dumped)
-chiark:~> fdisk /dev/hda
You will not be able to write the partition table.
The number of cylinders for this disk is set to 2477.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software form other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): d
Partition number (1-5): 3

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (1719-2477): 1719
Last cylinder or +size or +sizeM or +sizeK ([1719]-2047): 2227
Value out of range.
Last cylinder or +size or +sizeM or +sizeK ([1719]-2047): 2047

Command (m for help): d
Partition number (1-4): 3

Command (m for help): d
Partition number (1-4): 4

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (1719-2477): 1719
Last cylinder or +size or +sizeM or +sizeK ([1719]-2477): 2227

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 4
First cylinder (2228-2477): 2228
Last cylinder or +size or +sizeM or +sizeK ([2228]-2477): 2477

Command (m for help): p

Disk /dev/hda: 16 heads, 63 sectors, 2477 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot  Begin   Start     End  Blocks   Id  System
/dev/hda1           1       1    1679  846184+  83  Linux native
/dev/hda2        1024    1680    1718   19656   82  Linux swap
/dev/hda3        1024    1719    2227  256536   83  Linux native
/dev/hda4        2048    2228    2477  126000   83  Linux native

Command (m for help): q
-chiark:~> dd if=/dev/hda bs=512 count=1 | uuencode hda.bootsector
begin 664 hda.bootsector
1+0 records in
1+0 records out
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````````````````````````````````0$`
M@P___S\```#1TAD```___X(/__\0TQD`D)D````/__\%#___H&P:`##4!P``
1#___@P___]!`(@!@V`,`5:H/
`
end
-chiark:~> dd if=/dev/hda3 bs=512 count=1 | uuencode hda3.bootsector
begin 664 hda3.bootsector
1+0 records in
1+0 records out
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````#___
M@P___S\```#QTP<`````````````````````````````````````````````
1````````````````````5:H`
`
end
-chiark:~>


Reply to: