Difference between revisions of "Reset root password"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "# Reboot to Grub Menu # Edit Grub Menu: Press e to edit # Alter boot menu <source line lang="bash">FROM: linux /boot/vmlinuz-4-4.0-22-generic root=UUID=43ad24d3-e\ c5b-4...")
 
Line 13: Line 13:
 
</source>
 
</source>
 
# Partition is read-write mounted: mount | grep -w /
 
# Partition is read-write mounted: mount | grep -w /
 +
# Change password: passwd
 +
# Reboot system: exec /sbin/init

Revision as of 10:32, 15 November 2017

  1. Reboot to Grub Menu
  2. Edit Grub Menu: Press e to edit
  3. 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
    
  4. Partition is read-write mounted: mount | grep -w /
  5. Change password: passwd
  6. Reboot system: exec /sbin/init