Re: [Hampshire] windows grub repair suse 10.2

Top Page

Reply to this message
Author: m.nuttall
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] windows grub repair suse 10.2

Hello,

Sorry for the ridiculously long gap for the reply. Windows ntldr wouldnt boot 2k
and xp at the same time so focused time on that and in turn forgot about grub.

Author: John Cooper
Date: 2008-01-11 21:06 -000
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] windows grub repair suse 10.2
m.nuttall@??? wrote:
> Quoting John Cooper <lug@???>:
>
>
>> m.nuttall@??? wrote:
>>
>>>> What is the output of
>>>> # fdisk -l
>>>>
>>>>
>>> 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:/# "
>>>
>>>
>> Try
>>
>> mount -a
>> fdisk -l

I take it you missed my last post, so here it is again :-

mkdir /mnt/newroot
mount /dev/hda7 /mnt/newroot

# This is the missing bit
mount -o bind /dev /mnt/sysimage/dev

chroot /mnt/newroot
mount -a

NOTE: My /etc/fstab has my /boot as a LABEL=/boot and this didn't get
mounted, so had to mount it manually :-
mount /dev/YOURBOOTPARTITIONHERE /boot

fdisk -l

--
--------------------------------------------------------------
Discover Linux - Open Source Solutions to Business and Schools
http://discoverlinux.co.uk


Right so this is what happened when i tried the above.

ubuntu@ubuntu:~$ sudo mkdir /mnt/newroot
ubuntu@ubuntu:~$ sudo mount /dev/hda7 /mnt/newroot
ubuntu@ubuntu:~$ sudo mount -o bind /dev/mnt/sysimage/dev
mount: can't find /dev/mnt/sysimage/dev in /etc/fstab or /etc/mtab
ubuntu@ubuntu:~$ sudo mount /dev/hda7 /boot
ubuntu@ubuntu:~$ sudo mount -o bind /dev/mnt/sysimage/dev
mount: can't find /dev/mnt/sysimage/dev in /etc/fstab or /etc/mtab
ubuntu@ubuntu:~$ chroot /mnt/newroot
chroot: cannot change root directory to /mnt/newroot: Operation not permitted
ubuntu@ubuntu:~$ sudo chroot /mnt/newroot
ubuntu:/# mount -a
mount: special device /dev/hda6 does not exist
mount: special device /dev/hda1 does not exist
mount: special device /dev/hda2 does not exist
mount: special device /dev/sdb1 does not exist
mount: special device /dev/sdb2 does not exist
mount: special device /dev/hda5 does not exist
mount: special device /dev/hda8 does not exist
mount: special device /dev/hdb5 does not exist
mount: special device /dev/hdb6 does not exist
mount: special device /dev/hdb7 does not exist
mount: special device /dev/hdb8 does not exist
mount: special device /dev/hdb9 does not exist
mount: special device /dev/sdc1 does not exist
ubuntu:/# fdisk -l
cannot open /proc/partitions
ubuntu:/# sudo fdisk -l
cannot open /proc/partitions
ubuntu:/#


Suse root partition cam up on the ubuntu desktop but the sysimage mounting didnt
work.

Anything further tweaks to continue?

Thanks for your time,

Martin N



----------------------------------------------
This mail sent through http://www.ukonline.net