Main Page | Report this Page
 
   
Linux Forum Index  »  General Linux Discussion  »  How do I change Grub settings in Ubuntu 8.04...
Page 1 of 1    
Author Message
Simon...
Posted: Tue Jul 08, 2008 8:56 pm
Guest
I initially had a PC with XP.
Then I got a second hard drive installed and put Ubuntu 8.04 on it.

Now when I boot up it's default is Linux. I have tried to change it
using the command line interface but I don't really know what I'm doing.

Here's a cut n paste of the 2 methods I have tried
from helpful websites:

************start*************
simon at (no spam) simon:~$ sudo gedit /boot/grub/menu.lst
sudo: unable to resolve host simon
simon at (no spam) simon:~$

So that didn't work so then I tried to use the Grub command:


completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub> root (hd0,0)

Error 21: Selected disk does not exist

grub> root (hd0,1)

Error 21: Selected disk does not exist

grub> root (hd1,0)

Error 21: Selected disk does not exist

grub> root (hd1,1)

Error 21: Selected disk does not exist

grub> setup (hd0)

Error 12: Invalid device requested

grub>

****************end*************
So I was pretty lost after that.
I made sure that windows had shutdown properly as I often use hibernate.
I also remember years ago being able to do this without command line
entries. It was either Mandrake or Debian and I may have changed
something in BIOS.

I am not too sure about Ubuntu, most of these newsgroups talk about
other Linux flavours. The only reason I loaded it was because it came
on the DVD with my local PC Magazine ( www.pcworld.co.nz )

Is there a better version which doesn't require the command line so much?
And what about the above commands?

thanks

Simon
Day Brown...
Posted: Wed Jul 09, 2008 3:17 am
Guest
You mite try PART.EXE, a dos program that I've used to rewrite the MBR
to set the default boot. PART dont care what the OS is. It includes a
test mode so you can see what it'd look like before you do anything.
VWWall...
Posted: Wed Jul 09, 2008 11:50 am
Guest
Simon wrote:
Quote:
I initially had a PC with XP.
Then I got a second hard drive installed and put Ubuntu 8.04 on it.

Now when I boot up it's default is Linux. I have tried to change it
using the command line interface but I don't really know what I'm doing.

Here's a cut n paste of the 2 methods I have tried
from helpful websites:

************start*************
simon at (no spam) simon:~$ sudo gedit /boot/grub/menu.lst
sudo: unable to resolve host simon
simon at (no spam) simon:~$


You're on the right track--you have to edit /boot/grub/menu.lst

I don't know why gedit doesn't work. Are you sure it's the editor in
your distro?

Just change the default to the OS you want as the default.
(It's zero based, so default 0 is for the first entry.

Quote:
So that didn't work so then I tried to use the Grub command:

This is used to change where GRUB puts its stage1. You want to leave it
in the MBR, and change just the menu.lst.

Someone more famaliar with Ubuntu and gnome may be able to help you get
to an editor that works. You do have to have root privileges.

--
Virg Wall
gnu/linux...
Posted: Sat Jul 12, 2008 12:47 pm
Guest
On Jul 9, 11:50 am, VWWall <vw... at (no spam) large.invalid> wrote:
Quote:
Simon wrote:
I initially had a PC with XP.
Then I got a second hard drive installed and put Ubuntu 8.04 on it.

Now when I boot up it's default is Linux. I have tried to change it
using the command line interface but I don't really know what I'm doing..

Here's a cut n paste of the 2 methods I have tried
from helpful websites:

************start*************
simon at (no spam) simon:~$ sudo gedit /boot/grub/menu.lst
sudo: unable to resolve host simon
simon at (no spam) simon:~$

You're on the right track--you have to edit /boot/grub/menu.lst

I don't know why gedit doesn't work.  Are you sure it's the editor in
your distro?

Just change the default to the OS you want as the default.
(It's zero based, so default 0 is for the first entry.

So that didn't work so then I tried to use the Grub command:

This is used to change where GRUB puts its stage1.  You want to leave it
in the MBR, and change just the menu.lst.

Someone more famaliar with Ubuntu and gnome may be able to help you get
to an editor that works.  You do have to have root privileges.

--
Virg Wall

~menu.lst is the file all right, nano is a good editor
Simon...
Posted: Tue Jul 15, 2008 3:54 am
Guest
gnu/linux wrote:
Quote:
On Jul 9, 11:50 am, VWWall <vw... at (no spam) large.invalid> wrote:
Simon wrote:
I initially had a PC with XP.
Then I got a second hard drive installed and put Ubuntu 8.04 on it.
Now when I boot up it's default is Linux. I have tried to change it
using the command line interface but I don't really know what I'm doing.
Here's a cut n paste of the 2 methods I have tried
from helpful websites:
************start*************
simon at (no spam) simon:~$ sudo gedit /boot/grub/menu.lst
sudo: unable to resolve host simon
simon at (no spam) simon:~$
You're on the right track--you have to edit /boot/grub/menu.lst

I don't know why gedit doesn't work. Are you sure it's the editor in
your distro?

Just change the default to the OS you want as the default.
(It's zero based, so default 0 is for the first entry.

So that didn't work so then I tried to use the Grub command:
This is used to change where GRUB puts its stage1. You want to leave it
in the MBR, and change just the menu.lst.

Someone more famaliar with Ubuntu and gnome may be able to help you get
to an editor that works. You do have to have root privileges.

--
Virg Wall

~menu.lst is the file all right, nano is a good editor

I will look into it.


Thanks
Claude Hopper...
Posted: Wed Jul 16, 2008 4:55 pm
Guest
Simon wrote:
Quote:
I initially had a PC with XP.
Then I got a second hard drive installed and put Ubuntu 8.04 on it.

Now when I boot up it's default is Linux. I have tried to change it
using the command line interface but I don't really know what I'm doing.

Here's a cut n paste of the 2 methods I have tried
from helpful websites:

************start*************
simon at (no spam) simon:~$ sudo gedit /boot/grub/menu.lst
sudo: unable to resolve host simon
simon at (no spam) simon:~$

So that didn't work so then I tried to use the Grub command:


completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub> root (hd0,0)

Error 21: Selected disk does not exist

grub> root (hd0,1)

Error 21: Selected disk does not exist

grub> root (hd1,0)

Error 21: Selected disk does not exist

grub> root (hd1,1)

Error 21: Selected disk does not exist

grub> setup (hd0)

Error 12: Invalid device requested

grub

****************end*************
So I was pretty lost after that.
I made sure that windows had shutdown properly as I often use hibernate.
I also remember years ago being able to do this without command line
entries. It was either Mandrake or Debian and I may have changed
something in BIOS.

I am not too sure about Ubuntu, most of these newsgroups talk about
other Linux flavours. The only reason I loaded it was because it came
on the DVD with my local PC Magazine ( www.pcworld.co.nz )

Is there a better version which doesn't require the command line so much?
And what about the above commands?

thanks

Simon

Why don't you install Kgrubeditor into KDE and change the default boot
to Windows. In Gnome it's Grub Conf.

--
Claude Hopper ? 3 Smile 7/8
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Sat Nov 22, 2008 1:07 pm