[live] how to edit grub menu
#1
hi,
i used unetbootin to create a live-usb of the 9.11-repack (this is a wonderful release).

i would like to change grub's default boot from 'install' to 'live-nvidea gpu'.
i also want it to timeout after 5 seconds instead of 10 seconds.
here is my XBMCLive_53/boot/grub/menu.lst:
Code:
#
[b]default 1
timeout 5[/b]

foreground eeeeee
background 333333

splashimage /boot/grub/splash.xpm.gz

#
notimezone noaccessibility noapparmor noaptcdrom noautologin noxautologin noconsolekeyboard nofastboot nofstab nognomepanel nohosts nokpersonalizer nolanguageselector nolocales nonetworking nopowermanagement noprogramcrashes nojockey nosudo noupdatenotifier nouser nopolkitconf noxautoconfig noxscreensaver nopreseed



title  XBMCLive - NVIDIA GPU
kernel /live/vmlinuz boot=live vga=788 xbmc=autostart,tempfs,nodiskmount,setvolume splash quiet loglevel=0 module=nvidia persistent quickreboot quickusbmodules notimezone noaccessibility noapparmor noaptcdrom noautologin noxautologin noconsolekeyboard nofastboot nognomepanel nohosts nokpersonalizer nolanguageselector nolocales nonetworking nopowermanagement noprogramcrashes nojockey nosudo noupdatenotifier nouser nopolkitconf noxautoconfig noxscreensaver nopreseed union=aufs
initrd /live/initrd.img
quiet
boot

title  XBMCLive - NVIDIA GPU, SAFE MODE
kernel /live/vmlinuz boot=live vga=788 xbmc=tempfs,nodiskmount,setvolume quiet loglevel=0 module=nvidia persistent quickreboot quickusbmodules notimezone noaccessibility noapparmor noaptcdrom noautologin noxautologin noconsolekeyboard nofastboot nognomepanel nohosts nokpersonalizer nolanguageselector nolocales nonetworking nopowermanagement noprogramcrashes nojockey nosudo noupdatenotifier nouser nopolkitconf noxautoconfig noxscreensaver nopreseed union=aufs
initrd /live/initrd.img
quiet
boot

title  XBMCLive - ATI/AMD GPU
kernel /live/vmlinuz boot=live vga=788 xbmc=autostart,tempfs,nodiskmount,setvolume splash quiet loglevel=0 module=amd persistent quickreboot quickusbmodules notimezone noaccessibility noapparmor noaptcdrom noautologin noxautologin noconsolekeyboard nofastboot nognomepanel nohosts nokpersonalizer nolanguageselector nolocales nonetworking nopowermanagement noprogramcrashes nojockey nosudo noupdatenotifier nouser nopolkitconf noxautoconfig noxscreensaver nopreseed union=aufs
initrd /live/initrd.img
quiet
boot
...
but nothing seems to be changed; what is the correct file that needs to be edited ?
thx,
___________________________

i found it:
the file to edit is /live/image/syslinux.cfg.
Reply
#2
^ i would still like to know how to add a menu item for booting the win-xp partition ?
Reply
#3
Best to search a real linux forum. I guarantee that's been asked a half-million times.
Reply
#4
^ thanks al, will do...

i think xbmc can be as practical as any real linux.
Reply
#5
I installed a bootable USB from the XBMC Live CD 9.11

I could not find syslinux.cfg. I assume this is because my USB boots with only options, limited to the ION setup I have (Asrock 330)

However, changing 10 to 3 seconds worked in the following file (WINSCP, logged in as root)

./boot/grub/menu.lst
Reply
#6
^ maybe unetbootin did something funky to mine.
thanks for the confirmation.
Reply
#7
hi, i added this to my syslinux.cfg:
Code:
label ubnentry8
menu label win
rootnoverify (hd0,1)
chainloader +1
but it just flashes the screen when i select it in grub. is there any way to boot the internal drive from xbmc's grub screen ?

___________

edit:
thats interesting. it seems to be pre-programmed into this file but my pc doesnt seem to be using it:
Code:
xbmc@XBMCLive:~$ tail -n 15  /live/image/boot/grub/menu.lst
title  ---
root

title Boot Operating System on Hard Disk
root (hd0)
savedefault
makeactive
chainloader +1
quiet
boot

title Memory test (memtest86+)
kernel /live/memtest  
quiet
boot
Reply

Logout Mark Read Team Forum Stats Members Help
[live] how to edit grub menu0