[SOLVED] Trouble with GRUB re-installation - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Installing Linux Lite (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=17) +--- Thread: [SOLVED] Trouble with GRUB re-installation (/showthread.php?tid=2395) |
[SOLVED] Trouble with GRUB re-installation - antenor - 11-14-2015 Hello all, I have Windows on sda1 and 2, Lite /, swap and /home on sda3, 5 and 6 and left some unallocated space for experimentation! I installed there recently a few distros to see what they got in real installation because in VB, apart from being slow, I have to use scroll bars. In order to avoid troubles with GRUB conflicts I installed each fresh installed distro's GRUB on each one's / and over them all I tried to re-install Lite's GRUB (please, feel free to laugh!!!). Everything was going according to plan in the terminal, up to the final command "sudo update-grub" where instead of a glorious boot menu with all the OS listed, I found myself in front of a black screen! I boot in the live mode trying to mount Lite's / and re-install GRUB, where I see in the terminal that everything is where it supposed to be although unmounted and as soon as I give the commands "sudo grub-install...." and "sudo update-grub" in the end, it turns back "grub-install: error: failed to get canonical path of '/cow' What are the proper commands to fix this and what did I do wrong? Thank you in advance! Re: [SOLVED] Trouble with GRUB re-installation - gold_finger - 11-16-2015 (11-14-2015, 06:16 PM)antenor link Wrote: In order to avoid troubles with GRUB conflicts I installed each fresh installed distro's GRUB on each one's / and over them all I tried to re-install If you installed (grub) boot loader for other distros to their respective root partitions, then all you needed to do is boot back into LL afterwards and run this command to add them to LL grub's boot menu: Code: sudo update-grub] Now, to get LL booting again, boot from live LL disk and follow instructions below in a terminal. Each line below needs to be entered separately and in the order shown. [Note: anywhere you see "XY" or "X", change that to the correct drive letter ("X") and partition number ("Y") for your LL root partition.] Code: sudo mount /dev/sdXY /mnt Re: [SOLVED] Trouble with GRUB re-installation - antenor - 11-16-2015 Hello gold_finger, I can't thank you enough for your immediate and complete reply! I only have to ask you a) do I type everything you wrote me in my terminal (including "for i", "do", "done", "exit" and b) don't I have to mount back all of the partitions one by one? Thank you very much!!! Re: [SOLVED] Trouble with GRUB re-installation - gold_finger - 11-16-2015 (11-16-2015, 01:36 PM)antenor link Wrote: a) do I type everything you wrote me in my terminal (including "for i", "do", "done", "exit" Yes. Do all lines (one at a time) exactly as shown. (Just need to change /dev/sdXY to whatever your LL root partition is; and /dev/sdX to whatever correct drive letter is. If not sure which is root partition, run sudo blkid -c /dev/null and look for it in the output. (11-16-2015, 01:36 PM)antenor link Wrote: b) don't I have to mount back all of the partitions one by one? First command mounts the root partition to the "live" DVD/USB environment. Last command unmounts it when you're done re-installing grub. After that shutdown computer and remove live DVD. Reboot and your installed LL on the hard drive should now boot properly. If you've got other distros on the drive, they will show-up on the grub boot menu too. No need to remount anything in live environment if that is what you were asking. No need to mount any partitions other than the LL root partition to the live environment to repair grub booting. Only exception to that would be if you had a separate "/boot" partition; but I'm assuming that's not the case because you didn't say you had one. (If you didn't explicitly create one when you first installed LL, then you don't have one and the boot files are on the root partition.) Re: [SOLVED] Trouble with GRUB re-installation - antenor - 11-16-2015 Thank you again for your assistance! I am trying it right away and will send you feedback!!! Re: [SOLVED] Trouble with GRUB re-installation - antenor - 11-16-2015 Thank you so very much dude, I got my computer back and running extra super!!!!! You are so excellent!!! Re: [SOLVED] Trouble with GRUB re-installation - gold_finger - 11-16-2015 Glad everything worked out. Welcome to Linux Lite. Re: [SOLVED] Trouble with GRUB re-installation - antenor - 11-16-2015 With guys like you to support and welcome me I think I will stay here forever! One thing though is for sure : as soon as I return to Greece I am going to see how can I send you a donation!!! Re: [SOLVED] Trouble with GRUB re-installation - Valtam - 11-16-2015 (11-16-2015, 08:32 PM)antenor link Wrote: With guys like you to support and welcome me I think I will stay here forever! Send it to gold_finger, he is awesome! Re: [SOLVED] Trouble with GRUB re-installation - antenor - 11-18-2015 Could you make this a bit easier for me? (the donation thing) I mean send me instructions or a guiding link maybe about it. All I know is I have to get a credit card and sign in to paypal. Sorry for asking all these but I am new to everything I guess! Thank you! |