LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   bad grub from old install persistent. (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/bad-grub-from-old-install-persistent-4175540819/)

mrknify 04-26-2015 04:38 PM

bad grub from old install persistent.
 
New slackware install, had grub from old ubuntu install left on it.

I installed slackware 14.1 via sd card.
I used lilo expert chose my linux and windows partitions...

On reboot, grub as it is still in mbr loaded into grub recovery>

I do not have access to my windows partition anymore. I can boot from the sd card but I get errors from trying to run lilo or liloconf.

How through the install card can I clean grub to use lilo?

My netbook is a lg x110.

Cheers

yancek 04-26-2015 05:55 PM

You forgot to post the error(s) you got when you tried to install Lilo. You should have an option in the install to put Lilo on the mbr.

mrknify 04-26-2015 05:57 PM

Solution... this does not remove grub but fixes it from the sd install card.

The downside is I can not see my windows install.

mount /dev/sda# /mnt
--use the installed os drive here in sda#-
Chroot /mnt
Grub-install /dev/sda#
Grub-mkconfig -o /root/grub/grub.cfg

Make sure you have made a user and password.
After you reset and login, run "su grub-config -o /root/grub/grub.cfg
This will find your windows partition.

mrknify 04-26-2015 06:00 PM

Quote:

Originally Posted by yancek (Post 5353531)
You forgot to post the error(s) you got when you tried to install Lilo. You should have an option in the install to put Lilo on the mbr.

There were no errors. The problem was grub still in the mbr (master boot record) trying to run without a grub.conf to point it in the right direction.

I was unable to remove grub via the slack install sd card, but I was able to re-install grub for slack.

Funny part is I forgot to make myself a user account.

Cheers.

michaelk 04-26-2015 06:18 PM

You can mark the thread as solved via the thread tools menu at the top of the page.


All times are GMT -5. The time now is 05:16 AM.