LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-22-2009, 02:53 PM   #16
helpinghand
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 1

I've stumbled upon this message while I was searching to solve a completely different problem related to grub2.
First grub.cfg and menu.lst are two completely different beasts, don't try to rename them or you will loose any chance to come back to your original configuration soon.
grub and grub2 must always be installed on your MBR before booting, so installing them is necessary but not sufficient .
After installation you must enter
Code:
grub-install /dev/sda  (or hda, or anything you have).
BTW grub2 is in development and is really useful only if you want some of its new features like ext4 support. If you are not interested stick with grub. If you want to configure grub2 you must edit these files: /etc/default/grub and /etc/grub.d/xxx.
Modifying /boot/grub/grub.cfg is useless since it is generated by
Code:
update-grub
from the content inside the aforementioned files. Hope this helps. Bye

Last edited by helpinghand; 07-22-2009 at 02:56 PM.
 
Old 07-22-2009, 03:03 PM   #17
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
any ideas?
 
Old 07-22-2009, 03:05 PM   #18
helpinghand
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 1
Quote:
Originally Posted by jackgu1988 View Post
but how can i re-install grub to my pc while i am booting from a usb?
If you have a live CD or something similar in an USB pen, let's say Ubuntu or Knoppix, you can boot from it then:
Code:
1) mount /dev/your_drive /mnt/some_point
2) mount -t proc none /mnt/some_point/proc
3) mount -o bind /dev /mnt/some_point/dev
4) chroot /mnt/some_point/
5) grub-install /dev/name_of_device
if you have not grub installed, you can download the package from Internet, copy it in /mnt/some_point
and then:
use your package manager to install it, after go to point 5)
Bye
 
Old 07-22-2009, 03:11 PM   #19
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/AntiX/Arco/Sparky/Hexagon
Posts: 5,225

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Thanks Helpinghand
My grub2 experience is not good
Welcome to LQ as well
 
Old 07-22-2009, 03:34 PM   #20
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
YES YES YES! that was it! thank you! you just saved my pc! i really can't figure out why that happened and i couldn't boot with grub2.......
 
Old 07-22-2009, 03:38 PM   #21
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/AntiX/Arco/Sparky/Hexagon
Posts: 5,225

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
That's good
i apologize if I steered you wrong
Seems helpinghand is a good name.

you should get together with niravshah
he's also having issues with grub2

http://www.linuxquestions.org/questi...intrid-741461/
 
Old 07-22-2009, 04:09 PM   #22
jackgu1988
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: 16
yeah but he seems to be having a more serious problem... anyway i ll try to help him! thanks for your help both of you! PROBLEM SOLVED!
 
Old 07-22-2009, 04:39 PM   #23
helpinghand
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 1
Quote:
Originally Posted by linus72 View Post
Thanks Helpinghand
My grub2 experience is not good
Welcome to LQ as well
Thank you. Today I have struggled against ext4, grub2 and MBR stuff solving almost everything and making myself a little knowledge on this topic. I'm happy that at least my efforts have been useful to someone else.
 
Old 07-22-2009, 04:52 PM   #24
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/AntiX/Arco/Sparky/Hexagon
Posts: 5,225

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
No doubt
I'm preparing myself now to
install all this and have it all work

sda1 /boot (must have this with fed11)
sda2 fedora 11 lxde / ext4
sda3 ulimate-2.2 / ext3 (ubuntu-9.04)
sda4 extended
sda5 sidux-xfce / ext3 (Debian SID)
sda6 Slackware current or 12.2 / ext3
sda7 CentOS-5.3 / ext3
sda8 Various frugal's including puppy/tinycore/etc / ext3
sda9 swap

I will install ultimate last
and fed11 first

CentOS and fed11 so i can learn about redhat, etc

Any others I should add?
 
Old 07-23-2009, 03:16 AM   #25
helpinghand
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 1
Quote:
Originally Posted by linus72 View Post
No doubt
I'm preparing myself now to
install all this and have it all work

sda1 /boot (must have this with fed11)
sda2 fedora 11 lxde / ext4
sda3 ulimate-2.2 / ext3 (ubuntu-9.04)
sda4 extended
sda5 sidux-xfce / ext3 (Debian SID)
sda6 Slackware current or 12.2 / ext3
sda7 CentOS-5.3 / ext3
sda8 Various frugal's including puppy/tinycore/etc / ext3
sda9 swap

I will install ultimate last
and fed11 first

CentOS and fed11 so i can learn about redhat, etc

Any others I should add?
A lot of happy hacking! Good luck!
 
Old 07-24-2009, 09:13 AM   #26
BobRobertson
LQ Newbie
 
Registered: Jul 2002
Location: Rocky Mount, North Carolina
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by helpinghand View Post
If you have a live CD or something similar in an USB pen, let's say Ubuntu or Knoppix, you can boot from it then:
Code:
1) mount /dev/your_drive /mnt/some_point
2) mount -t proc none /mnt/some_point/proc
3) mount -o bind /dev /mnt/some_point/dev
4) chroot /mnt/some_point/
5) grub-install /dev/name_of_device
if you have not grub installed, you can download the package from Internet, copy it in /mnt/some_point
and then:
use your package manager to install it, after go to point 5)
Bye
Ok, this is my third edit, I think I finally have a handle on what is failing.

In /boot/grub/grub.cfg, there is a UUID on each boot image line. The error I'm getting on boot is that there is no such UUID found.

update-grub run over and over, and it doesn't make any difference.

Any suggestions?

Last edited by BobRobertson; 07-24-2009 at 09:41 AM.
 
Old 07-24-2009, 10:02 AM   #27
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/AntiX/Arco/Sparky/Hexagon
Posts: 5,225

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I was reading something yesterday about grub2 changing the uuid's
I'll try and find it
but here's some info
http://flossexperiences.wordpress.co...nty-and-grub2/
 
Old 07-24-2009, 06:38 PM   #28
BobRobertson
LQ Newbie
 
Registered: Jul 2002
Location: Rocky Mount, North Carolina
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Ok, here's where it stands.

Edit /etc/default/grub and fix this line:

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID=true

Then run update-grub, of course.

That takes the UUID and replaces it with the device. All well and good, happy to say that part works fine.

However, this is the resulting part of /boot/grub/grub.cfg:

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30-1-686" {
set root=(hd0,1)
search --no-floppy --fs-uuid --set 8946a06a-195e-4e5d-ba10-5ebc16dbf84b
linux /boot/vmlinuz-2.6.30-1-686 root=/dev/hda1 ro quiet
initrd /boot/initrd.img-2.6.30-1-686

It still won't boot. The UUID in the "search" line still causes a "device 8946a06a-195e-4e5d-ba10-5ebc16dbf84b not found" error and it won't boot.

If I hit "e" and simply remove the entire "search" line, it boots just fine.

So now, the search is on to find out how to get rid of the UUID in the search line without hand-editing /boot/grub/grub.cfg

Last edited by BobRobertson; 07-24-2009 at 06:41 PM.
 
Old 07-24-2009, 07:36 PM   #29
BobRobertson
LQ Newbie
 
Registered: Jul 2002
Location: Rocky Mount, North Carolina
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Just to put another knicker in the twist, I checked my Lenny laptop which is running Grub2, UUIDs and all, and works just fine.

So the source of this UUID problem, which according to the Debian-user mailing list is happening to quite a few people, should be interesting for someone to track down.
 
Old 07-25-2009, 08:22 PM   #30
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 18/ TC64
Posts: 5,301

Rep: Reputation: Disabled
hi

one should not install grub2 if you are using ext4 atm.

my grub2 link in signature may help others?

regards
 
  


Reply

Tags
grub2


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
will the ltmodem drivers work in debian sid (knoppix sid) maximalred Debian 5 05-29-2009 10:44 AM
Debian Sid Sound Problem rockymaxsource Linux - Hardware 3 09-24-2006 11:51 AM
Debian SID problem horatiub Debian 5 09-18-2005 03:48 PM
Problem with java in Debian (sid) yarjar Debian 2 06-19-2005 01:52 AM
Gnome 2.6 problem on Debian Sid(2.6.4) rmanocha Linux - Software 1 05-06-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:58 AM.

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