Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-30-2009, 06:53 AM
|
#1
|
Member
Registered: Jan 2002
Location: Montreal
Distribution: Ubuntu 8.10
Posts: 178
Rep:
|
update-grub installing on ram disk instead of hda
Hi All,
Trouble shooting a grub install after moving an resizing partitions and install winxp along side a stable Ubuntu 8.04 system.
I found that all directions I followed do their thing, however, grub keeps creating menu.lst on the ubuntu ramdisk that is created from the liveCD. I keep thinking it has found the real /boot/grub directory but that is never the one updated.
How can I correct for this. Since whenever I reboot, the ramdisk directory is gone.
Thank you
|
|
|
05-30-2009, 08:27 AM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
You could either use chroot to start running from the hard drive instead of the live distro; or when the grub menu first comes up, enter the grub shell and select the kernel and initrd file from the hard drive. Enter the correct root line, for where the partition is now. If the /etc/fstab file uses the drive ID's or UUIDs instead of the device nodes in the first column for the partitions, then you will be able to boot up without having to first edit the fstab file.
After booting, you will need to edit the value of the "root <dev>" line of grub's menu.lst file to reflect the partitions' new locations.
The /etc/fstab file needs to be correct to be able to boot successfully without dropping out into the maintenance shell. The menu.lst file needs to be correct for re-installing the grub boot loader.
You can install the grub bootstrap loader to the MBR of your hard drive or to the MBR of the partition you moved. If doing the later, you can follow the instructions (look in google for "nt grub dual boot") to modify the BOOT.INI file of windows to chainload the grub loader, but cutting out the partition's MBR to a file on the Windows C:\ drive and adding an entry in C:\BOOT.INI. If you had vista, this would work as well. Even though Vista doesn't have a BOOT.INI file by default, if you create one, it will be used.
|
|
|
05-30-2009, 08:45 AM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,380
|
I suspect you should be looking at grub-install, not update-grub. In fact, for the sake of your sanity, forget update-grub exists.
|
|
|
All times are GMT -5. The time now is 08:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|