manual fsck or acces to home/<username> after boot via DVD

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
markus-1969
Level 1
Level 1
Posts: 16
Joined: Sat Sep 14, 2019 7:38 am

manual fsck or acces to home/<username> after boot via DVD

Post by markus-1969 » Sat Sep 14, 2019 7:52 am

I have installed Linux Mint 19.2 x64.

When I boot Linux Mint, the screan appears that is shown in the attachement.

When I boot Linux Mint in the repair mode, it says:
dev/mapper/mint--vg-root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
(i. e. without -a or -p options)
fsck exited with status code 4
done,

Failure: file systrem check of the root filesystem failed.
The root filesystem on dev/mapper/mint/--vg-root requires a manual fsck
I tried

fsck -c -y /dev/sda2

and it says:
Pass 1: checking inodes, blocks and sizes
Pass 2: checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking group summary information

/dev/sda2 ***FILE SYSTEM WAS MODIFIED ****
/dev/sda2 312/46848 files (2.9 % non contigious), 81927/187392 blocks
But that does not change anything. The Laptop does not boot - the same problems occur.


I found two ways to solve the problem:


Solution 1: Reparing the HD and boot

I do not know how.


Solution 2: Boot via DVD, then mount of the HD, then copy of the private files and then reinstallation

the files in
/home/markus

should be copied


I managed to access the HD via the file explorer and via Terminal

but

/home/markus

is forbitten because it is reserved for the user markus only.


How can I convince linux mint that it is the real markus who wants to have access to the folder in oder to copy the files ?


Thank you

markus
Attachments
linuxmint.com.jpg

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

Re: manual fsck or acces to home/<username> after boot via DVD

Post by WharfRat » Sat Sep 14, 2019 9:34 am

Hello markus Image

Welcome to Linux Mint and the Linux Mint forum :)

You have an LVM or encrypted installation so fsck should be run on /dev/mapper/mint--vg-root

Boot the installation media and run fsck from there :wink:
ImageImage

User avatar
Larry78723
Level 7
Level 7
Posts: 1561
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: manual fsck or acces to home/<username> after boot via DVD

Post by Larry78723 » Sat Sep 14, 2019 9:46 am

WharfRat,

It showed him that in his OP:
dev/mapper/mint--vg-root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
(i. e. without -a or -p options)
fsck exited with status code 4
done,

Failure: file systrem check of the root filesystem failed.
The root filesystem on dev/mapper/mint/--vg-root requires a manual fsck
Image

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

Re: manual fsck or acces to home/<username> after boot via DVD

Post by WharfRat » Sat Sep 14, 2019 9:51 am

Larry78723 wrote:
Sat Sep 14, 2019 9:46 am
WharfRat,

It showed him that in his OP:
dev/mapper/mint--vg-root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
(i. e. without -a or -p options)
fsck exited with status code 4
done,

Failure: file systrem check of the root filesystem failed.
The root filesystem on dev/mapper/mint/--vg-root requires a manual fsck
I know, but I don't think markus understood that since fsck -c -y /dev/sda2 was run :?
ImageImage

markus-1969
Level 1
Level 1
Posts: 16
Joined: Sat Sep 14, 2019 7:38 am

Re: manual fsck or acces to home/<username> after boot via DVD

Post by markus-1969 » Sun Sep 15, 2019 3:38 pm

thank you for your help.

could you explain what I have to do in a way that is understood by a person who has only basic knowledge of linux ?

The hard disk is encrypted, home/<username> as well.

solutuon 1: fsck - or other commands ?

solution 2: access to home/<username>, copying the files and re-installation

User avatar
Larry78723
Level 7
Level 7
Posts: 1561
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: manual fsck or acces to home/<username> after boot via DVD

Post by Larry78723 » Sun Sep 15, 2019 4:13 pm

markus,

Boot from your installation media (USB/DVD)
Open a terminal window (Ctrl-Alt-t) and execute the command

Code: Select all

fsck -c -y  /dev/mapper/mint--vg-root 
exactly as it has been typed here.

Reboot
Image

markus-1969
Level 1
Level 1
Posts: 16
Joined: Sat Sep 14, 2019 7:38 am

Re: manual fsck or acces to home/<username> after boot via DVD

Post by markus-1969 » Mon Sep 16, 2019 4:38 am

solution 1: installation media and running fsck
#######################################

I tried
fsck -c -y /dev/mapper/mint--vg-root
When I do not mount the hard disk, I get the following information:
fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
fsck.ext2: No such file or directory while trying to open dev/mapper-mint--vg-root
Possible not existing device ?
The hard disc is encrypted. I entered the encryption code via file manager.

Then I tried
fsck -c -y /dev/mapper/mint--vg-root
again.

Then it says:
WARNING: The file system is mounted. If you continue, you ***WILL*** cause ***SEVERE*** filesystem damage
Then I unmounted the HD via the file manager.

Then it says:
fsck.ext2: Permission denied while trying to open /dev/mapper/mint--vg-root
You must have r/w access or be a root
How can I have root access to the HD ?


solution 2: copy /home/<username> and re-installation
#############################################

Is there no way just to copy these files and re-install the whole system ?
Attachments
Laptop.jpg

rene
Level 12
Level 12
Posts: 4328
Joined: Sun Mar 27, 2016 6:58 pm

Re: manual fsck or acces to home/<username> after boot via DVD

Post by rene » Mon Sep 16, 2019 5:30 am

Run fsck -fvy /dev/mapper/mint--vg-root directly from the initramfs prompt you get when booting the original system, not from the Live system.

markus-1969
Level 1
Level 1
Posts: 16
Joined: Sat Sep 14, 2019 7:38 am

Re: manual fsck or acces to home/<username> after boot via DVD

Post by markus-1969 » Mon Sep 16, 2019 6:28 am

fsck -fvy /dev/mapper/mint--vg-root
That allowed me to boot the system - I am copying the file into the local LAN now.

But however, there are still messages - even before I start to enter the encryption code - and later.

That's why I will re-install the whole system later.

Thank you very much.

User avatar
Larry78723
Level 7
Level 7
Posts: 1561
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: manual fsck or acces to home/<username> after boot via DVD

Post by Larry78723 » Mon Sep 16, 2019 7:28 am

If you're not storing sensitive information, there's no reason to encrypt but only you can make that decision. Either way, you need to develop a backup solution that works for you. It would have saved you this hassle.
Image

Post Reply

Return to “Installation & Boot”