
Originally Posted by
Quackers
I haven't done this addition myself, but I would imagine that the entry has to EXACTLY match what drs305 quotes (except for the different drive/partition number) for it to work.
It does see below the contents of 40_custom
Code:
#!/bin/sh
exec tail -n +3 $0
# 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.
menuentry "Wary (on sdb1)"{
set root=(hd1,1)
linux /vmlinuz pmedia=usbhd
initrd /initrd.gz
}
EOF
and here is the entry in grub.cfg
Code:
### 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.
menuentry "Wary (on sdb1)"{
set root=(hd1,1)
linux /vmlinuz pmedia=usbhd
initrd /initrd.gz
}
EOF
As I said the entry may not be 100% correct but that shouldn't stop it appearing on boot should it?

Originally Posted by
ajgreeny
Is it possible that you have more than one linux with more than one grub2 and you are trying to edit the wrong one, ie a grub2 menu that is actually from a different OS to the one you are editing?
It should be obvious, I agree, as the default OS to which the system boots will be the OS that has the active grub2 configuration files.
Thanks for the idea I do have several partitions with another *nix but I have double checked and I am using the correct grub
Edit:
the only complication is it is on a USB HD but again I can't see that stopping it appearing
Bookmarks