Free Republic
Browse · Search
General/Chat
Topics · Post Article

Ok, while trying to get an encrypted HDD back, I installed Lilo (didn't realize it was a boot loader)..
1 posted on 05/10/2014 9:41:35 PM PDT by Bikkuri
[ Post Reply | Private Reply | View Replies ]


To: ShadowAce

I Want to uninstall Lilo and get my Grub2 back .. I DO have (reinstalled) Grub, but it is still using Lilo to boot, and it is not allowing me to have Duel-Boot. I rarely use Win, but now I don’t even have the option :/

Any idea how I can get Grub back as the Boot-Loader?


2 posted on 05/10/2014 9:43:49 PM PDT by Bikkuri (Molon Labe)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Bikkuri
You don't specify your distro, but maybe something like http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/.
4 posted on 05/10/2014 10:32:46 PM PDT by TChad (The Obamacare motto: Dulce et decorum est pro patria mori.)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Bikkuri

i think i remember that grub has to be written into the master boot record for correct installation. if the mbr still points to lilo, the system will boot lilo. you should be able to configure lilo to dual boot though.


5 posted on 05/10/2014 10:50:00 PM PDT by dadfly
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Bikkuri; rdb3; Calvinist_Dark_Lord; JosephW; Only1choice____Freedom; amigatec; Still Thinking; ...

10 posted on 05/11/2014 10:45:12 AM PDT by ShadowAce (Linux -- The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Bikkuri
When you installed lilo, it should have made a copy of the boot record on that hard drive. Look for a file called "boot.0300" or "boot.0800" or similar. This is a copy of the MBR as lilo found it, before lilo changed it.
-s save-file
When lilo writes a new boot sector, it preserves the former contents of the boot sector in a file, named by default /boot/boot.NNNN, where NNNN is the hexadecimal representation of the major and minor device numbers of the drive/partition.

This option defines the backup save file in one of three ways: a save directory (default is '/boot') using the default filename 'boot.NNNN' in the defined directory; a pathname template to which '.NNNN' is appended (default would be '/boot/boot'); or the full pathname of the file, which must include the correct '.NNNN' suffix. When used with the -u option, the full file pathname must be set.

I use lilo, and don't know grub, but I'll guess that grub has a widget that will overwrite or make new the MBR, to suit itself (I think it does this automatically, with the command `grub-install /dev/XXX`). Assuming this to be the case, you shouldn;t have to do anything other than installing grub.
11 posted on 05/11/2014 10:55:02 AM PDT by Cboldt
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Bikkuri
Oh, to manually restore the boot record that lilo copied for you, use `dd /boot/boot.NNNN /dev/sda`, assuming the boot record that lilo created was on the device "sda".

You can get lilo to boot Windows, if you want to try lilo, maybe stay with it. Edit /etc/lilo.conf, adding something like this:

other=/dev/sda1
label=Windows
That assumes you have Windows on the first partition of sda.

After you edit /etc/lilo.conf, you have to run lilo again, to make the changes effective.

12 posted on 05/11/2014 11:21:09 AM PDT by Cboldt
[ Post Reply | Private Reply | To 1 | View Replies ]

To: Bikkuri

Try the thread listed below. If that doesn’t work, ping me.

http://www.linuxquestions.org/questions/debian-26/replacing-lilo-w-grub-302360/


13 posted on 05/11/2014 3:34:27 PM PDT by BuckeyeTexan (There are those that break and bend. I'm the other kind. ~Steve Earle)
[ Post Reply | Private Reply | To 1 | View Replies ]

"Freedom is the sure possession of those alone
who have the courage to defend it."

~Pericles




Please support Free Republic
click the pic


17 posted on 05/13/2014 12:19:59 PM PDT by trisham (Zen is not easy. It takes effort to attain nothingness. And then what do you have? Bupkis.)
[ Post Reply | Private Reply | To 1 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson