tool to resize partitions on cylinder boundaries?



I have a couple of 40 GB drives in a machine whose BIOS only supports hard disk drives up to 32 GiB. The motherboard (BIOStar M6TLC) manufacturer has confirmed that it is not possible to work around this limitation via a BIOS upgrade. Since installing Debian unstable in a dual boot arrangement with W98SE I have used the space between 32 GiB and 40 GB on each drive for a mirrored array.

However, cfdisk, fdisk and Partition Magic report problems with the first disk:

GNU parted reports:

# parted
GNU Parted 1.7.1
Using /dev/hda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit chs
(parted) p

Disk /dev/hda: 9693,15,62
Sector size (logical/physical): 512B/512B
BIOS cylinder,head,sector geometry: 9693,128,63. Each cylinder is 4129kB.
Partition Table: msdos

Number Start End Type File system Flags
1 0,1,0 3556,6,62 primary fat32 boot, lba
2 3556,7,0 8162,127,62 extended lba
5 3557,0,0 6054,127,62 logical ext3
6 6055,1,0 6296,127,62 logical linux-swap
7 6297,1,0 8156,127,62 logical fat32
3 8192,0,0 9692,127,62 primary ext3

(parted)

# fdisk /dev/hda

The number of cylinders for this disk is set to 4865.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1785 14337981 c W95 FAT32 (LBA)
/dev/hda2 1786 4098 18575203+ f W95 Ext'd (LBA)
Partition 2 does not end on cylinder boundary.
/dev/hda3 4113 4866 6052032 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/hda5 1786 3040 10071936 83 Linux
/dev/hda6 3040 3161 975712+ 82 Linux swap / Solaris
/dev/hda7 3161 4095 7499488+ b W95 FAT32

Command (m for help):

cfdisk /dev/hda

FATAL ERROR: Bad primary partition 2: Partition ends in the final partial cylind
Press any key to exit cfdisk

The irony is that I had actually resized the partitions on /dev/hda using GNU Parted but can't see how to adjust the partition sizes to satisfy fdisk/cfdisk/Partition Magic, even after doing a resize using CHS units to what is shown above. (The disk has free space either side of the /dev/hda2 partition).

I filed a Debian bug report (#402520) against parted about this problem, but wonder if anyone has a solution beyond backing up, wiping the disk and repartitioning?

I believe that Debian *should* provide a tool and documentation to easily resize partitions to satisfy the cylinder boundary requirements of fdisk/cfdisk, and proprietary programs such as Partition Magic.

Regards,

Arthur.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Problem "Un-cloning" HD
    ... I don't think my BIOS is helping. ... What does the new HD look like in the old HD's Disk Management ... Copy the whole disk (which only shows 1 partition) Again, ... Local Disk 37.25 GB NTFS This is the disk which I originally ...
    (microsoft.public.windowsxp.general)
  • Re: Win2000 "C" Drive only 2.0 GB - How do I increase it?
    ... First you have to make sure that your BIOS is 48-bit LBA compatible. ... 48-Bit LBA BIOS you should have been able to create a 137GB partition. ... Go in the BIOS and verify that the disk and its size is properly ...
    (microsoft.public.win2000.setup)
  • Re: grub error 18
    ... because I thought the EXTEND partition would be the second partition in ... Selected cylinder exceeds maximum supported by BIOS." ... the disk using CHS addressing (that is: telling the BIOS a head number, ... sectors per track gave 32k bytes per track, ...
    (uk.comp.homebuilt)
  • Re: Win2000 "C" Drive only 2.0 GB - How do I increase it?
    ... BTW Using a second partition for backups isnt wise, ... I looked at my BIOS, but could not find the bits. ... I should be able to go into Disk Management ... Should your Windows 2000 installation ever need to be ...
    (microsoft.public.win2000.setup)
  • Re: Win2000 "C" Drive only 2.0 GB - How do I increase it?
    ... I would plan to use that partition for data, photo backup, data ... First you have to make sure that your BIOS is 48-bit LBA compatible. ... Go in the BIOS and verify that the disk and its size is properly ...
    (microsoft.public.win2000.setup)