Posts: 1,388
Joined: Aug 2009
Reputation:
17
Hi,
XBMCLive question for you...
I want to grab a backup of the grub bootloader however when to exit out to a terminal and run the command 'sudo gedit /boot/grub/menu.lst' i get the error 'sudo: gedit: command not found'.
Any ideas?
Cheers
Posts: 1,388
Joined: Aug 2009
Reputation:
17
'sudo pico /boot/grub/menu.lst' worked instead.
Posts: 1,388
Joined: Aug 2009
Reputation:
17
nope, still lost!
Can anyone tell me how to backup the grub bootloader menu.1st file to an external drive?
Thanks
Posts: 1,388
Joined: Aug 2009
Reputation:
17
LOL... has anyone guessed i'm a Windows man!
Posts: 156
Joined: Jan 2011
Reputation:
1
Gedit won't work as it's not installed on the live system. Pico should work, when you say it did and then it didn't, what happened?
I don't actually have a Live install built yet, but are nano and/or vim installed? Maybe try using one of those instead?
You say you're a Windows user. How are you connecting to the Live box to run these commands, a terminal or SSH? If SSH, grab a copy of WinSCP and connect the same as you would connect via SSH, browse to /boot/grub in the right panel and copy menu.lst into the left panel and it'll be moved onto your machine.
If via terminal, and you don't have SSH enabled or SMB shares on the box, the best option for backing it up is probably a USB pen drive.
Posts: 44
Joined: Jan 2010
Reputation:
0
aeiah
Junior Member
Posts: 44
its lst, not 1st (lst as in LIST not as in FIRST)
does this help?
sudo gedit won't work because you dont have gedit on a (mostly) cli driven system. but pico or nano will
but you dont really need to edit the file anyway, only copy it. you need to mount a drive and then copy it with the cp command. or alternativley, use winscp to connect to your system and do everything with a gui.
Posts: 1,388
Joined: Aug 2009
Reputation:
17
Mine is named menu.1st. When trying to copy to a mounted usb stick (using 'cp /boot/grub/menu.1st ~/MyUSB/') i get permission denied. Also get the same if try copying directly to the stick.
Checking google now however if anyone has any bright ideas, feel free to post.
Cheers
Posts: 1,388
Joined: Aug 2009
Reputation:
17
2011-02-18, 18:15
(This post was last modified: 2011-02-18, 18:18 by liquidskin76.)
Ah, ok i need to be logged in as root.
[EDIT:] yeah, that did it.
Posts: 2,145
Joined: Jul 2008
Reputation:
12
It's not even lst. It's grub.cfg. lst is a grub1 thing. It probably got renamed menu.1st so that it wasn't accidentally used.
Ubuntu has grub2 default since probably 9.10
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Posts: 1,388
Joined: Aug 2009
Reputation:
17
Yeah, i've since figured that. Not sure why I had a menu.1st? Maybe due to the fact I was previously playing around with easybcd in the Windows dual boot install. I might have installed grub1 from there.