Reset root password
Jump to navigation
Jump to search
- Reboot to Grub Menu (pressing <shift> key)
- Edit Grub Menu: Press e to edit
- Alter boot menu
1FROM: 2 3linux /boot/vmlinuz-4-4.0-22-generic root=UUID=43ad24d3-e\ 4c5b-44ee-a099-a88eb9520989 ro quiet splash $vt_handoff CHANGE TO: linux /boot/vmlinuz-4-4.0-22-generic root=UUID=43ad24d3-e\ 5c5b-44ee-a099-a88eb9520989 rw init=/bin/bash 6 7TO: 8 9linux /boot/vmlinuz-4-4.0-22-generic root=UUID=43ad24d3-e\ 10c5b-44ee-a099-a88eb9520989 rw init=/bin/bash
- Partition is read-write mounted: mount | grep -w /
- Change password: passwd
- Reboot system: exec /sbin/init