Hello,<br><br>we have a problem with setup_harddisks on some special machines:<br>We are using FAI 3.2.4 and Debian etch.<br><br>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:<br>
- use exactly 2 primary partitions<br> - install grub into /dev/hda1, NOT the mbr<br> - mark the first partition as bootable<br><br>As disk-config, we are using:<br>disk_config disk1<br>primary /boot/ 10-100 ; boot<br>
primary - preserve2<br>logical / 9000-14000 rw,errors=remount-ro ; -j ext3<br>logical swap 400-600 rw<br>logical - preserve7<br><br>From that, the following partition.hda - file is created:<br>
<br>unit: sectors<br><br>/dev/hda1 : start= 63, size= 79569, Id= 83, bootable<br>/dev/hda2 : start= 80325, size= 20482875, Id= c<br>/dev/hda3 : start= 20563200, size= 57560895, Id= 5<br>/dev/hda4 : start= 0, size= 0, Id= 0<br>
/dev/hda5 : start= 20563263, size= 20635713, Id= 83<br>/dev/hda6 : start= 41199039, size= 907137, Id= 82<br>/dev/hda7 : start= 42106428, size= 36017667, Id= c<br><br>which looks quite reasonable - except may bo for the partition /dev/hda4?<br>
<br><br>But setup_harddisks seems to have a problem with that:<br><br>Creating partition table: LC_ALL=C sfdisk -q /dev/hda < /tmp/fai/partition.hda<br>Warning: The partition table looks like it was made<br> for C/H/S=*/255/63 (instead of 77504/16/63).<br>
For this listing I'll assume that geometry.<br><br>sfdisk: bad input<br><br>SFDISK ERROR:<br><br>Disk /dev/hda: 77504 cylinders, 16 heads, 63 sectors/track<br>Old situation:<br>Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0<br>
<br> Device Boot Start End #cyls #blocks Id System<br>/dev/hda1 * 0+ 4 5- 40131 83 Linux<br>/dev/hda2 5 1279 1275 10241437+ c W95 FAT32 (LBA)<br>/dev/hda3 1280 4862 3583 28780447+ f W95 Ext'd (LBA)<br>
/dev/hda4 0 - 0 0 0 Empty<br>/dev/hda5 1280+ 2554 1275- 10241406 83 Linux<br>/dev/hda6 2555+ 2620 66- 530113+ 82 Linux swap / Solaris<br>/dev/hda7 2621+ 4862 2242- 18008833+ c W95 FAT32 (LBA)<br>
<br>setup_harddisks version 0.43fai<br>Probing disks: /dev/hda<br>Disks found: hda<br><br>Using config file: /var/lib/fai/config/disk_config/E002b<br>Mapping disk name disk1 to hda<br>Creating partition table: LC_ALL=C sfdisk -q /dev/hda < /tmp/fai/partition.hda<br>
Save log files via ssh to logfai@mars:platz36/install-20080429_185925<br>setup_harddisks did not create /tmp/fai/disk_var.sh file.<br><br><br><br>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?<br>
<br>Regards,<br><br>Axel<br>