LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-28-2008, 10:29 AM   #1
truth believer
LQ Newbie
 
Registered: Dec 2008
Location: Tehran, Iran
Distribution: Mandriva - DSL
Posts: 17

Rep: Reputation: 1
how to configure grub from a live CD


I have installed ubuntu 8.10 and grub is installed in MBR. I could run both ubuntu and windows after that, but I changed grub configuration from ubuntu.

because I wanted the other people on my family who use this computer to be easily able to go directly into windows, I changed the default os to windows and I wanted to set the delay time before loading the default os to the least possible, so I made that 0.

after that I can't boot into ubuntu. I thought it's possible to override the default by pressing a key before it comes to load grub, so, that key be pressed while grub is loaded and grub gets it, so I can load ubuntu. what can I do? from a live CD or anything else. Thanks.

Last edited by truth believer; 12-28-2008 at 10:32 AM.
 
Old 12-28-2008, 10:48 AM   #2
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
Quote:
Originally Posted by truth believer View Post
I changed the default os to windows and I wanted to set the delay time before loading the default os to the least possible, so I made that 0.
The point of the "delay time", strangely enough, is to allow you to choose something from the grub menu. While the delay counts (it says something like "GRUB: booting default windows in 3 seconds) you can hit any key to get the menu. Or you can remove "hidden menu" and you will actually see the menu for three seconds.

But if the delay is 0 you can't.
 
Old 12-28-2008, 11:40 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
reinstall grub from the Ubuntu Cd

or simply boot a live cd and edit /boot/grub/menu.lst as per above post (set delay to 30 secs )
 
Old 12-28-2008, 12:34 PM   #4
truth believer
LQ Newbie
 
Registered: Dec 2008
Location: Tehran, Iran
Distribution: Mandriva - DSL
Posts: 17

Original Poster
Rep: Reputation: 1
I went through live CD and I changed menu.lst but it didn't work. I know if I changed menu.lst it must work because grub reads from it.

I changed timeout (delay time) to 10 and made the line that was saying (something about) "hiddenmenu" commented , to get not executed. Stranger than ever is that menu.lst contained no entry for windows.

It had some entries to open linux on first partition of the first hard drive, which is windows not ubuntu. I made some changes to have it point to linux drive either. I'm not sure if I was correct or not, but at least grub should show the menu, then let me choose of the wrong entries.

please tell me how to reinstall grub from ubuntu CD or to have it prepare some entries for itself, like it did when ubuntu was being installed.
 
Old 12-28-2008, 12:39 PM   #5
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
If you open /boot/grub/menu.lst while using a Live CD, and depending on the Live CD you are using, that file either won't exist or it will be the menu.lst for the Live CD, not your Ubuntu on your HDD. Are you sure you edited the menu.lst in your Ubuntu install? How about doing:
Code:
sudo fdisk -l
And find which is your Ubuntu partition in the form sdaX (like sda5 for example), and then do:
Code:
sudo mount /dev/sdaX /mnt
gksudo gedit /mnt/boot/grub/menu.lst
But replace sdaX with the Ubuntu partition. Then you should get your Ubuntu menu.lst. How about giving that a shot and let me know how it goes.
 
Old 12-28-2008, 02:04 PM   #6
truth believer
LQ Newbie
 
Registered: Dec 2008
Location: Tehran, Iran
Distribution: Mandriva - DSL
Posts: 17

Original Poster
Rep: Reputation: 1
It worked. Thank you very much.
 
Old 12-28-2008, 02:17 PM   #7
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
You're welcome, glad that did the trick. Cheers and have fun with Ubuntu.
 
  


Reply

Tags
grub


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
configure to use in a live cd mariogarcia Linux - Kernel 0 08-10-2007 10:59 AM
Trying to Configure DNTV Live Pro TV Card Pretzal Ubuntu 1 04-29-2006 06:25 AM
dont know how to configure my net connection for SLAX live cd Evil.Live Linux - Newbie 1 04-16-2006 05:40 PM
how to configure at suse live dvd enigmatech Linux - Newbie 1 09-08-2005 06:43 PM
How to configure sound blaster live 24 lilloraffa Fedora 6 02-21-2005 11:11 AM


All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration