LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-04-2011, 07:58 AM   #1
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Rep: Reputation: 48
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,
 
Old 02-04-2011, 08:05 AM   #2
dragank
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Rep: Reputation: 0
Try with: grub-install /dev/sda
 
Old 02-04-2011, 08:10 AM   #3
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by dragank View Post
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?

Last edited by Robert.Thompson; 02-04-2011 at 08:21 AM.
 
Old 02-04-2011, 08:57 AM   #4
dragank
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Rep: Reputation: 0
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..

Last edited by dragank; 02-04-2011 at 09:09 AM.
 
Old 02-04-2011, 09:39 AM   #5
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
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,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware installation & grub Luxxyness Linux - Newbie 2 11-24-2010 10:02 PM
Dual boots hurt my grub nnjond Linux - Newbie 10 03-03-2009 11:34 PM
slackware installation with lilo boots into GRUB lido Slackware 4 10-14-2006 11:05 PM
Yikes! Installation screen unreadable... colors? jbrush Suse/Novell 0 01-17-2006 06:27 PM
Old installation of GRUB prevents me from using LILO and booting into Slackware! EThitop Slackware 6 12-12-2004 12:07 PM


All times are GMT -5. The time now is 10:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration