I can't login Ubuntun 22.04 on MAC M1

elbitm

Bit poster
It always said 'Bad password'. I tried 'parallels', 'Parallels', 'ubuntu'.... I tried to finde default password in internet, all I found is password is 'parallels' but it does not work, please help, sorry bad English
 
I have the same problem.

M1 Mac mini. Downloaded U22 and it doesn't work as suggested. The shift doesn't work. The ESC failed to bring up the boot order - only showing grub>
 
It took me eight hours to resolve this issue.

I'm still amazed why parallels doesn't have instructions to solve this problem.

Solution:
1. You have GNU GRUB version 2.06 open.
2. Use the ls command to find in which partition ubuntu itself is located "ls (hd0,msdos1)/ "
3. When you find it you need to load the kernel from that partition. Do the commands one by one:
set root=(hd0,msdos1)
linux /vmlinuz root=/dev/sda1 ro single
initrd /initrd.img
boot
4. After writing boot, the command line will boot with root privileges. In it you need to execute:
mount -o remount,rw /
passwd parallels
5. Enter the new password and confirm again.
6. After the change, reboot the system: reboot
 
Thanks much, Tuntes! That worked!

A few notes for people like me who are unfamiliar with all this:

* To get to GNU GRUB, you may have to go through the "Select boot device on startup" process, then reboot, then Continue, then press Escape a few times. You end up on a page that says something about GNU GRUB at the top, and has a prompt like grub>

* Do `ls` to see what the partitions are. Then to look at a given partition, type (for example) `ls (hd0)/`.

* Ubuntu may be inside a boot directory in the partition. So you may need to type (for example) `ls (hd0,gpt1)/boot/` in order to see the ubuntu directory.

* If Ubuntu is in a boot directory, you need to include that boot directory in the path for the next couple of commands. Like: `linux /boot/vmlinuz root=/dev/sda1 ro single` and `initrd /boot/initrd.img`.

* There are restrictions on what you can set the new password to be. For example, you can't set it to "parallels" or to a string less than 8 characters long.
 
Back
Top