[Linux-bruxelles] cfdisk (était : Install ubuntu 9.10)
Gildas Cotomale
gildas.cotomale at gmail.com
Jeu 5 Nov 14:07:18 CET 2009
>> Par contre, cfdisk n'arrive pas à
>> trouver mes disques... Je l'ai testé également sur une autre machine
>> (en redhat celle la) et meme bleme... En cherchant un peu sur le net,
>> y a apparement pas mal de gens qui ont le meme souci avec cfdisk...
>> C'est dommage.
>
> Si je me souviens bien, cfdisk n'est pas vraiment maintenu et est
> généralement déconseillé. fdisk est un peu moins pire et sfdisk est OK.
> Mais bon, ce sont des souvenirs qui datent de hooo.... au moins ça :-)
>
ubuntu 9.04 avec disques sata reconnus par cfdisk :
~$ cfdisk -v
cfdisk (util-linux-ng 2.14.2)
Copyright (C) 1994-2002 Kevin E. Martin & aeb
~$ fdisk -v
fdisk (util-linux-ng 2.14.2)
~$ sfdisk -v
sfdisk (util-linux-ng 2.14.2)
il semble en effet n'avoir pas évolué depuis 2002 (faudrait vérifier
plutôt sur la page du projet, ou mieux sur le cvs ou équivalent).
dans la page man (je l'ai en anglais, c'est normal) on peut lire :
"In order to write the partition table cfdisk needs something called the
‘geometry’ of the disk: the number of ‘heads’ and the number of ‘sec‐
tors per track’. Linux does not use any geometry, so if the disk will
not be accessed by other operating systems, you can safely accept the
defaults that cfdisk chooses for you. The geometry used by cfdisk is
found as follows. First the partition table is examined, to see what
geometry was used by the previous program that changed it. If the par‐
tition table is empty, or contains garbage, or does not point at a con‐
sistent geometry, the kernel is asked for advice. If nothing works 255
heads and 63 sectors/track is assumed. The geometry can be overridden
on the command line or by use of the ‘g’ command. When partitioning an
empty large modern disk, picking 255 heads and 63 sectors/track is
always a good idea. There is no need to set the number of cylinders,
since cfdisk knows the disk size.
Next, cfdisk tries to read the current partition table from the disk
drive. If it is unable to figure out the partition table, an error is
displayed and the program will exit. This might also be caused by
incorrect geometry information, and can be overridden on the command
line. Another way around this problem is with the -z option. This
will ignore the partition table on the disk.
" ce dernier paragraphe confirme ce que je pensais : table des
partitions défectueuse te cfdsk refuse de se lancer... une autre cause
probable est qu'il a du mal à identifier la géométrie du disque (c'est
pour ça que j'ai ajouté le paragraphe précédant qui en parle
largement), mais je trouce ce point délicat dans la mesure où il s'en
remet au noyeau Linux en dernier recours (donc si dans dmesg rien ne
cloche, ça devrait aller à son niveau)
Plus d'informations sur la liste de diffusion Linux-bruxelles