GRUB Won't Boot System
- Login o registrati per inviare commenti
Hey all,
I just ran an apt-get update on a friends laptop and when it restarted it seems to be booting ok, gets to the grub screen where you can select Trisquel or Advanced options, but then goes to a GRUB Login/Password prompt instead of booting the system. Any ideas?
Thanks,
grimlok
One more victim of GRUB's password...
- Boot a Live system (such as the system that was used to install Trisquel);
- 'sudo chroot' the directory where the root partition of the installed system was mounted;
- 'sudo rm /etc/grub.d/01_PASSWORD';
- 'sudo update-grub'.
Ask more help if required.
After running the last command, 'sudo update-grub', I get this output:
sudo: unable to resolve host trisquel
/usr/sbin/grub-mkconfig: 37: /usr/share/grub/grub-mkconfig_lib: cannot create /dev/null: Permission denied
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
I forgot about that. Some filesystems must be mounted before the 'chroot' (see https://help.ubuntu.com/community/Grub2/Installing#via_ChRoot for instance). Assuming the root partition of the installed system is mounted in /mnt (which it is not by default):
$ for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
Have you actually removed /etc/grub.d/01_PASSWORD (the user is "grub" by default)? If not, you can also boot a live system, read the password in that file with 'sudo cat /root_partition/etc/grub.d/01_PASSWORD' (where /root_partition is the path to the mount point for the root partition of the installed system), boot the installed system using this password and get rid of the GRUB password from the installed system.
Awesome! That did it! Thanks Magic Banana
- Login o registrati per inviare commenti