Matus UHLAR - fantomas wrote, On 12/12/06 20:01:
On 12.12.06 18:03, Arthur Marsh wrote:
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:
Look carefully what do they tell you. You may also look at your kernel
report (dmesg|grep hda) of what it says.
The problem is that geometry the partition table was built with can differ
from the geometry hard disk reports.
fdisk usually works with the geometry the partition was build with, unless
it was rebuild, in such case it's afaik taken from kernel (what hdd
reports). in fdisk's expert mode, you may change the geometry manually.
However fdisk is able to display/entry in cylinders or sectors. In the
latter case, you may enter whatever size partitions you like, but fdisk will
in such case re-compute geometry itself :(
OK, testdisk reports:
TestDisk 6.5, Data Recovery Utility, October 2006
Christophe GRENIER <[EMAIL PROTECTED]>
http://www.cgsecurity.org
Disk /dev/hda - 40 GB / 37 GiB - CHS 4865 255 63
Current partition structure:
Partition Start End Size in sectors
Warning: Incorrect number of heads/cylinder 128 (FAT) != 255 (HD)
1 * FAT32 LBA 0 1 1 1784 254 63 28675962 [W-98 SE]
2 E extended LBA 1785 0 1 4097 128 63 37150407
3 P Linux 4112 16 1 4865 128 63 12104064
5 L Linux 1785 121 1 3039 94 63 20143872
X extended 3039 95 1 3160 215 63 1951488
6 L Linux Swap 3039 96 1 3160 215 63 1951425
X extended 3160 216 1 4094 125 63 14999040
7 L FAT32 3160 217 1 4094 125 63 14998977 [NO NAME]
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
[Proceed ] [ Backup ]
Try to locate partition
and dmesg reports:
# dmesg|grep hda
Kernel command line: root=/dev/hda5 ro noisapnp single
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
hda: ST340014A, ATA DISK drive
hda: max request size: 512KiB
hda: Host Protected Area detected.
hda: Host Protected Area disabled.
hda: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(33)
hda: cache flushes supported
hda: hda1 hda2 < hda5 hda6 hda7 > hda3
md: bind<hda3>
Adding 975704k swap on /dev/hda6. Priority:1 extents:1 across:975704k
EXT3 FS on hda5, internal journal
# parted
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
# fdisk /dev/hda
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
cfdisk /dev/hda
FATAL ERROR: Bad primary partition 2: Partition ends in the final
partial cylind
Press any key to exit cfdisk
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]