Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Hard disk geometry< Next Oldest | Next Newest >
gjhicks Offline





Group: Members
Posts: 108
Joined: April 2004
Posted: Dec. 18 2005,01:15 QUOTE

Hi,

Am having a problem with DSL recognising the geometry of a hard disk.

The hard disk is a Fujitsu MPB3064AT, which has a capacity of 6.4GB and a C/H/S geometry of 13410/15/63.

But, DSL "sees" the hard disk as a geometry of 788/255/63, with a capacity of only 2.1GB.  Probably not by coincidence, this is the capacity of the smallest drive of the MPB series.

The drive has been successfully, fdisked and formatted under DOS and boots and works just fine in DOS and Win98.

I have tried the boot cheat code of "hda=13410,15,63", which is mentioned elsewhere (http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Large-Disk-HOWTO.html and on knopppix.net) but it seems to make no difference.

Am happy to "low level" format the disk if necessary, just don't know what/how to do such.

Any suggestions gratefully received,

Geoff.
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Dec. 19 2005,06:16 QUOTE

The 788/255/63 geometry is due to a function called "Logical Block Addressing" or LBA.  It is normal.

In fact, it equates to 6.4GB

788*255*63*512bytes=6481520640 or 6.4GB

My guess is that 2.1GB is the maximum size of a FAT data partition (used by MSDOS) and is the FORMATTED size of your existing data partition also known as your C:\ drive. The rest of the space is either other partitions (D:\ , E:\ , etc) or unused free space.

You can verify this by booting DSL, opening a terminal window and type:

sudo su
cfdisk /dev/hda

where hda is the device name for your hard drive.

hda= IDE Primary MASTER drive
hdb= IDE Primary SLAVE drive
hdc= IDE Secondary MASTER drive
hdd= IDE Secondary SLAVE drive
Back to top
Profile PM 
gjhicks Offline





Group: Members
Posts: 108
Joined: April 2004
Posted: Dec. 19 2005,09:36 QUOTE

Hi,

Thanks for your reply.  I wish it was so.

The default bios identification of the drive is the "2.1GB" solution, that is "seen" by linux (DSL, Feather and Knoppix).

I got the PC to recognise the actual 6.4GB by entering the disk geometry parameters manually (ie: "user defined").

As mentioned above, it boots just fine into both DOS and Win98SE.

DOS fdisk gives the following partition info:
PRI DOS  5185mb FAT32
EXT DOS  996mb  FAT32

After booting DSL, I ran cfdisk as root, got the following error message:

FATAL ERROR: Bad Primary Partition 0: Partition end after end-of-disk.

The relevant bits of DMESG are:

   ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
   ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
hda: FUJITSU MPB3064ATU, ATA DISK drive
hdb: CD-532E-B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: attached ide-disk driver.
hda: 4124736 sectors (2112 MB), CHS=788/255/63
Partition check:
hda: hda1 hda2 < >
hdb: attached ide-scsi driver.

I guess the 5185Mb /dev/hda1 partition just "did not compute" for DSL, which "thinks" that the HDA is only 2112mb in total.

Any suggestions for getting DSL to recognise the two FAT32 partitions on my hard drive?

Regards,

Geoff.
Back to top
Profile PM 
skaos Offline





Group: Members
Posts: 430
Joined: April 2004
Posted: Dec. 19 2005,15:56 QUOTE

Old PCs up to around 1995-97 (or thereabouts) had a bios limitation which didn't accept disks larger than 2 GB. To overcome this problem the disk manufactures supplied some utilities that I think did some trickery with the master boot record. I have no idea how to find out if this is the case, but you can wipe the intire disk with the following command:

dd if=/dev/zero of=/dev/hda

Note that if one of these utilities was installed, dos will probably only be able to see 2 GB afterwards. You could also check to see if there is any bios update for your box.
Back to top
Profile PM 
gjhicks Offline





Group: Members
Posts: 108
Joined: April 2004
Posted: Dec. 20 2005,02:27 QUOTE

Actually, it was not the PCs, rather it was DOS that had the disk size problem.

If you run 'fdisk' on a 'large' (ie: greater than 512mb!) hard disk you will get a message explaning all of that.

As I have said, the disk works fine (at its full 6.4GB size) in both DOS and Win98SE but linux (3 varieties) can not see the same geometry.

Regards,

Geoff.
Back to top
Profile PM 
6 replies since Dec. 18 2005,01:15 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Hard disk geometry

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code