Re: LMDE update, now have boot error

It would be better if you have the livecd or install cd, but you can also use other livecd as well e.g. knoppix. root (hdx,y) setup (hdx) x is the mbr usually points to hd0. y is the partition where your grub stage 1 is, just press the tab key to auto-complete. Let us know if it works. Cheers, Jay On Fri, Sep 27, 2013 at 9:56 AM, Terry Duell <tduell@iinet.net.au> wrote:
Hello Jay,
On Fri, 27 Sep 2013 11:47:16 +1000, Jay Amorin <jeeyessos@gmail.com> wrote:
try to re-install grub onto your mbr.
boot using your distro livecd or rescue mode. some distro would require that you chroot before running grub. then run root (hdx,x) and setup (hdx).
I don't have an LMDE 64 bit livecd. If I can get a livecd, I assume it will have to have the same version of grub. My laptop announces grub version 1.99-27+deb7u1. Also, how can I check what the x in hdx should be? I only have the one distro installed, and probably used the default installation, so hd1 is probably right?
Cheers, -- Regards, Terry Duell

On Fri, 27 Sep 2013 12:41:48 +1000, Jay Amorin <jeeyessos@gmail.com> wrote:
It would be better if you have the livecd or install cd, but you can also use other livecd as well e.g. knoppix.
root (hdx,y) setup (hdx)
x is the mbr usually points to hd0. y is the partition where your grub stage 1 is, just press the tab key to auto-complete.
Let us know if it works.
OK. Just to be sure I correctly understand, I go through the following steps... boot a livecd in a terminal, enter "root (hd0,1)" and, "setup (hd0)" presumably these commands are run as root? Having a look at the grub commands that fail, using edit mode, they have "set root=`(/dev/sda,msdos1)' " Is this the equivalent of what you are proposing? If not could I edit the "set root=..." in first entry of the grub screen, and should it be "set root=`(hd0,1)' " ? Cheers, -- Regards, Terry Duell

On Fri, 27 Sep 2013 12:41:48 +1000, Jay Amorin <jeeyessos@gmail.com> wrote:
It would be better if you have the livecd or install cd, but you can also use other livecd as well e.g. knoppix.
root (hdx,y) setup (hdx)
x is the mbr usually points to hd0. y is the partition where your grub stage 1 is, just press the tab key to auto-complete.
OK, did a bit more research, based on what you have said, and booted live Knoppix. ran the following commands in a terminal, with results as shown (not captured, from notes)... sudo grub grub> find /boot/grub/stage1 error 15 file not found grub> root (hd0,1) filesysystem type unknown, partition type 0x5 grub> setup (hd0) error 17 cannot mount selected partition A look in /boot shows that grub/stage1 exists. Not sure where to go from here. Cheers, -- Regards, Terry Duell

You're almost there. Try to mount all your partition under /mnt and run chroot # mount -t proc none /mnt/proc # mount -o bind /dev /mnt/dev # chroot /mnt /bin/bash # grub grub> root (hd0,1) grub> setup (hd0) Take note that in root(hd0,1) 1 is where your boot partition reside, then your /boot must be in the first partition, then it must be root(hd0,0), always subtract 1. Let us know how it goes. Cheers, Jay On Fri, Sep 27, 2013 at 12:06 PM, Terry Duell <tduell@iinet.net.au> wrote:
On Fri, 27 Sep 2013 12:41:48 +1000, Jay Amorin <jeeyessos@gmail.com> wrote:
It would be better if you have the livecd or install cd, but you can also
use other livecd as well e.g. knoppix.
root (hdx,y) setup (hdx)
x is the mbr usually points to hd0. y is the partition where your grub stage 1 is, just press the tab key to auto-complete.
OK, did a bit more research, based on what you have said, and booted live Knoppix.
ran the following commands in a terminal, with results as shown (not captured, from notes)...
sudo grub
grub> find /boot/grub/stage1 error 15 file not found
grub> root (hd0,1) filesysystem type unknown, partition type 0x5
grub> setup (hd0) error 17 cannot mount selected partition
A look in /boot shows that grub/stage1 exists.
Not sure where to go from here.
Cheers, -- Regards, Terry Duell
participants (2)
-
Jay Amorin
-
Terry Duell