GRUB Won't Boot System

4 Antworten [Letzter Beitrag]
grimlok
Offline
Beigetreten: 04/16/2013

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

Magic Banana

I am a member!

I am a translator!

Offline
Beigetreten: 07/24/2010

One more victim of GRUB's password...

  1. Boot a Live system (such as the system that was used to install Trisquel);
  2. 'sudo chroot' the directory where the root partition of the installed system was mounted;
  3. 'sudo rm /etc/grub.d/01_PASSWORD';
  4. 'sudo update-grub'.

Ask more help if required.

grimlok
Offline
Beigetreten: 04/16/2013

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?).

Magic Banana

I am a member!

I am a translator!

Offline
Beigetreten: 07/24/2010

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.

grimlok
Offline
Beigetreten: 04/16/2013

Awesome! That did it! Thanks Magic Banana