DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.