Package: grub-common Version: 1.97+20091115-1 I've got a root partition using raid0 (2 disks), and a regular boot partition, usually mounted on /boot:
% df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md0p1 33553404 6486848 27066556 20% / tmpfs 2030704 0 2030704 0% /lib/init/rw udev 10240 344 9896 4% /dev tmpfs 2030704 0 2030704 0% /dev/shm /dev/sdb1 33558712 353776 33204936 2% /boot Problem: /etc/grub.d/30_os-prober adds entries for /dev/md0p1 to grub.cfg, even though /boot is on /dev/sdb1 (not to mention that grub2 does not support raid0). See attachment. If I select an entry generated via os-prober at boot time, then I get a message that I have to load a kernel first. Regards Harri
# # DO NOT EDIT THIS FILE # # It is automatically generated by /usr/sbin/grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### set default=saved insmod raid insmod mdraid insmod reiserfs set root=(md0,1) search --no-floppy --fs-uuid --set e8d59336-6621-4061-96f7-fe294e58b3ce if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=1920x1200 insmod gfxterm insmod vbe if terminal_output gfxterm ; then true ; else # For backward compatibility with versions of terminal.mod that don't # understand terminal_output terminal gfxterm fi set gfxpayload=keep fi set timeout=10 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry "Debian GNU/Linux, with Linux 2.6.32-rc8" { insmod reiserfs set root=(hd1,1) search --no-floppy --fs-uuid --set 589c1019-ecc1-48f5-b7ef-8e3c8c5ec2cb linux /vmlinuz-2.6.32-rc8 root=UUID=e8d59336-6621-4061-96f7-fe294e58b3ce ro video=vesafb:ypan quiet initrd /initrd.img-2.6.32-rc8 } menuentry "Debian GNU/Linux, with Linux 2.6.31.6" { insmod reiserfs set root=(hd1,1) search --no-floppy --fs-uuid --set 589c1019-ecc1-48f5-b7ef-8e3c8c5ec2cb linux /vmlinuz-2.6.31.6 root=UUID=e8d59336-6621-4061-96f7-fe294e58b3ce ro video=vesafb:ypan quiet initrd /initrd.img-2.6.31.6 } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_memtest86 ### menuentry "Memory test (memtest86)" { linux /memtest86.bin } ### END /etc/grub.d/20_memtest86 ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Debian GNU/Linux, with Linux 2.6.32-rc8 (on /dev/md0p3)" { insmod raid insmod mdraid insmod reiserfs set root=(md0,3) search --no-floppy --fs-uuid --set f3f11a99-cd48-49ae-9455-189ad251b209 linux /boot/vmlinuz-2.6.32-rc8 root=UUID=e8d59336-6621-4061-96f7-fe294e58b3ce ro video=vesafb:ypan quiet initrd /boot/initrd.img-2.6.32-rc8 } menuentry "Debian GNU/Linux, with Linux 2.6.31.6 (on /dev/md0p3)" { insmod raid insmod mdraid insmod reiserfs set root=(md0,3) search --no-floppy --fs-uuid --set f3f11a99-cd48-49ae-9455-189ad251b209 linux /boot/vmlinuz-2.6.31.6 root=UUID=e8d59336-6621-4061-96f7-fe294e58b3ce ro video=vesafb:ypan quiet initrd /boot/initrd.img-2.6.31.6 } menuentry "Memory test (memtest86) (on /dev/md0p3)" { insmod raid insmod mdraid insmod reiserfs set root=(md0,3) search --no-floppy --fs-uuid --set f3f11a99-cd48-49ae-9455-189ad251b209 linux /boot/memtest86.bin } ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_otheros ### ### END /etc/grub.d/30_otheros ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ###