Change lost password from rescue option on install dvd

If none of the more specific forums is the right place to ask

Change lost password from rescue option on install dvd

Postby awesomemachine » 2020-06-13 02:39

I forgot the passwords to a debian laptop, so I tried my method to change them to new ones. Boot the install dvd-1. Select 'rescue'. Open root shell on root partition. Change passwords.

The drive has gpt partitioning scheme. I found a root partition on /dev/sda5. It would normally be on sda2, but I think gpt messed up my partition order. Opened root shell. System could not find fstab, nor determine my username, so passwd didn't work. I looked around, and '/' was missing a few directories.

I couldn't mount anything, because not found in fstab, because fstab didn't exist. So, what happened? It used to be so easy! Now it seems impossible! Any suggestions for why so different than my actual '/' partition? I got the job done a different way. But this scenario has me wondering.

Thanks for any advice.
What was truth is truth now, and it always will be truth! There is one truth! Everything else is wrong!
awesomemachine
 
Posts: 11
Joined: 2011-08-17 20:03

Re: Change lost password from rescue option on install dvd

Postby Head_on_a_Stick » 2020-06-13 11:10

So what is the disposition of your drives?
Code: Select all
lsblk -f
# parted --list
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12612
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to General Questions

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable