Mailinglist Archive: opensuse-bugs (10049 mails)

< Previous Next >
[Bug 234158] New: Hard to re-install grub from rescue mode
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 12 Jan 2007 10:28:15 -0700 (MST)
  • Message-id: <bug-234158-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=234158

Summary: Hard to re-install grub from rescue mode
Product: openSUSE 10.2
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Installation
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: ammulder@xxxxxxxxxxxxxxxxxxxx
QAContact: jsrain@xxxxxxxxxx


Due to a different bug, I needed to re-install grub on a system that just
finished the first phase (software installation) of the 10.2 install.

I booted from the install CD and selected rescue mode. It booted into rescue
mode.

On this machine, the hard drive is /dev/hdc and the root partition is
/dev/hdc2.

I tried the following:

mount /dev/hdc2 /mnt
chroot /mnt
grub-install /dev/hdc

This failed with an error like "/dev/hdc: no such device". Indeed, the /dev
partition was virtually empty. It was not obvious how to fix that ("mount
/dev" did not work).

I tried exiting the chroot and running grub-install /dev/hdc from there, and it
failed saying something like "/boot/grub is read-only".

I finally got this to working by noting all the details on /dev/hdc through
/dec/hdc3 in the rescue environment, running the chroot, running all the right
mknod commands, and then running grub-install.

This was really irritating -- as of SuSE 9.x and maybe even 10.0 it was not
necessary to run mknod commands to re-install grub this way -- the /dev area of
the chroot environment was populated enough, I guess. Any advice? (I would
guess re-installing the boot loader was a pretty common use of rescue mode.)


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >
Follow Ups