SOLVED - Can't boot after recent 19.2 updates - Error - directory is encrypted

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
Rabbitbob
Level 1
Level 1
Posts: 8
Joined: Sat Aug 17, 2019 5:04 am

SOLVED - Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by Rabbitbob » Sat Aug 17, 2019 5:14 am

Hi and thanks in advance for your help.

I recently upgraded from Linux Mint 18 to 19.2 and it all went well for a few days, then, on Wednesday, after some updates, once I'd rebooted, the message - "Error - directory is encrypted' is displayed and the boot process is halted at the prompt, 'Grub rescue'

I would really appreciate any help in getting this resolved - Many thanks
Last edited by Rabbitbob on Mon Aug 19, 2019 3:20 am, edited 1 time in total.

Rabbitbob
Level 1
Level 1
Posts: 8
Joined: Sat Aug 17, 2019 5:04 am

Re: Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by Rabbitbob » Sun Aug 18, 2019 5:43 am

Any suggestions? Cheers..

User avatar
pbear
Level 8
Level 8
Posts: 2447
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by pbear » Sun Aug 18, 2019 11:00 pm

Hey Rabbitbob, welcome to the Forum!

One of the limitations of the Forum is that folks generally only can help with issues they've run into. No response on a thread like this usually means no one active in the past couple days (including me) fits that category. Let's start with a simple question: Did you encrypt anything? If so, what? Also, did you set up Timeshift? If so, that will give you options. If not, there might be nothing to do except reinstall.
Time flies like an arrow. Fruit flies like a banana.
If your problem has been solved, please edit the thread title.

Rabbitbob
Level 1
Level 1
Posts: 8
Joined: Sat Aug 17, 2019 5:04 am

Re: Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by Rabbitbob » Mon Aug 19, 2019 3:19 am

Hi.. thanks for your response...

I just fixed it!,

I booted my PC with a Linux 19.2 Live CD.. and then, when I tried to mount the drive in the PC, the message was that the 'structure was damaged' - so I started Gparted from the LiveCD and ran the Check the drive function... it did some magic stuff (fsck) which took about 10 seconds and then the Gparted success message was shown.. I rebooted the PC back into my native Linux Mint, with no issues and no (apparent) data loss :D

So, if anyone else has this, what I did might be worth a try... Now to figure out if it is likely to happen again, and what I can do to prevent it!

Thanks again...

User avatar
JoeFootball
Level 7
Level 7
Posts: 1923
Joined: Tue Nov 24, 2009 1:52 pm
Location: /home/usa/mn/minneapolis/joe

Re: Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by JoeFootball » Mon Aug 19, 2019 5:28 am

Rabbitbob wrote: Now to figure out if it is likely to happen again, and what I can do to prevent it!
And to make sure that you have all your important files backed up. :)

Joe

Rabbitbob
Level 1
Level 1
Posts: 8
Joined: Sat Aug 17, 2019 5:04 am

Re: SOLVED - Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by Rabbitbob » Mon Aug 19, 2019 8:33 am

Ah. Yes.... definitely!

;)

User avatar
WharfRat
Level 21
Level 21
Posts: 13360
Joined: Thu Apr 07, 2011 8:15 pm

Re: SOLVED - Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by WharfRat » Mon Aug 19, 2019 8:40 am

Having a periodic check of the partition will help

sudo tune2fs -c35 /dev/sd?? will set the partition to be checked during boot after 35 mounts then reset back to one.

Replace ?? with the partition designation.
ImageImage

Rabbitbob
Level 1
Level 1
Posts: 8
Joined: Sat Aug 17, 2019 5:04 am

Re: SOLVED - Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by Rabbitbob » Wed Aug 21, 2019 3:20 am

Ah.. thanks, I didn't know about that!

Cheers !

Rabbitbob
Level 1
Level 1
Posts: 8
Joined: Sat Aug 17, 2019 5:04 am

Re: SOLVED - Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by Rabbitbob » Wed Aug 21, 2019 3:24 am

Although when I try this, it returns:

tune2fs: Bad magic number in super-block while trying to open /dev/sda
Found a dos partition table in /dev/sda

Should I use different parameters?

User avatar
WharfRat
Level 21
Level 21
Posts: 13360
Joined: Thu Apr 07, 2011 8:15 pm

Re: SOLVED - Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by WharfRat » Wed Aug 21, 2019 9:02 am

Rabbitbob wrote:
Wed Aug 21, 2019 3:24 am
Although when I try this, it returns:

tune2fs: Bad magic number in super-block while trying to open /dev/sda
Found a dos partition table in /dev/sda

Should I use different parameters?
Your linux partition should be something like /dev/sda2 - /dev/sda is the block device (disk)

Use the following to determine the assignment

Code: Select all

[bill@XPS] ~ $ mount|grep -w /
/dev/sda2 on / type ext4 (rw,noatime,errors=remount-ro,stripe=32752,data=ordered)

[bill@XPS] ~ $ sudo tune2fs -c35 /dev/sda2
tune2fs 1.42.13 (17-May-2015)
Setting maximal mount count to 35
[bill@XPS] ~ $ 
 
ImageImage

Rabbitbob
Level 1
Level 1
Posts: 8
Joined: Sat Aug 17, 2019 5:04 am

Re: SOLVED - Can't boot after recent 19.2 updates - Error - directory is encrypted

Post by Rabbitbob » Fri Aug 30, 2019 2:25 am

Thank you.. I'll try this :)

Post Reply

Return to “Installation & Boot”