LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-01-2008, 10:28 PM   #1
will_from_oz
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Rep: Reputation: 0
Question STILL can't edit GRUB


Hi,
I have a dual boot with vista and Ubuntu installed the GRUB boot manager. Must have, when powering up it goes to GRUB Installer and brings up the boot choices. I would like Vista to be default (it isn't)
I CANNOT edit the damn thing. Have read threads till my eyes got swollen, tried all the things such as running Gedit etc.
Trouble is, nothing seems able to find the grub file OR the grub.lst file. It keeps insisting it's not there.
Now, this was a straight install from the Ubuntu 8.04 CD, I just picked all the default or obvious choices, so why me??
If anyone can help, please do it with step by step instructions, rightly assuming that I am totally ignorant about everything.

Hoping for your help
Will_from_oz
 
Old 12-01-2008, 10:34 PM   #2
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
what about
Code:
sudo gedit /boot/grub/menu.lst
 
Old 12-02-2008, 12:43 AM   #3
will_from_oz
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for that Nathan.
However, I don't have sudo and a quick look at the website showed me I was not up to downloading, compiling etc.
If I DO have it stuck somewhere on my system, where is it likely to be, how do I access it etc.
Thanks again
Will
 
Old 12-02-2008, 12:54 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
Every Ubuntu installation has sudo package installed by default. You need to a member of wheel group to use sudo. Add yourself to the group and you will be able to use sudo.
 
Old 12-02-2008, 12:56 AM   #5
will_from_oz
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Lightbulb

Oops, sorry. Just realised, go to terminal and execute. That works. Now haven't got a clue how to promote Vista to the default boot though.
Help again please

will_from_oz
 
Old 12-02-2008, 01:02 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
There is an option for providing the default boot option called "default".
Just look where the entry for Vista is in menu.lst and enter the value accordingly.
If listing for Ubuntu is before Vista then you should enter the default value to 1. So it will boot to Vista rather than in Ubuntu by default.
 
Old 12-02-2008, 01:03 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,280

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Run this - it will give us the info to help you
Code:
grep -iE "(default|title)" /boot/grub/menu.lst
 
Old 12-02-2008, 01:05 AM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Is there an entry that says something like "default 3"

If so, change it so that the 3 corresponds to the entry for Vista (note that numbering starts at 0).

If not, add a line before the first OS entry with "default 3" with the relevant number of course.

If you are having trouble post your menu.lst.
 
Old 12-02-2008, 01:24 AM   #9
will_from_oz
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Question running gedit

Here are the options????????? from bootlst

title Ubuntu 8.04.1, kernel 2.6.24-21-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=aec004f8-9006-40c5-9a61-b75f00f93e27 ro quiet splash
initrd /boot/initrd.img-2.6.24-21-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=aec004f8-9006-40c5-9a61-b75f00f93e27 ro single
initrd /boot/initrd.img-2.6.24-21-generic

title Ubuntu 8.04.1, kernel 2.6.24-16-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=aec004f8-9006-40c5-9a61-b75f00f93e27 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=aec004f8-9006-40c5-9a61-b75f00f93e27 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04.1, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1

Dammed if I can work out how it defaults and where the delay is set etc.
The only thing that has a 1 seems to be Longhorn
 
Old 12-02-2008, 01:28 AM   #10
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Looks like the 6th entry is Vista, so add

default 5
timeout 5

to make it wait 5 seconds before loading the default.

These should go before the first OS entry (ie above what you've shown)
 
Old 12-02-2008, 01:41 AM   #11
will_from_oz
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Smile

Beauty!!!
Haven't quite got it yet though, selected line is the "other operating systems" one, so should I now make it default=6?????
 
Old 12-02-2008, 02:01 AM   #12
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try counting again (to check me) - if it's the 6th, "default 5" is the entry - count starts from 0
 
Old 12-02-2008, 02:10 AM   #13
will_from_oz
LQ Newbie
 
Registered: Dec 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs up success at last

Yup, 6 it is and it's working like magic.
Thanks a lot everyone for helping a newbie.
Hard to believe I started this kind of thing in 1980, designing hardware and programming in basic, 6502, 62000 and dabbling in C++
Hadn't realised how many brain cells had called it a day.

Thanks again
Will_from_oz
 
Old 12-02-2008, 03:03 AM   #14
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
Hi,

Yes your xp entry is on 7th and actual numbering starts from 0

default=6 is the right choice...


and make timeout=10 to at least have a look during selection.. but thats all up to your choice...


Cheers!!
 
  


Reply

Tags
grub config


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to edit grub.conf from grub shell during booting pashaikh Linux - Security 1 06-27-2006 05:01 AM
How do you edit GRUB? adamt56 Linux - Newbie 7 09-01-2004 07:48 PM
Trying to edit my grub mranderson Red Hat 1 11-25-2003 09:07 PM
edit grub digital bots Linux - Newbie 5 11-09-2002 12:09 AM
GRUB edit? walid97 Linux - Newbie 2 10-04-2002 12:07 PM


All times are GMT -5. The time now is 01:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration