[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fsck encrypted filesystem



On Mon, 2009-01-26 at 09:17 +0100, lineman@ruiner.halo.nu wrote:
> Hi
> 
> I have a relaively recent debian install with LUKS encrypted filesystem, default options.
> 
> An error has been detected on the HD and it will not boot anymore, FSCK wants the root password to do system maintenence.
> 
> 
> I do not know the root password and I would like to fsck the drive.
> 
> How can I do this?
> 
> Thanks
> 
> -Alan

Boot with any Linux Live disk which support cryptsetup.

Then map the encrypted volume (e.g. hdc1):
# cryptsetup luksOpen /dev/hdc1 unencryptednode

Then 'fsck' the disk:
# fsck /dev/mapper/unencryptednode

That is it.

btw. strange you know the password for the encryption, but not for root?

Best,

Rob




Reply to: