Mailinglist Archive: opensuse (3605 mails)

< Previous Next >
Re: [SLE] Grub reinstall
  • From: "Greg Freemyer" <greg.freemyer@xxxxxxxxx>
  • Date: Thu, 15 Jun 2006 12:55:03 -0400
  • Message-id: <87f94c370606150955o41c22114s4c7c092d73e8482d@xxxxxxxxxxxxxx>
On 6/15/06, Marlier, Ian <ian.marlier@xxxxxxxxxxxxxxxxxxx> wrote:


> -----Original Message-----
> From: Greg Freemyer [mailto:greg.freemyer@xxxxxxxxx]
> Sent: Thursday, June 15, 2006 12:29 PM
> To: SuseLynuxEnglish
> Subject: [SLE] Grub reinstall
>
> With SUSE 10.0/10.1 what is the correct way to reinstall grub?
>
> I had a hardware issue trying to install SUSE 10.1 on a computer.
>
> Now grub is not booting to a menu. I tried to re-perform the install,
> but it had no impact on grub's booting.
>
> I currently have:
> hda1 - Win2000 boot
> hda5 - NTFS working drive
> hda6 - swap partition (garbage)
> hda7 - / partition (just rewritten with a fresh install)
> hda8 - /home (Just formatted, no users)
>
> I can mount hda7 in rescue mode and it looks fine.
>
> I'm trying from rescue mode to do either:
>
> grub-install /dev/hda7
>
> or
>
> grub
> root (hd0,7)
> setup (hd0)
>
> Both are failing. It seems that SUSE 10.1 does not support the above
> methodology anymore?
>
> I guess I should try some older boot CDs to do the rescue from?
>
> Thanks
> Greg

When you boot does the first stage of grub load?

If you've got a grub config that's got all the requisite information in
it (ie, the location of the /boot/ directory and all), maybe you just
need to do "grub-install /dev/hda" to push the bootloader into the MBR?

(I had to do this recently, and it worked fine; I booted into the rescue
system, mounted the root directory and did a chroot to it, and then did
`grub-install /dev/hda`. That restored the bootloader to fully working
order)


With 10.1 in rescue mode when I do the chroot, it says that /dev/hda
no longer exists. ie. even fdisk -l /dev/hda fails.

My assumption is that with 9.2, 10.0, 10.1 /dev is dynamic and built
during the boot process. So when I chroot I basically lose the
ability to see my drive.

I've got SUSE 9.2 booted into rescue mode right now. With it I tried
the chroot approach and I get:
# grub-install /dev/hda7
/dev/hda7 does not exist or is not a block device.
# grub
root (hd0,7)
Selected device does not exist (IIRC, its in another room)

FYI: I also tried to boot 8.2 to rescue mode, but it does not display
on the flat-screen monitor I currently have attached.

Greg
--
Greg Freemyer
The Norcross Group
Forensics for the 21st Century

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx


< Previous Next >
References