Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

I uninstalled cryptsetup and now I cannot boot the system.

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
metman
Posts: 14
Joined: 2019-05-26 06:57
Has thanked: 6 times
Been thanked: 2 times

I uninstalled cryptsetup and now I cannot boot the system.

#1 Post by metman »

Whole disk was encrypted.
If you need any more info let me know.

Bulkley
Posts: 6386
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

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

#2 Post by Bulkley »

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.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

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

#3 Post by p.H »

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.

Post Reply