[live] how to edit grub menu

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
schneidz Offline
Fan
Posts: 390
Joined: Jun 2009
Reputation: 0
Post: #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.
(This post was last modified: 2010-05-24 16:57 by schneidz.)
find quote
schneidz Offline
Fan
Posts: 390
Joined: Jun 2009
Reputation: 0
Post: #2
^ i would still like to know how to add a menu item for booting the win-xp partition ?
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,931
Joined: May 2004
Reputation: 12
Post: #3
Best to search a real linux forum. I guarantee that's been asked a half-million times.
find quote
schneidz Offline
Fan
Posts: 390
Joined: Jun 2009
Reputation: 0
Post: #4
^ thanks al, will do...

i think xbmc can be as practical as any real linux.
find quote
Rrrr Offline
Senior Member
Posts: 102
Joined: Mar 2004
Reputation: 0
Post: #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
find quote
schneidz Offline
Fan
Posts: 390
Joined: Jun 2009
Reputation: 0
Post: #6
^ maybe unetbootin did something funky to mine.
thanks for the confirmation.
find quote
schneidz Offline
Fan
Posts: 390
Joined: Jun 2009
Reputation: 0
Post: #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
(This post was last modified: 2010-05-24 22:08 by schneidz.)
find quote