LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-30-2009, 06:53 AM   #1
Cichlid
Member
 
Registered: Jan 2002
Location: Montreal
Distribution: Ubuntu 8.10
Posts: 178

Rep: Reputation: 30
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
 
Old 05-30-2009, 08:27 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 05-30-2009, 08:45 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I suspect you should be looking at grub-install, not update-grub. In fact, for the sake of your sanity, forget update-grub exists.
 
  


Reply


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
Grub fails to update after a disk change Zup Linux - Software 8 12-21-2008 03:26 PM
Installing GRUB to a floppy disk obnascar Linux - Newbie 1 08-25-2005 02:36 PM
Installing The Grub Bootloader From Rescue Disk sloik2000 Linux - Software 4 01-20-2005 04:38 PM
problems installing grub on sata disk atharh Linux - Hardware 3 09-19-2004 07:22 AM
Grub Fails after installing new IDE disk silversurfer Linux - Newbie 3 03-11-2004 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:36 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
Open Source Consulting | Domain Registration