[NBLUG/talk] grub menu will not load

Ryan Culley rculley at gmail.com
Mon Dec 27 16:47:35 PST 2004


knoppix at ttyp0[knoppix]$ mount -o rw /dev/hda3 /mnt/hda3
mount: only root can do that
knoppix at ttyp0[knoppix]$ su
root at ttyp0[knoppix]# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root at ttyp0[knoppix]# mount -o rw /dev/hda3 /mnt/hda3
root at ttyp0[knoppix]#
root at ttyp0[knoppix]# grub-install --root-directory=/mnt/hda3 /dev/hda
Due to a bug in xfs_freeze, the following command might produce a segmentation
fault when /mnt/hda3/boot/grub is not in an XFS filesystem. This error
is harmless and
can be ignored.
xfs_freeze: specified file ["/mnt/hda3/boot/grub"] is not on an XFS filesystem
Installation finished. No error reported.
This is the contents of the device map /mnt/hda3/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)   /dev/hda
root at ttyp0[knoppix]#

I have my lovely GRUB menu again.  I wonder what happened to it in the
first place.

Thanks for your help guys!

On Mon, 27 Dec 2004 16:25:46 -0800, Kyle Rankin <kyle at nblug.org> wrote:
> On Mon, Dec 27, 2004 at 07:17:13PM -0500, Ryan Culley wrote:
> > Maybe I didn't successfully re-install GRUB?  Previously, i used this command:
> >
> > root at Knoppix:/ # grub-install root-directory=/dev/hda3
> >
> > ...and it took, but maybe should I have run:
> >
> > root at Knoppix:/ # grub-install root-directory=/dev/hda3 /dev/hda
> > More than one install_devices?
> > /sbin/grub-install: line 59: cannot create temp file for here
> > document: Read-only file system
> > root at Knoppix:/ #
> >
> > ... as you can see I have a permissions problem.  Does anyone know if
> > I should use the latter or former command and why?
> >
> > Thanks,
> > Ryan
> > 
> [snip]
> You should use the latter command so that grub knows explicitly where you
> want to install the boot code. However if you are doing this under Knoppix
> you need to make sure that /dev/hda3 is mounted read-write, and also you
> need to specify /mnt/hda3 as the root-directory, _not_ /dev/hda3:
>    mount -o rw,remount /dev/hda3 /mnt/hda3
> if it's already mounted or
>    mount -o rw /dev/hda3 /mnt/hda3
> if it isn't. Then run:
>    grub-install --root-directory=/mnt/hda3 /dev/hda
> If this doesn't work though, I'd still check that LBA mode is enabled for
> that drive in your BIOS.
> --
> Kyle Rankin
> NBLUG President
> The North Bay Linux Users Group
> http://nblug.org
> IRC: greenfly at irc.freenode.net #nblug
> kyle at nblug.org
> _______________________________________________
> talk mailing list
> talk at nblug.org
> http://nblug.org/cgi-bin/mailman/listinfo/talk

More information about the talk mailing list