Strange behaviour with setup_harddisks

Cyril Bouthors cyril at bouthors.org
Thu Apr 14 14:12:31 CEST 2005


I'm sorry to quote this pretty long message but I'm still getting the
same trouble with setup_harddisks and I'm still not able to install
the machine with FAI.

Does anyone have an idea where it's coming from and how it can be
fixed?

Thanks

On 22 Mar 2005, Cyril Bouthors wrote:
> On a new server with one single 80GB S-ATA hard disk, sfdisk through
> setup_harddisks fails. I've reproduced it with the following:
>
> root at web16:/tmp# sfdisk /dev/hda </tmp/fai/partition.hda
> Checking that no-one is using this disk right now ...
> OK
>
> Disk /dev/hda: 9964 cylinders, 255 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+     24      25-    200781   83  Linux
> /dev/hda2         25     268     244    1959930   83  Linux
> /dev/hda3        269    9963    9695   77875087+  83  Linux
> /dev/hda4          0       -       0          0    0  Empty
> Warning: given size (266068530) exceeds max allowable size (157597650)
>
> sfdisk: bad input
> root at web16:/tmp# echo $?
> 1
>
> ---------------------
>
> /tmp/fai/partition.hda is wrong and I guess it's a bug with
> setup_harddisks.  The FAI installation fails because of that.  Here
> are other important information you might need:
>
> root at web16:/tmp# cat /tmp/fai/partition.hda
> # partition table of device: /dev/hda
> unit: sectors
>
> /dev/hda1 : start=        63, size=    417627, Id=   , bootable
> /dev/hda2 : start=    417690, size=   2056320, Id= 82
> /dev/hda3 : start=   2474010, size= 266068530, Id=   
> root at web16:/tmp# cat /fai/disk_config/WEB_PARTITIONS_IDE
> # for more information, have a look at /usr/share/doc/fai/README.disk_config.gz
>
> # <type> <mountpoint> <size in mb> [mount options]     [;extra options]
>
> disk_config hda
> primary  /boot         200         rw                   ;boot xfs
> primary  swap          1000        rw
> primary  /             1000-       rw                   ;xfs
> root at web16:/tmp# sfdisk -l /dev/hda
>
> Disk /dev/hda: 9964 cylinders, 255 heads, 63 sectors/track
> Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
>
> Device Boot Start     End   #cyls    #blocks   Id  System
> /dev/hda1          0+     24      25-    200781   83  Linux
> /dev/hda2         25     268     244    1959930   83  Linux
> /dev/hda3        269    9963    9695   77875087+  83  Linux
> /dev/hda4          0       -       0          0    0  Empty
> root at web16:/tmp# 
>
> Do you think it can be fixed?
>
> Thanks

-- 
Cyril Bouthors
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20050414/ae3563b8/attachment.bin 


More information about the linux-fai mailing list