Problem with setup_harddisks
Axel Freyn
axel.freyn at gmail.com
Wed Apr 30 09:30:48 CEST 2008
Hello,
we have a problem with setup_harddisks on some special machines:
We are using FAI 3.2.4 and Debian etch.
We have some dual-boot clients with Win98 and Linux. In order to get Win98
in a "save" state, we special PCI-cards which control the accesses on the
harddiscs from Win98. Re-installing Win on these machines is awful, so we
would like to preserve the partition-table with 2 primary and 3 logical
partitions. Because of these special PCI-cards, we HAVE to:
- use exactly 2 primary partitions
- install grub into /dev/hda1, NOT the mbr
- mark the first partition as bootable
As disk-config, we are using:
disk_config disk1
primary /boot/ 10-100 ; boot
primary - preserve2
logical / 9000-14000 rw,errors=remount-ro ; -j ext3
logical swap 400-600 rw
logical - preserve7
>From that, the following partition.hda - file is created:
unit: sectors
/dev/hda1 : start= 63, size= 79569, Id= 83, bootable
/dev/hda2 : start= 80325, size= 20482875, Id= c
/dev/hda3 : start= 20563200, size= 57560895, Id= 5
/dev/hda4 : start= 0, size= 0, Id= 0
/dev/hda5 : start= 20563263, size= 20635713, Id= 83
/dev/hda6 : start= 41199039, size= 907137, Id= 82
/dev/hda7 : start= 42106428, size= 36017667, Id= c
which looks quite reasonable - except may bo for the partition /dev/hda4?
But setup_harddisks seems to have a problem with that:
Creating partition table: LC_ALL=C sfdisk -q /dev/hda <
/tmp/fai/partition.hda
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 77504/16/63).
For this listing I'll assume that geometry.
sfdisk: bad input
SFDISK ERROR:
Disk /dev/hda: 77504 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+ 4 5- 40131 83 Linux
/dev/hda2 5 1279 1275 10241437+ c W95 FAT32 (LBA)
/dev/hda3 1280 4862 3583 28780447+ f W95 Ext'd (LBA)
/dev/hda4 0 - 0 0 0 Empty
/dev/hda5 1280+ 2554 1275- 10241406 83 Linux
/dev/hda6 2555+ 2620 66- 530113+ 82 Linux swap / Solaris
/dev/hda7 2621+ 4862 2242- 18008833+ c W95 FAT32 (LBA)
setup_harddisks version 0.43fai
Probing disks: /dev/hda
Disks found: hda
Using config file: /var/lib/fai/config/disk_config/E002b
Mapping disk name disk1 to hda
Creating partition table: LC_ALL=C sfdisk -q /dev/hda <
/tmp/fai/partition.hda
Save log files via ssh to logfai at mars:platz36/install-20080429_185925
setup_harddisks did not create /tmp/fai/disk_var.sh file.
Does someone know a solution? Of course, one possibility would be not do
partition the disk at all - as everything is already correct now. How could
we achieve this? and what is the structure for /tmp/fai/disk_var.sh - I
expect, this file would have to be created by a hand-written script?
Regards,
Axel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20080430/3f014e86/attachment.htm
More information about the linux-fai
mailing list