Originally Posted by
Cavsfan
Do you dual boot Ubuntu with Windows 7 too?
I thought you only had Ubuntu on your machine, but I could be mistaken.
This picture is after you did all of the steps above correct?
The custom entries in the picture show as the last 3 entries, when they are supposed to be the first 3 entries.
Can you enter
sudo grub-mkconfig in a terminal and post the output here please.
Make sure you wrap the text with CODE (select all of the output and click on the # top right).
Also, could you enter
ls -l /etc/grub.d/ in a terminal and paste the output here also wrapped in CODE as mentioned above.
This is what I am wanting to see: the 2 custom Ubuntu Entries first and if dual booting Windows 7 like I am that should appear 3rd.
And I do not suggest starting off with just 2 or 3 entries. As I mentioned in step 6 of the tutorial, only after some time goes by and you
are absolutely confident that it works as expected. Then you can make the other files non-executable so that they do not appear.
You're right about me duel booting into Windows 7. I have a reason to believe that I have added something to "gksu gedit /etc/grub.d/40_custom" that wasn't supposed to be there.
Code:
Generating grub.cfg ...
#
# 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 ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 1609e458-e91e-4866-bb71-65e544e681ae
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
set gfxpayload=keep
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
fi
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 1609e458-e91e-4866-bb71-65e544e681ae
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
Found background image: energy-fluke.jpg
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 1609e458-e91e-4866-bb71-65e544e681ae
insmod jpeg
if background_image /usr/share/images/desktop-base/energy-fluke.jpg ; then
set color_normal=white/black
set color_highlight=magenta/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 1609e458-e91e-4866-bb71-65e544e681ae
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=1609e458-e91e-4866-bb71-65e544e681ae ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 1609e458-e91e-4866-bb71-65e544e681ae
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=1609e458-e91e-4866-bb71-65e544e681ae ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
Found memtest86+ image: /boot/memtest86+.bin
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 1609e458-e91e-4866-bb71-65e544e681ae
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 1609e458-e91e-4866-bb71-65e544e681ae
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
Found Windows 7 (loader) on /dev/sda1
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 01cb2416e6305a00
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### 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.
echo "Adding Ubuntu Lucid Lynx 10.04" >&2
cat << EOF
menuentry "Ubuntu Lucid Lynx 10.04" {
set root=(hd0,5)
linux /vmlinuz root=/dev/sda5 ro quiet splash
initrd /initrd.img
}
EOF
echo "Ubuntu Lucid Lynx 10.04 (Recovery Mode)" >&2
cat << EOF
menuentry "Ubuntu Lucid Lynx 10.04 (Recovery Mode)" {
set root=(hd0,5)
linux /vmlinuz root=/dev/sda5 ro single
initrd /initrd.img
}
EOF
echo "Windows 7 (loader)" >&2
cat << EOF
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 01cb2416e6305a00
chainloader +1
}
EOF
### END /etc/grub.d/40_custom ###
done
Code:
total 40
-rwxr-xr-x 1 root root 4466 2010-08-02 14:48 00_header
-rwxr-xr-x 1 root root 1409 2010-08-02 17:57 05_debian_theme
-rwxr-xr-x 1 root root 4594 2010-04-13 08:59 10_linux
-rwxr-xr-x 1 root root 918 2010-03-23 04:37 20_memtest86+
-rwxr-xr-x 1 root root 6605 2010-04-13 08:59 30_os-prober
-rwxr-xr-x 1 root root 843 2010-08-02 17:34 40_custom
-rw-r--r-- 1 root root 483 2010-04-13 08:59 README
My apologies for the delay, I had to do something.
Bookmarks