LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Yikes!!! Installing grub hurt my Slackware installation! (https://www.linuxquestions.org/questions/slackware-14/yikes-installing-grub-hurt-my-slackware-installation-860683/)

Robert.Thompson 02-04-2011 07:58 AM

Yikes!!! Installing grub hurt my Slackware installation!
 
Hello:

When I installed Slackware, I did not install LILO. Instead, in my LMDE, I ran: grub-install --recheck /dev/sda, then I ran: update-grub, then: reboot. This worked ok, although I have 4 grub enteries for Slackware - who knows why, but there are 4.

I decided to install grub from the Slackware DVD. I copied the extras/source/grub folder to home and as su, ran pkgtool and selected grub from /tmp.

From the root directory, as su, I did: rub-install --recheck /dev/sda but when I tried: update-grub (or grub-update), I got: command not found. I rebooted... (probably should not have done that)

Grub menu sort of appeared with not boot options.

I rebooted into Slackware from the Slackware DVD and now I am writing this from my Slackware installation.

Does anyone know how to fix this? (I wanted to use grub because LILO never finds my LMDE install, just xp & Slackware.)

Thanks,

dragank 02-04-2011 08:05 AM

Try with: grub-install /dev/sda

Robert.Thompson 02-04-2011 08:10 AM

Quote:

Originally Posted by dragank (Post 4248240)
Try with: grub-install /dev/sda

I did this and this was the output:
Code:

root@roblap:/# grub-install /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)  /dev/fd0
(hd0)  /dev/sda
root@roblap:/#

I have not rebooted yet because I think this is what I got originally.

Additional:

I ran grubconfig and got this msg:
Code:

The partition '/dev/sda' is mounted read-only,      │             
          │ either unmount it or mount it read-write.

How do I do what it wants?

dragank 02-04-2011 08:57 AM

Try boot LMDE from instal DVD or else, and rerun "grub-install --recheck /dev/sda"
I am not familiar with LMDE, but there is live cd-dvd and you can select (I'm guessing) some boot options and boot your LMDE from hd...

maybe something here http://www.linuxquestions.org/questi...-error-840643/ be helpful..

Robert.Thompson 02-04-2011 09:39 AM

Grub is back! LMDE is back! Slackware is back!
 
Thanks to all!:)

Note: I am a newbie and do not thoroughly understand what I am doing.


I 'referred' to this link: http://ubuntuforums.org/showthread.php?t=224351

I booted from my LMDE CD and did the following:

Code:

sudo mkdir /mnt/root
sudo mount -t ext4 /dev/sda5 /mnt/root  #my previous installed LMDE
sudo mount -t proc none /mnt/root/proc
sudo mount -o bind /dev /mnt/root/dev
sudo chroot /mnt/root /bin/bash
sudo mount /sys                       
sudo grub-install --recheck /dev/sda
sudo update-grub
sudo reboot

There is much more info in the link so read it carefully - don't blindly do what I did. Remember my note above.

Thanks again,


All times are GMT -5. The time now is 12:42 AM.