Big IDE- fdisk 'different phys/log...'

Big IDE- fdisk 'different phys/log...'

Post by Eric Zag » Tue, 11 Oct 1994 04:30:55



I've been following the discussions of large IDE drives, but am
running into an fdisk message which I haven't seen mentioned.  I'd
like to know if I'm safe ignoring it, or if it means something
significant.

After trying a number of configurations, I decided to install the
drive (a Western Digital AC2540, 540 Mb) on a second IDE card, so that
I could rule out the possibility of wierd interactions with AT BIOS.  The
drive geometry is hard coded into the kernel (1.1.52 w/ atdisk2-1.1.47+).

After partitioning the drive, fdisk 1.5 reports-

Command (m for help): p
Disk /dev/hd1a: 16 heads, 63 sectors, 1048 cylinders
Units = cylinders of 1008 * 512 bytes

    Device Boot  Begin   Start     End  Blocks   Id  System
/dev/hd1a1           1       1     246  123983+  83  Linux native
Partition 1 does not start on cylinder boundary:
     phys=(0, 0, 2) should be (0, 1, 1)
/dev/hd1a2         247     247     285   19656   83  Linux native
/dev/hd1a3         286     286     895  307440   83  Linux native
/dev/hd1a4         896     896    1048   77112   83  Linux native
Partition 4 has different physical/logical endings:
     phys=(1023, 15, 63) logical=(1047, 15, 63)

Is the message about different physical/logical endings significant?  The
logical information is correct.  I don't know where the physical information
is coming from.

In the words of an infamous operating system- abort, retry, or ignore?

 
 
 

Big IDE- fdisk 'different phys/log...'

Post by Delman L » Tue, 11 Oct 1994 06:34:19


 [*] Eric Zager writes:

   ] After trying a number of configurations, I decided to install the
   ] drive (a Western Digital AC2540, 540 Mb) on a second IDE card, so
   ] that I could rule out the possibility of wierd interactions with
   ] AT BIOS.  The drive geometry is hard coded into the kernel
   ] (1.1.52 w/ atdisk2-1.1.47+).

Oh atdisk2 patch against 1.1.x kernels can be bound in
mipgsun.mipg.upenn.edu:pub/delman

   ] Disk /dev/hd1a: 16 heads, 63 sectors, 1048 cylinders Units

I have only recently got a drive with more than 1024 cylinders. I
think the temporary fix is to go into expert mode in fdisk and set the
heads to 32, and cylinders to 524.

Will try and fix it in the atdisk2 code....

Delman.

--
______________________________________________________________________

  Delman Lee                                 Tel.: +1-215-662-6780
  Medical Image Processing Group,            Fax.: +1-215-898-9145
  University of Pennsylvania,
  4/F Blockley Hall, 423 Guardian Drive,                        
  Philadelphia, PA 19104-6021,

______________________________________________________________________

 
 
 

Big IDE- fdisk 'different phys/log...'

Post by Delman L » Tue, 11 Oct 1994 08:35:06


 [*] Delman Lee writes:

   ] Will try and fix it in the atdisk2 code....

The 1.1.52-diffs in mipgsun.mipg.upenn.edu:pub/delman should fix the
problem. It fakes the bios geometry from the real physical geometry by
halving the cylinders (and doubling the heads) until cyl<=1024.

Please give it a try.

Delman.
--
______________________________________________________________________

  Delman Lee                                 Tel.: +1-215-662-6780
  Medical Image Processing Group,            Fax.: +1-215-898-9145
  University of Pennsylvania,
  4/F Blockley Hall, 423 Guardian Drive,                        
  Philadelphia, PA 19104-6021,

______________________________________________________________________

 
 
 

Big IDE- fdisk 'different phys/log...'

Post by Mark Lo » Wed, 12 Oct 1994 23:44:09


< [*] Delman Lee writes:
<
<   ] Will try and fix it in the atdisk2 code....
<
<The 1.1.52-diffs in mipgsun.mipg.upenn.edu:pub/delman should fix the
<problem. It fakes the bios geometry from the real physical geometry by
<halving the cylinders (and doubling the heads) until cyl<=1024.

Ugh!  This will cause trouble.

The correct solution for linux 1.1.x is to simply define the drive
as having 32 (or 64) heads in the BIOS CMOS setup.  Then DOS, linux,
and most other stuff will handle it just fine.
--

 
 
 

Big IDE- fdisk 'different phys/log...'

Post by Delman L » Thu, 13 Oct 1994 03:11:35


 [*] Mark Lord writes:

   ] <The 1.1.52-diffs in mipgsun.mipg.upenn.edu:pub/delman should fix the
   ] <problem. It fakes the bios geometry from the real physical geometry by
   ] <halving the cylinders (and doubling the heads) until cyl<=1024.
   ]
   ] Ugh!  This will cause trouble.
   ]
   ] The correct solution for linux 1.1.x is to simply define the
   ] drive as having 32 (or 64) heads in the BIOS CMOS setup.  Then
   ] DOS, linux, and most other stuff will handle it just fine.

The problem is that (at least for people with old BIOSes) there is no
CMOS setup for 3rd and 4th drives on the 2nd controller. That's why I
fake the logical geometry (bios_info[]) from the real physical
geometry (hd_info[]) in hd.c.

For people with the newer BIOS (EIDE), where it's possible to enter
geometries for 3rd and 4th drives on the 2nd controller, the correct
solution would be to enter the fake/logical geometry, EXCEPT Linux
doesn't yet read the EIDE BIOS entries. I was looking into it, I think
it means adding some assembly in setup.S. And assembly is not my
strong suit, so that's where I stopped.... Anybody?

Thanks, Delman.
--
______________________________________________________________________

  Delman Lee                                 Tel.: +1-215-662-6780
  Medical Image Processing Group,            Fax.: +1-215-898-9145
  University of Pennsylvania,
  4/F Blockley Hall, 423 Guardian Drive,                        
  Philadelphia, PA 19104-6021,

______________________________________________________________________

 
 
 

Big IDE- fdisk 'different phys/log...'

Post by Allan Wi » Sat, 15 Oct 1994 13:52:27



> < [*] Delman Lee writes:
> <
> <   ] Will try and fix it in the atdisk2 code....
> <
> <The 1.1.52-diffs in mipgsun.mipg.upenn.edu:pub/delman should fix the
> <problem. It fakes the bios geometry from the real physical geometry by
> <halving the cylinders (and doubling the heads) until cyl<=1024.

> Ugh!  This will cause trouble.

> The correct solution for linux 1.1.x is to simply define the drive
> as having 32 (or 64) heads in the BIOS CMOS setup.  Then DOS, linux,
> and most other stuff will handle it just fine.

When I use more then 16 heads in my BIOS CMOS setup it hangs before
getting to the OS.

Allan Wind            Phone: (+45) 40 27 14 94

8230 Aabyhoej         www: http://www.daimi.aau.dk/~u930528/index.html
Denmark               ------------------------------------------------
--

Allan Wind            Phone: (+45) 40 27 14 94

8230 Aabyhoej         www: http://www.daimi.aau.dk/~u930528/index.html
Denmark               ------------------------------------------------

 
 
 

1. Q: fdisk says different phys/logical



I ignored the message and setup the machine regular using the Linux
fdisk utility - and this machine has been on the internet since for
3 weeks processing a backbone newsfeed without any problems..

Also, as a side note, I downloaded hdparm and run it with the
-X11 and -m8 options with my PCI EIDE controller and WD Caviar
EIDE drives - and the disk throughput is (noticable) much better

for those of you with EIDE drives - check out hdparm from the ftp
sites :)

larry

2. Multiple displays/servers using X

3. Help - want to setup restricted telnet port

4. 'fdisk' or FDISK?

5. Framebuffer and rotated monitor: how to? fbset option?

6. (?) Why different 'colors' on different logins?

7. HyperTerminal for Linux

8. Is different 'Ethenet address' from 'Mac Address' ?

9. 'date' and 'clock' show different times

10. different behaviour of 'while read' and 'for' loops in bash

11. different fdisk woes: Error: can't read /dev/sda, free_inode: 182 already cleared

12. FTP: logging things other than 'get' and 'put'