Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #175543 > unrolled thread

Wheezy no longer accepts my passwords to open /home and /mnt partitions on boot

Started byKen Heard <kenslists@teksavvy.com>
First post2016-12-08 07:10 +0100
Last post2016-12-09 21:30 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  Wheezy no longer accepts my passwords to open /home and /mnt partitions on boot Ken Heard <kenslists@teksavvy.com> - 2016-12-08 07:10 +0100
    Re: Wheezy no longer accepts my passwords to open /home and /mnt  partitions on boot David Christensen <dpchrist@holgerdanske.com> - 2016-12-09 04:30 +0100
      Re: Wheezy no longer accepts my passwords to open /home and /mnt  partitions on boot Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-12-09 21:30 +0100

#175543 — Wheezy no longer accepts my passwords to open /home and /mnt partitions on boot

FromKen Heard <kenslists@teksavvy.com>
Date2016-12-08 07:10 +0100
SubjectWheezy no longer accepts my passwords to open /home and /mnt partitions on boot
Message-ID<sM041-2pi-11@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

In my Wheezy box I have two encrypted hard drive partitions, /dev/mapper/md07_crypt for /home and /dev/mapper/md05_crypt for /mnt. (Mnt is no longer used. That partition was originally for /tmp; in a weak moment I persuaded myself that I needed to encrypt /tmp. I have since changed the mount point for /tmp to tmpfs and consequently changed the mount point of /dev/mapper/md05_crypt to /mnt pending its deletion. In the meantime it still has to be opened.)

This morning, when I tried to boot this box, I found that the passwords for those two partitions were not accepted. Finally, after entering the correct passwords numerous times, the following messages were received. 

[info] Loading kernel module loop.
[info] Loading kernel module coretemp.
[info] Loading kernel module it87.
[ok] Activating lvm and md swap ... Done
[....] Checking file systems ... Fsck from util-linux 2.20.1
BOOT was not cleanly unmounted, check forced.
BOOT: 245/120960 files (20.4% non-contiguous) 58505/241664 blocks
Fsck.ext4 No such file or directory while trying to open /dev/mapper/md07_crypt.
Possibly non-existent device?
VAR: recovering journal
Fsck died with exit status 9
Failed (code 9).
[FAIL] File system check failed. A log is being saved in /var/log/fsck/checkfs if that location is writable.
{My note: that location was not writable; so no such log was created.}
Please repair the system manually ... Failed!
[warn] A maintenance shell will now be started. CONTROL-D will terminate the shell and resume system boot ... (warning)
Give root password form maintenance
(or type CONTROL-D to continue):

After entering the root password the root bang appeared.

At this point I did not know what to do by way of reparing the system manually. I consequently closed the box, first by running "shutdown now". After various messages flashed by on the monitor I was asked once more to give the password for maintenance or type CONTROL-D again. After typing CONTROL-D again my user login appeared, but of course I could not log in. At that point I was finally able to close the computer with the Alt-S command.

I hope that somebody or bodies can tell me what to do to make this computer usable again -- short of having to do a completely new installation.

Regards, Ken Heard

-- 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

[toc] | [next] | [standalone]


#175584 — Re: Wheezy no longer accepts my passwords to open /home and /mnt partitions on boot

FromDavid Christensen <dpchrist@holgerdanske.com>
Date2016-12-09 04:30 +0100
SubjectRe: Wheezy no longer accepts my passwords to open /home and /mnt partitions on boot
Message-ID<sMk2K-6sN-13@gated-at.bofh.it>
In reply to#175543
On 12/07/16 22:06, Ken Heard wrote:
> In my Wheezy box I have two encrypted hard drive partitions, /dev/mapper/md07_crypt for /home and /dev/mapper/md05_crypt for /mnt. (Mnt is no longer used. That partition was originally for /tmp; in a weak moment I persuaded myself that I needed to encrypt /tmp. I have since changed the mount point for /tmp to tmpfs and consequently changed the mount point of /dev/mapper/md05_crypt to /mnt pending its deletion. In the meantime it still has to be opened.)
>
> This morning, when I tried to boot this box, I found that the passwords for those two partitions were not accepted. Finally, after entering the correct passwords numerous times, the following messages were received.
>
> [info] Loading kernel module loop.
> [info] Loading kernel module coretemp.
> [info] Loading kernel module it87.
> [ok] Activating lvm and md swap ... Done
> [....] Checking file systems ... Fsck from util-linux 2.20.1
> BOOT was not cleanly unmounted, check forced.
> BOOT: 245/120960 files (20.4% non-contiguous) 58505/241664 blocks
> Fsck.ext4 No such file or directory while trying to open /dev/mapper/md07_crypt.
> Possibly non-existent device?
> VAR: recovering journal
> Fsck died with exit status 9
> Failed (code 9).
> [FAIL] File system check failed. A log is being saved in /var/log/fsck/checkfs if that location is writable.
> {My note: that location was not writable; so no such log was created.}
> Please repair the system manually ... Failed!
> [warn] A maintenance shell will now be started. CONTROL-D will terminate the shell and resume system boot ... (warning)
> Give root password form maintenance
> (or type CONTROL-D to continue):
>
> After entering the root password the root bang appeared.
>
> At this point I did not know what to do by way of reparing the system manually. I consequently closed the box, first by running "shutdown now". After various messages flashed by on the monitor I was asked once more to give the password for maintenance or type CONTROL-D again. After typing CONTROL-D again my user login appeared, but of course I could not log in. At that point I was finally able to close the computer with the Alt-S command.
>
> I hope that somebody or bodies can tell me what to do to make this computer usable again -- short of having to do a completely new installation.

If you don't care about the data on that drive, wipe it and do a fresh 
install.


If you do care and don't have a backup, disconnect that drive, add 
another drive, do a fresh install on the additional drive (you might 
want to avoid encryption), reconnect the first drive, and see what you 
can recover.


David

[toc] | [prev] | [next] | [standalone]


#175591 — Re: Wheezy no longer accepts my passwords to open /home and /mnt partitions on boot

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2016-12-09 21:30 +0100
SubjectRe: Wheezy no longer accepts my passwords to open /home and /mnt partitions on boot
Message-ID<sMzXP-7Mo-3@gated-at.bofh.it>
In reply to#175584
Le 09/12/2016 à 04:26, David Christensen a écrit :
> On 12/07/16 22:06, Ken Heard wrote:
>> In my Wheezy box I have two encrypted hard drive partitions,
>> /dev/mapper/md07_crypt for /home and /dev/mapper/md05_crypt for /mnt.
(...)
>> This morning, when I tried to boot this box, I found that the
>> passwords for those two partitions were not accepted.
(...)
>> BOOT was not cleanly unmounted, check forced.
>> BOOT: 245/120960 files (20.4% non-contiguous) 58505/241664 blocks
>> Fsck.ext4 No such file or directory while trying to open
>> /dev/mapper/md07_crypt.
>> Possibly non-existent device?
>> VAR: recovering journal

Looks like some other filesystems were not cleanly unmounted. Could it 
be related ?

>> [warn] A maintenance shell will now be started. CONTROL-D will
>> terminate the shell and resume system boot ... (warning)
>> Give root password form maintenance
>> (or type CONTROL-D to continue):
>>
>> After entering the root password the root bang appeared.
(...)
>> I hope that somebody or bodies can tell me what to do to make this
>> computer usable again -- short of having to do a completely new
>> installation.

It depends what you mean by "usable".
If you just want to complete the init process, then comment out the 
/home line in /etc/fstab.

The first things you want to do is to check that /dev/md* exist and are 
active, and check the keyboard layout by typing the passphrases in 
cleartext.

> If you don't care about the data on that drive, wipe it and do a fresh
> install.
>
> If you do care and don't have a backup

Then you are a fool. Encryption means "I prefer losing the data than 
having it disclosed". I guess you didn't make a backup of the master key 
or the LUKS header with cryptsetup ?

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web