You are not logged in.

#1 2022-02-05 22:39:03

vitoo
Member
Registered: 2022-02-05
Posts: 3

Unable to mount home partition

Hello. I separated a part of my home disk and formatted it as a different partition in a different file format. I mounted it to the root partition as a separate partition. Then I changed my mind and unmounted this partition and re-mounted it to my home partition. When I reboot the system, systemd goes into emergency mode and when I use the lsblk command, my home partition doesn't seem to be mounted to /mnt/home. I am attaching my fstab file and error images:

(/dev/sda5 = root, /dev/sda7 = home)
<emergency> <lsblk> <mount> <fstab>

-> I thought it might be the problem as I was merging two differently formatted fields. Again I allocated a space of the same size and formatted it using mkfs.ext4.
NOTE: I can simply format my home partition by doing mkfs.ext4 but I don't want to lose my configuration and files. Thank you for your help.

Edit: I'm adding lsblk and emergency links right away.
Edit 2: All links are working.

Last edited by vitoo (2022-02-05 22:49:05)

Offline

#2 2022-02-06 03:30:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: Unable to mount home partition

You are going to need to clean that up a little so we can understand what you did.  For example"

I mounted it to the root partition as a separate partition. Then I changed my mind and unmounted this partition and re-mounted it to my home partition.

One does not mount partitions on partitions.  One mounts them on mount points.   You probably want to mount the partition containing your user directories on the /home mount point of the root file system.

I suggest you boot your install media, and work this out in a chroot.  When you can mount your root partition on /mnt/, and your home partition on /mnt/home and you can chroot in and the stars align -- then you can try booting your system directly.  Don't forget to ensure your /etc/fstab is still valid.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2022-02-06 05:45:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,087

Re: Unable to mount home partition

There's no valid filesystem on sda7 you'll have to fsck that, possibly using an alternative superblock.
I'm not sure what you solitmerged how, but if you shrunk a partition w/o shrinking the filesystem first, you might already have caused some data loss and the filesystem might no longer be reconstuctable.

Offline

#4 2022-02-06 11:38:33

vitoo
Member
Registered: 2022-02-05
Posts: 3

Re: Unable to mount home partition

ewaller wrote:

You are going to need to clean that up a little so we can understand what you did.

Sorry, it's a bit complicated. I formatted the partition I created later and added /home (/dev/sda7) by expanding it.

ewaller wrote:

I suggest you boot your install media, and work this out in a chroot.  When you can mount your root partition on /mnt/, and your home partition on /mnt/home and you can chroot in and the stars align -- then you can try booting your system directly.  Don't forget to ensure your /etc/fstab is still valid.

I restarted the system from the iso file and tried to mount it, but I got the mount error I gave in the screenshot.

seth wrote:

There's no valid filesystem on sda7 you'll have to fsck that, possibly using an alternative superblock.

Thanks, I will try that.

Offline

#5 2022-02-06 11:50:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,087

Re: Unable to mount home partition

vitoo wrote:

Sorry, it's a bit complicated. I formatted the partition I created later and added /home (/dev/sda7) by expanding it.

That makes no sense - you best list the commands you used, step by step.

Offline

#6 2022-02-06 12:04:02

vitoo
Member
Registered: 2022-02-05
Posts: 3

Re: Unable to mount home partition

Thanks for your help, I ran fsck and a huge part of my /home directory is corrupted. I will reinstall the system.

Offline

Board footer

Powered by FluxBB