On Sat, Nov 21, 1998 at 01:06:45PM +0100, Rx wrote:
> ok, this time i've more information :
> 
> my debian linux doesn't recognize well my HD ibm 8.4 GB 
> 
> here are some messages from dmesg, cfdisk and fdisk
> note : under cfdisk, my hd seems to have 189 GB 
> 
> I include the bios autodetection :
> size cyl head precomp landz sector mode
> 8447 1027 255 0      16382   63     LBA
> 8455 16383 16 65535  16382   63     normal
> 8452 2047 128 65535  16382   63     large
> 
> which one do i need to choose ?

That doesn't really matter if you don't intend to use fat16. On one
hand, the second choice will give you a slighty bigger size on the 
other hand fat16 can only acceed to the first 1024 cylinders and you 
can be concerned by the fact that lilo need to find the kernel image
in the first 1024 cylinders too.

> i tried all of them, no one seems to work.
> (every time linux recognize 189 GB and dos see the right size (8.4GB))
[...] 
> ide: i82371 PIIX (Triton) on PCI bus 0 function 33
>     ide0: BM-DMA at 0xc800-0xc807
>     ide1: BM-DMA at 0xc808-0xc80f
> hdb: IBM-DTTA-350840, 8063MB w/467kB Cache, CHS=20510/81/228, UDMA

Some remarks :
 1) The disk is well detected with the good size (8063MB) but the CHS are 
    wrong
 2) Why is there no hda ? Could you verify if you have jumpered your drive
    correctly (it should be master or single but not slave) perhaps that will
    suffice to resolve your problem
 3) UDMA drive : I don't know how well linux supports UDMA controllers but I
    think that UDMA drives on EIDE controller are o.k.

[...]
> $ fdisk /dev/hdb
> The number of cylinders for this disk is set to 1027
> 
> Disk /dev/hdb: 255 heads, 63 sectors, 1027 cylinders
> Units = cylinders of 16065 * 512 bytes
> 

These values seems reasonnable with LBA option in your BIOS

>    Device Boot   Begin    Start      End   Blocks   Id  System
> /dev/hdb1          256        1       65   516064+   6  DOS 16-bit >=32M
> Partition 1 does not end on cylinder boundary:
>      phys=(55, 72, 36) should be (55, 254, 63)
> /dev/hdb2           57       57     1027  7799557+   f  Unknown
>
Strange again, your partitions are overlapping : how did you created them ?
 
>                                     cfdisk 0.8j
> 
>                                Disk Drive: /dev/hdb
>                Heads: 81   Sectors per Track: 228   Cylinders: 20510
> 
Wrong CHS, don't bother to insist with cfdisk

>  fdisk  /dev/hdb
> The number of cylinders for this disk is set to 20510.
> 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)
> 
Wrong CHS: no hopes again unless you use expert mode but I think that you
should stay away from it.

> i try many operations on this HD, that's why there is many tries 
> with fdisk ...
>
Describing WHAT you did could have been helpful to understand what happened. 
Anyway if jumpering the drive as master (or single) don't solve the problem 
you can indicate the right parameters during the boot or in lilo.conf. In 
your case you'll have to type hdb=16383,16,63 (well, give the same numbers 
than what your BIOS says)

-- 
Laurent PICOULEAU
   [EMAIL PROTECTED]

Reply via email to