Re: Bootloader and another Problem
This solved my Problem! Thanx a lot for nor writing RTFM ;-) martin Michael Tautschnig wrote: Dear Martin, After applying the provided patch on two testservers I still have the problem with the wrong root for grub. I run one server to deploy sarge, one to deploy ubuntu. Both have the same error. Here are my specs: disk_config: fabia:/usr/local/share/fai/disk_config# cat FAIBASE # generic disk configuration for one small disk # disk size from 500Mb up to what you can buy today # # type mountpoint size in mb [mount options] [;extra options] disk_config disk1 primary /boot 50-100 rw ; -j ext3 primary / 2000-4000 rw,errors=remount-ro ; -j ext3 primary swap 200-500 rw primary /var 500- rw ; -j ext3 # logical /homepreserve9 rw,nosuid; -m 1 -j ext3 [...] as stated in README.disk_config, the default boot partition is /, if no other is marked using the boot keyword -- your /boot-line should read primary /boot 50-100 rw ; -j ext3 boot HTH, Michael
Re: Bootloader and another Problem
After applying the provided patch on two testservers I still have the problem with the wrong root for grub. I run one server to deploy sarge, one to deploy ubuntu. Both have the same error. Here are my specs: disk_config: fabia:/usr/local/share/fai/disk_config# cat FAIBASE # generic disk configuration for one small disk # disk size from 500Mb up to what you can buy today # # type mountpoint size in mb [mount options] [;extra options] disk_config disk1 primary /boot 50-100 rw ; -j ext3 primary / 2000-4000 rw,errors=remount-ro ; -j ext3 primary swap 200-500 rw primary /var 500- rw ; -j ext3 # logical /homepreserve9 rw,nosuid; -m 1 -j ext3 On the target system the partitions look good: [EMAIL PROTECTED]:~ # fdisk -l /dev/hda Disk /dev/hda: 10.0 GB, 10005037056 bytes 16 heads, 63 sectors/track, 19386 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hda1 1 163 82120+ 83 Linux /dev/hda2 * 1646649 3268944 83 Linux /dev/hda366507419 388080 82 Linux swap / Solaris /dev/hda47420 19386 6031368 83 Linux The menu.lst on the target system is wrong (hd0.1) ## ## End Default Options ## title Ubuntu, kernel 2.6.10-5-686 root(hd0,1) kernel /vmlinuz-2.6.10-5-686 root=/dev/hda2 ro quiet splash initrd /initrd.img-2.6.10-5-686 savedefault boot title Ubuntu, kernel 2.6.10-5-686 (recovery mode) lock root(hd0,1) kernel /vmlinuz-2.6.10-5-686 root=/dev/hda2 ro single initrd /initrd.img-2.6.10-5-686 savedefault boot title Ubuntu, kernel memtest86+ root(hd0,1) kernel /memtest86+.bin savedefault boot ### END DEBIAN AUTOMAGIC KERNELS LIST Here is my patched postinst: fabia:/usr/local/share/fai/files/boot/grub/menu.lst# cat postinst #! /bin/bash error=0 ; trap error=$((error|1)) ERR set -a [ -r $target/etc/fai/disk_var.sh ] . $target/etc/fai/disk_var.sh # if class NOMBR is defined, write boot loader into boot partition, not into mbr ifclass NOMBR BOOT_DEVICE=$BOOT_PARTITION grub-install --no-floppy --root-directory=$target $BOOT_DEVICE GROOT=$(device2grub $BOOT_PARTITION) perl -pi -e 's/#(\w+)#/$ENV{$1}/' $2 $ROOTCMD /sbin/update-grub echo Grub installed on $BOOT_DEVICE on $GROOT exit $error fabia:/usr/local/share/fai/files/boot/grub/menu.lst# martin Thomas Lange wrote: On Tue, 19 Apr 2005 10:49:13 +, Martin Tanzer [EMAIL PROTECTED] said: 1.) When the installation is finished, on tty0 strange errormessages show up and keep running - I am not able to read them. The keyboard freezes. Watching the installation process on annother terminal with tail -f /tmp/fai/* works fine - after the installation it is possible to switch back on tty0 and enter a shell. I have tested this behavior on two different client machines. Remove the tune2fs command in /fai/scripts/FAIBASE/10-misc and tell me if this will help. Some small string from the error message would help us to find the error. 2.) After installation grub is misconfigured. When a /boot partition is used, root is set to hd0,1 instead of hd0,0. Without a /boot partition grub looks for (hd0.0)/kernel, which is not present there. Switching from GRUB to LILO works fine. Known bug. Have a look at this URL for a small patch. http://www.uni-koeln.de/bin2/maillist/linux-fai/20050414.144400/167420
Re: Bootloader and another Problem
On Tue, 19 Apr 2005 10:49:13 +, Martin Tanzer [EMAIL PROTECTED] said: 1.) When the installation is finished, on tty0 strange errormessages show up and keep running - I am not able to read them. The keyboard freezes. Watching the installation process on annother terminal with tail -f /tmp/fai/* works fine - after the installation it is possible to switch back on tty0 and enter a shell. I have tested this behavior on two different client machines. Remove the tune2fs command in /fai/scripts/FAIBASE/10-misc and tell me if this will help. Some small string from the error message would help us to find the error. 2.) After installation grub is misconfigured. When a /boot partition is used, root is set to hd0,1 instead of hd0,0. Without a /boot partition grub looks for (hd0.0)/kernel, which is not present there. Switching from GRUB to LILO works fine. Known bug. Have a look at this URL for a small patch. http://www.uni-koeln.de/bin2/maillist/linux-fai/20050414.144400/167420 -- regards Thomas
Re: Bootloader and another Problem
o Removing the tune2fs command solved the problem of errors on tty0. Thanks a lot! o I had no luck with the GRUB patch - I still struggle with the wrong root partition. More reports about that will follow. martin Thomas Lange wrote: On Tue, 19 Apr 2005 10:49:13 +, Martin Tanzer [EMAIL PROTECTED] said: 1.) When the installation is finished, on tty0 strange errormessages show up and keep running - I am not able to read them. The keyboard freezes. Watching the installation process on annother terminal with tail -f /tmp/fai/* works fine - after the installation it is possible to switch back on tty0 and enter a shell. I have tested this behavior on two different client machines. Remove the tune2fs command in /fai/scripts/FAIBASE/10-misc and tell me if this will help. Some small string from the error message would help us to find the error. 2.) After installation grub is misconfigured. When a /boot partition is used, root is set to hd0,1 instead of hd0,0. Without a /boot partition grub looks for (hd0.0)/kernel, which is not present there. Switching from GRUB to LILO works fine. Known bug. Have a look at this URL for a small patch. http://www.uni-koeln.de/bin2/maillist/linux-fai/20050414.144400/167420