sfdisk errors

Holger Mense hmense at math.uni-paderborn.de
Wed Aug 17 11:44:43 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I encountered some strange errors regarding sfdisk. The host has been
installed with FAI 2.5.4 (kernel 2.4) and now I want to reinstall it FAI
2.8.3 (kernel 2.6.11.12). The partition layout is the same since the last
installation. hda2 should be preserved.

It looks like, that sfdisk now wants to use a different harddisk geometry
from the first partitioning. As a result, sfdisk isn't able to takeover
the layout and wants to do a new paritioning. However, I don't want it to
do so :)

Has somebody an idea, what could be done to solve this?

=== fai.log ===
alling hook: partition.DEFAULT
setup_harddisks version 0.35fai
Probing disks:  /dev/hda
Disks found: hdaWarning: extended partition does not start at a cylinder
boundary.
DOS and Linux will interpret the contents differently.


Using config file:
/fai-personal/disk_config/MATH_IDE_PART_ADMIN_80_PNLINUX
Mapping disk name disk1 to hda
Creating partition table: LC_ALL=C sfdisk -q  /dev/hda <
/tmp/fai/partition.hda
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Warning: The partition table looks like it was made
  for C/H/S=*/255/63 (instead of 155061/16/63).
For this listing I'll assume that geometry.

sfdisk: I don't like these partitions - nothing changed.
(If you really want this, use the --force option.)

SFDISK ERROR:

Disk /dev/hda: 155061 cylinders, 16 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hda1          0+   2549    2550-  20482843+  83  Linux
/dev/hda2   *   2550    4462    1913   15366172+   7  HPFS/NTFS
/dev/hda3       4463    9728    5266   42299145    5  Extended
/dev/hda4          0       -       0          0    0  Empty
/dev/hda5       4463+   4590     128-   1028128+  82  Linux swap / Solaris
/dev/hda6       4591+   5100     510-   4096543+  83  Linux
/dev/hda7       5101+   5355     255-   2048256   83  Linux
/dev/hda8       5356+   5674     319-   2562336   83  Linux
/dev/hda9       5675+   9728    4054-  32563723+  83  Linux
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/hda1   *        63  40960079   40960017  83  Linux
/dev/hda2      40965750  71698094   30732345   7  HPFS/NTFS
/dev/hda3      71699040 156301487   84602448   5  Extended
/dev/hda4             0         -          0   0  Empty
/dev/hda5      71699103  73747295    2048193  82  Linux swap / Solaris
/dev/hda6      73747359  81939311    8191953  83  Linux
/dev/hda7      81939375  86035823    4096449  83  Linux
/dev/hda8      86035887  91156463    5120577  83  Linux
/dev/hda9      91156527 156301487   65144961  83  Linux

partition.DEFAULT    OK.
=== fai.log ===


The configuration file for sfdisk:

=== MATH_IDE_PART_ADMIN_80_PNLINUX ===

disk_config disk1
primary /               20000                           ;xfs
primary -               preserve2
logical swap            1000                            ;xfs
logical /var            4000                            ;xfs
logical /tmp            2000                            ;xfs
logical /cdtemp         2500                            ;xfs
logical /.hostpart      0-                              ;xfs lazyformat

=== MATH_IDE_PART_ADMIN_80_PNLINUX ===


Holger Mense

- -- 
Holger Mense
Rechnerbetrieb Mathematik                          Tel.: 0 52 51 / 60 34 94
Universität Paderborn                      http://www.math.uni-paderborn.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFDAwcPHjdfhHqYjTQRAkDNAJsGef3gkF168CaRCSwAwDJyN2EgpACgjLu9
RDC91psm74wxoi3l7mme0VQ=
=iSuH
-----END PGP SIGNATURE-----



More information about the linux-fai mailing list