Mailing List Archive

Support open source code!


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

Re: tlug: LILO Vs. 1024??



On Wed, 7 Oct 1998, Jonathan Byrne - 3Web wrote:

> On Wed, 7 Oct 1998, Scott Stone wrote:
> 
> >> > LBA mode is enabled and fdisk now reports the 6.4 GB disk as being 787
> >> > cyclinders times the unlikely head count of 0
> >>                                 ^^^^^^^^^^^^^^^
> 
> >It could be rolling over the maximum limit of what fdisk thinks the
> >maximum number of heads should be...?
> 
> I just telnetted in and ran FDISK and it told me that the head count is unset
> and I need to set it from the extra functions menu.  So we know why it says 0
> heads, but what value should I go with here?  255, like your 8.4 GB reports,
> or something else?
> 
> This is the fdisk output:
> 
> You must set heads.
> You can do this from the extra functions menu.
> 
> Command (m for help): p
> 
> Disk /dev/hda: 0 heads, 63 sectors, 787 cylinders
> Units = cylinders of 1 * 512 bytes
> 
>    Device Boot   Begin    Start      End   Blocks   Id  System
> /dev/hda1           64       64   132048    65992+  82  Linux swap
> /dev/hda2            1   132049 12692736  6280344   83  Linux native
> 
> Is it weird for the swap partition to be starting at cyclinder 64?

Maybe.  Anyway, the format for finding out what heads should be:

heads * sectors * cylinders * 512 == total number of bytes on the disk.

Divide the number of bytes by 1024 and you should get the sum of the
values in the Blocks column.  Anyway, use your algebra to figure out
heads:

heads = bytes / (sectors * cylinders * 512)
heads = 1kBlocks / [(sectors * cylinders * 512) / 1024]
heads = 6346336 / [(63 * 787 * 512) / 1024]
heads = 6346336 / 24790.5
heads = ~256 heads (255.99871)

See, 255 is the maximum for 'heads', and this is exceeding it.  I'm not
sure what to do at this point?  Maybe go into your CMOS and see what the
BIOS thinks that the LBA mapping should be (Award bioses at least will
tell you this).

--------------------------------------------------
Scott M. Stone <sstone@example.com, sstone@example.com>
               <sstone@example.com>
Head of TurboLinux Development/Systems Administrator
Pacific HiTech, Inc (USA) / Pacific HiTech, KK (Japan)
http://www.pht.com		http://armadillo.pht.co.jp
http://www.pht.co.jp	        http://www.turbolinux.com


---------------------------------------------------------------
Next Meeting: 10 October, 12:30 Tokyo Station Yaesu central gate
Featuring the IMASY Eng. Team on "IPv6 - The Next Generation IP"
Next Nomikai: 20 November, 19:30  Tengu TokyoEkiMae 03-3275-3691
---------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links