Re: [Hampshire] windows grub repair suse 10.2

Top Page
Author: David Ramsden
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] windows grub repair suse 10.2

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x569af100.hantslug.org.uk.19744': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Sun Jan 6 01:16:31 2008 GMT
gpg: using DSA key B15F69BD3454B217
gpg: Can't check signature: No public key
m.nuttall@??? wrote:
[big snip]
>
> right the terminal output is this:
>
> "ubuntu@ubuntu:~$ sudo mkdir /mnt/newroot
> ubuntu@ubuntu:~$ sudo mount /dev/hda7 /mnt/newroot
> ubuntu@ubuntu:~$ sudo chroot /mnt/newroot
> ubuntu:/# grub-install /dev/hda
> /dev/hda: Not found or not a block device.
> ubuntu:/# fdik -l
> bash: fdik: command not found
> ubuntu:/# fdisk -l
> cannot open /proc/partitions
> ubuntu:/# "
>


Have you looked at the HantsLUG wiki? There's a note on there about how
to restore LILO. The same applies when using GRUB. Ignore step 9 and at
step 10 you want to run your "grub-install" command instead of running
"lilo".

http://www.hants.lug.org.uk/cgi-bin/wiki.pl?LinuxHints/LostLILO

You'll probably find your grub-install and fdisk commands failed because
/proc and /dev aren't mounted inside the chroot, so /dev/hda et al
dosen't exist. Step 6 brings /dev from the LiveCD you're using in to
your chroot. This is what you're missing.

Nearly there!

Regards,
David.
-- 
  .''`.     David Ramsden
: :'  :    http://0wned.it/
`. `'`     PGP key ID: 3454B217 on wwwkeys.eu.pgp.net
   `-  Debian - Because it works (tm).