2012-03-27, 02:12
With Xbmcbuntu there is a Grub screen when booting up my HTPC. Has anyone found away to have it boot right into XBMC??
Thanks
Thanks
sudo nano /boot/grub/menu.lst
timeout 1
hiddenmenu
sudo nano /etc/default/grub
GRUB_HIDDEN_TIMEOUT=0
sudo update-grub
(2012-03-27, 03:22)cowfodder Wrote:Code:sudo nano /boot/grub/menu.lst
and add the following
Code:timeout 1
hiddenmenu
That will hide the grub menu, and after 1 second it will boot into the default system (i.e. xbmcbuntu)
*edit* Just realized that this may not work anymore with newer versions of grub.
*edit 2* if the first one doesn't work, try this instead:
Code:sudo nano /etc/default/grub
and set this
Code:GRUB_HIDDEN_TIMEOUT=0
the save, and run
Code:sudo update-grub
(2012-04-18, 02:53)jervine Wrote: To tmacka - set the timeout to 1 instead. Setting it to 0 leaves it just sitting there, but with a real value it will display the grub screen for 1 second and then automatically boot the default entry. Assuming you have a default set? e.g. default 0 boots the first grub entry. Alfton is also correct, on the grub kernel line you should have an argument root=<path to root disk device> - I'd need to check an Ubuntu installation to see what they do here, but you need to point this entry to the correct root device (likely to be able to use /dev/sda1 if you just followed a default installation, but you may need to poke around a bit via a Linux rescue or live system).
(2012-04-17, 08:32)alfton Wrote: It seems to me that the grub system did not set correct /dev/disk under installations, so what you have to do is to find out where the root system is does it have /dev/sda1, sdd1, sdd2 and so on..
(2012-04-18, 08:57)alfton Wrote: Could you first tell me how you did the installations?
Did you let the installer do its thing automatical?, do you have dual boot system, windows/linux half, half?
so first on find out where your root system is:
you find this out with following
cd /dev/disk/by-uuid
ls -l (there you will see the symling to the partitions)
type "df" then you see the partition that is the root "/"
mine is for eksempel "4k5f7d8d-f9c4-439e-h8fe-f5e7aeg24c21"
when you have grabed the by-uuid number that correspond to the root file system you go into the
/boot/grub/grub.cfg
and find all entry that say: --set=root 4k5f7d8d-f9c4-439e-h8fe-f5e7aeg24c21
Check that the uuid is correct one for you root partitions
if not you change it to the correct one.
trent_mackness@XBMC:~$ cd /dev/disk/by-uuid
trent_mackness@XBMC:/dev/disk/by-uuid$ ls -l
total 0
lrwxrwxrwx 1 root root 10 2012-04-20 13:00 cec8c929-9dd8-45dd-a4d6-cf47612ffbe5 -> ../../sda1
lrwxrwxrwx 1 root root 10 2012-04-20 13:00 d39f78e6-c2ae-4f38-9c24-0b55ac19e208 -> ../../sda5
trent_mackness@XBMC:/dev/disk/by-uuid$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 11661596 3723220 7345992 34% /
udev 1780848 4 1780844 1% /dev
tmpfs 716344 336 716008 1% /run
none 5120 0 5120 0% /run/lock
none 1790852 0 1790852 0% /run/shm
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
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
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root cec8c929-9dd8-45dd-a4d6-cf47612ffbe5
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root cec8c929-9dd8-45dd-a4d6-cf47612ffbe5
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
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 ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.0.0-17-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root cec8c929-9dd8-45dd-a4d6-cf47612ffbe5
linux /boot/vmlinuz-3.0.0-17-generic-pae root=UUID=cec8c929-9dd8-45dd-a4d6-cf47612ffbe5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-17-generic-pae
}
menuentry 'Ubuntu, with Linux 3.0.0-17-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root cec8c929-9dd8-45dd-a4d6-cf47612ffbe5
echo 'Loading Linux 3.0.0-17-generic-pae ...'
linux /boot/vmlinuz-3.0.0-17-generic-pae root=UUID=cec8c929-9dd8-45dd-a4d6-cf47612ffbe5 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-17-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-16-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root cec8c929-9dd8-45dd-a4d6-cf47612ffbe5
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=cec8c929-9dd8-45dd-a4d6-cf47612ffbe5 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-16-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-16-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root cec8c929-9dd8-45dd-a4d6-cf47612ffbe5
echo 'Loading Linux 3.0.0-16-generic ...'
linux /boot/vmlinuz-3.0.0-16-generic root=UUID=cec8c929-9dd8-45dd-a4d6-cf47612ffbe5 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-16-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root cec8c929-9dd8-45dd-a4d6-cf47612ffbe5
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root cec8c929-9dd8-45dd-a4d6-cf47612ffbe5
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if sleep --interruptible 1 ; then
set timeout=0
fi
fi
### 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.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
(2012-04-18, 08:46)jervine Wrote: 1. What distribution are you using, as I don't think you've said that before ...
2. What file are you altering where the parameters are GRUB_DEFAULT=0 etc?
Looks like XBMCbuntu uses grub2 which has a more complicated and flexible grub.cfg file.
sudo nano /etc/default/grub
sudo update-grub