Recover root password from encrypted disk

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

Recover root password from encrypted disk

Postby andy55 » 2020-12-02 08:21

Hello,

I have Debian Buster installed on our family laptop. It has encrypted disk. Some time ago I changed root password ... and forgot it.
Is there any way I can boot from pen drive (the laptop doesn't have CD drive) and mount the encrypted disk ? I remember password for encrypted disk.
andy55
 
Posts: 48
Joined: 2012-08-20 12:59

Re: Recover root password from encrypted disk

Postby Hallvor » 2020-12-02 10:30

Lenovo ThinkPad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
Lenovo ThinkPad X240, Intel Core i5-4300U CPU @ 2.90GHz, 8 GB RAM, 120 GB SSD, Debian Buster (KDE)
User avatar
Hallvor
 
Posts: 1090
Joined: 2009-04-16 18:35
Location: Norway

Re: Recover root password from encrypted disk

Postby sgosnell » 2020-12-02 15:26

It depends on your situation. If you have the encryption password, it's not hard. If you don't know that, you're probably out of luck. The easiest situation is if you know the password to decrypt the filesystem, and know a user password with sudo privileges. In that case, just log in as the user and use sudo passwd to change the root password. If you can't do that, try the linked thread. If you don't know the encryption password, do a complete reinstall, because without that there is no way to do anything.
Take my advice, I'm not using it.
sgosnell
 
Posts: 974
Joined: 2011-03-14 01:49

Re: Recover root password from encrypted disk

Postby andy55 » 2020-12-02 17:35

I know encryption password and sudo is blocked.
If cryptsetup part of standard Debian buster pen-drive image ?
Which images should I use ?
andy55
 
Posts: 48
Joined: 2012-08-20 12:59

Re: Recover root password from encrypted disk

Postby sgosnell » 2020-12-02 19:18

I would use the live DVD image. That's easiest. Boot to the liveDVD, unlock the encrypted drive, and change the root password.
Take my advice, I'm not using it.
sgosnell
 
Posts: 974
Joined: 2011-03-14 01:49

Re: Recover root password from encrypted disk

Postby andy55 » 2020-12-03 11:22

@sgosnell, @Hallvor
Thank you for your help.
andy55
 
Posts: 48
Joined: 2012-08-20 12:59


Return to General Questions

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable