Edited grub - cant boot LL - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20) +--- Thread: Edited grub - cant boot LL (/showthread.php?tid=3260) Pages:
1
2
|
Re: Edited grub - cant boot LL - thoughtinstinct - 08-28-2016 Sorry gold_finger i wasnt clearer in describing my situation. Right now the computer boots straight to windows and thats what i wanted but si would also like to show grub menu or boot into LL when i want, how can i achieve that considering the changes i made to grub? Here is the output from the terminal: Code: linux@linux:~$ lsblk Re: Edited grub - cant boot LL - gold_finger - 08-28-2016 So you changed grub file and did get it to boot straight to Windows, but can't get grub menu to show so you can boot LL? Didn't realize that's where you were at. First, try to get the grub menu to show by using the LEFT <SHIFT> key (not the right shift key). Turn computer on, wait 1-2 seconds, then hold down the left shift key. Don't tap it, hold it down. If that doesn't work and you still boot straight to Windows, restart with live LL dvd/usb again. Once up into live LL dvd/usb, open a terminal and do the following to mount your root partition, display the contents of the grub file, then unmount the root partition. Code: sudo mount /dev/sda5 /mnt Copy/Paste the terminal output back here for us to see and we'll go from there. Will want to see exact changes you made to that grub file before offering fix suggestion. Re: Edited grub - cant boot LL - thoughtinstinct - 08-28-2016 I will play with the shift key to see if i find the right timing but in the meantime here is the output Code: linux@linux:~$ sudo mount /dev/sda5 /mnt Re: Edited grub - cant boot LL - gold_finger - 08-28-2016 I believe you only need to make one small change to make the grub menu appear on boot. Try the following using a terminal once booted into live LL. Mount the installed root partition to the live environment. Code: sudo mount /dev/sda5 /mnt Now we'll chroot into your installed system, make change to the grub file, then update grub. Do the following to chroot into the system. Code: for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done This command will open the grub file with the text editor. (No sudo at beginning of command because your are already operating as root at this moment.) If you see various error messages pop-up in the terminal, just ignore them. Code: leafpad /etc/default/grub In the opened file, just change the following line to what I have in RED. GRUB_TIMEOUT=5 Save the file and close the text editor. Back in terminal do: Code: sudo update-grub Now exit from chroot environment and unmount everything. (Each line below is a separate command -- do one at a time.) Code: exit Close terminal, shutdown/reboot without the LL dvd/usb and hopefully you now see the grub menu -- should display with a 5 second countdown before it boots the default Windows entry. Re: Edited grub - cant boot LL - thoughtinstinct - 08-28-2016 It doesn't open grub file for some reason. Code: linux@linux:~$ sudo mount /dev/sda5 /mnt Re: Edited grub - cant boot LL - gold_finger - 08-28-2016 Ok -- I wasn't sure whether leafpad would work or not while in chroot environment. We'll just switch to using a terminal based text editor called nano. (You don't have to install it -- it's already included in LL.) Before doing anything, shutdown and reboot again into live LL so you start off fresh. In last post it showed that when you went to mount the root partition it was already mounted. So, to make sure all steps work as expected, shutdown/restart first. NOTE: If you still have same terminal open and your prompt still reads as "root@linux:/#", run following commands in the terminal before rebooting. Code: exit Once rebooted fresh, open a terminal and do the first two steps in my last post exactly as shown before to mount the root partition and chroot into it. Then, instead of doing the leafpad command to open the grub file, use this command: Code: nano /etc/default/grub That will open the file in the terminal instead of trying to open a new graphical window like the leafpad command was doing. You need to use your keyboard's arrow keys to position the cursor to where the change needs to be made. Just delete the "0.0" and replace it with a "5" on the "GRUB_TIMEOUT=" line. Then save the file by using the key combination of <CTRL>+O (the letter "O", not number "0"). In other words, hit <CTRL> key and the letter "O" key at the same time. Then exit nano editor using key combination <CTRL>+X. You should then be back at the terminal prompt. Continue on with the last two steps above to update grub, exit chroot and unmount the partition. Shutdown/Reboot without the LL dvd/usb and see if it worked. Re: Edited grub - cant boot LL - thoughtinstinct - 08-29-2016 Thank you very much gold_finger for the detailed and step by step guide. I so much appreciate you solving my problem and teaching me as well, that i'm half wishing i break things again so i can learn some more. Thank you ! Re: Edited grub - cant boot LL - gold_finger - 08-29-2016 You're welcome thoughtinstinct -- glad everything worked out. Enjoy LL! |