Re: hdc

Top Page

Reply to this message
Author: Manu Rouat
Date:  
To: guilde
Subject: Re: hdc
Patrick Dupre LCMI wrote:
>
> Apres plusieurs jours de recherche, j'ai la solution, elle merite d'etre
> conservee quelque part.


Apres 15 secondes de recherches sur deja-news, je constate que t'as tort
de t'inquieter, c'est conservé:

search "linux fdisk ide quantum"

me renvoie plein de touches, dont:
(notons au passage l'existence d'un 'large-disk' howto cité dans un de
ces posts....)


****************************************************************

Paul G. Crismer (pgcrism@???) wrote:
: How can I make a partition for linux on a >8Gb disks.

fdisk as usual

Do you want one big partition or multiple partitions on that disk?

: I have a Maxtor 91000D8 (10Gb) Hard disk.

hda: QUANTUM FIREBALL EL10.2A, 9787MB w/418kB Cache, CHS=19885/16/63, DMA

Partition check:
hda: hda1

Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda1            9657255      13  9156142      0%   /usr/local/sql/


: fdisk reports a 8000Mb and sees 1024 cylinders.
                                  ^^^^?
: There are 2 FAT32 partitions :
: . 1 primary (500Mb)
: . 1 extended (6500Mb)
: fdisk sees 3 (!) partitions.


Could you give a screendump? Dmesg info?

# fdisk
Using /dev/hda as default device!
The number of cylinders for this disk is set to 19885.
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)

Command (m for help): p

Disk /dev/hda: 16 heads, 63 sectors, 19885 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
/dev/hda1            1        1    19885 10022008+  83  Linux native


Command (m for help):


**************************************************************************


ou bien:


**************************************************************************

"Brian P. Barnes" <brianp@???> writes:

: I have a 9.1GB Seagate Medalist IDE drive and I have been trying to
: install Linux on it. From a boot disk made from the Redhat 5.1 CD, I get
: an early error message:
: An error occurred reading the partition table for the block device
: /tmp/sda. Device not configured.

: The large-disk faq spoke about compatibility between boot managers and
: multiple operating systems. It did not address any of my questions
: trying to get just one OS running.

: I have read Dejanews articles indicating that fdisk needs to be run in
: "Expert" mode ("x") or that you need to boot Linux with the command
: line parameters "hd=cyl,head,sector".

Usually it is very unwise to go into expert mode, or to give
boot parameters "hd=cyl,head,sector".

If the RedHat boot scripts fail, go to some other virtual console
where you have a shell prompt and do things by hand.

There are bugs in Disk Druid (also in fdisk, but less harmful)
so probably what you want to do is:
1. Look at the kernel boot messages. This is by far the most
   important step. 
2. If you have garbage in the partition table, zero it out using
        dd if=/dev/zero of=/dev/hda bs=512 count=1
   (if your disk is /dev/hda).
3. Use fdisk to partition. Note that the large-disk howto says


-----------------------------------------------------------------------
7. The Linux IDE 8 GB limit

The Linux IDE driver gets the geometry and capacity of a disk (and
lots of other stuff) by using an ATA IDENTIFY request. Until recently
the driver would not believe the returned value of lba_capacity if it
was more than 10% larger than the capacity computed by C*H*S. However,
recent Quantum Bigfoot 12 GB disks return C=16383, H=16, S=63, for a
total of 16514064 sectors (7.8 GB) but give lba_capacity of 23547888
sectors (11.2 GB, that is, C=23361).

Recent Linux kernels (2.0.34pre14, 2.1.90) know about this and do the
right thing. If you have an older Linux kernel and do not want to
upgrade, and this kernel only sees 8 GB of a much larger disk, then
try changing the routine lba_capacity_is_ok in
/usr/src/linux/drivers/block/ide.c into something like


       static int lba_capacity_is_ok (struct hd_driveid *id) {
               id->cyls = id->lba_capacity / (id->heads * id->sectors);
               return 1;
       }


-----------------------------------------------------------------------

in other words, you need 2.0.34 or more recent for a > 8 GB IDE disk.

4. When the partition table looks OK, restart the install.
The RedHat install gets confused if you change partition tables
under it.

Might things fail, please give the kernel boot messages for the disk,
and what error messages you may have got.
Probably an easy repair is possible.


**************************************************************************



Ca ne m'amuse plus vraiment tout ca.

La mailing-list, ca doit pas devenir un reflexe.

manu