I uninstalled cryptsetup and now I cannot boot the system.

New to Debian (Or Linux in general)? Ask your questions here!

I uninstalled cryptsetup and now I cannot boot the system.

Postby metman » 2021-01-17 15:49

Whole disk was encrypted.
If you need any more info let me know.
metman
 
Posts: 2
Joined: 2019-05-26 06:57

Re: I uninstalled cryptsetup and now I cannot boot the syste

Postby Bulkley » 2021-01-17 17:24

What about your backup? Most of us have bombed our system and lost data. When it's bad enough we learn to back up.

This may be time to use a rescue CD to boot the system and reinstall cryptsetup.
Bulkley
 
Posts: 6064
Joined: 2006-02-11 18:35

Re: I uninstalled cryptsetup and now I cannot boot the syste

Postby p.H » 2021-01-17 17:25

Of course you cannot open an encrypted device without cryptsetup.
So I guess the boot is stuck into the initramfs shell ?

What did you uninstall exactly ? There are several cryptsetup* packages :
cryptsetup : dummy transitional package which depends on cryptsetup-initramfs and cryptsetup-run
cryptsetup-run : startup scripts for encrypted (non-root/hibernation) devices
cryptsetup-initramfs : cryptsetup integration into the initramfs for root/hibernation devices
cryptsetup-bin : the actual cryptsetup tool

If you removed cryptsetup-initramfs, then the initramfs for the current kernel is rebuilt without cryptsetup. But if there is an older kernel, maybe its initramfs was not rebuilt and still has cryptsetup. Otherwise, you have to boot another system which has cryptsetup (live system, Debian installer in rescue mode...), open the encrypted device, chroot into the installed system, and reinstall the missing packages.
p.H
 
Posts: 1669
Joined: 2017-09-17 07:12


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable