You are not logged in.

#1 2024-09-10 20:51:06

JoseArch
Member
Registered: 2024-09-10
Posts: 3

[SOLVED] change /home mounting point

Hello after a search for the internet and a bunch of hours on this, i guess is the time to admit ive need help...

The point is, al my system is mounted on a ssd [sdb2] except /boot wich is in sdb1 .
After installation, i've decided that a more complex environment would be nice so i've used Gparted to create new volumes here you have the lsblk output:

sdb           8:16   0 465.8G  0 disk 
├─sdb1        8:17   0     1G  0 part /boot
├─sdb2        8:18   0  80.9G  0 part /home
│                                     /var/log
│                                     /var/cache/pacman/pkg
│                                     /.snapshots
│                                     /
├─sdb3        8:19   0  31.5G  0 part 
└─sdb4        8:20   0 352.4G  0 part 

The idea is to use sdb4 for /home and sdb2 for / as before and sdb3 for the moment is just an empty space for now, not relevant right now.

So after backup my home files ive mounted /home on sdb4 and seems to be ok:

[jose@archlinux ~]$ sudo mount /dev/sdb4 /home
[jose@archlinux ~]$ df -h /home/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb4       353G   11G  341G   3% /home

The problem comes while editing fstab

# /dev/sdb2
#UUID=dfe1e639-1432-4f2f-8633-06fbc7d87a12       /home           btrfs           #rw,relatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home 0 0

# /dev/sdb4
#UUID=7d4e7825-a291-4658-95ba-173c87faa22c      /home           btrfs           rw,relatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home  0  0

uncomenting the sdb2 is the original config and after reboots works perfet, but uncomenting sdb4 opction result in something like this:

ailed to mount /home
Dependency failed for local file system
You are in emergency mode. After logging in, type "journal to -xb" to view system logs, "systemctl reboot" to reboot, or "exit" to continue bootup

Cannot open access to console, the root account is locked.
See su login(8) man page for more details.

And by the way yes the UUID is write down propperly :

[jose@archlinux ~]$ sudo blkid 
[sudo] password for jose: 
/dev/nvme0n1p1: LABEL="NVME secundario" BLOCK_SIZE="512" UUID="FC30BCE130BCA3D4" TYPE="ntfs" PARTUUID="9982a140-01"
/dev/sdb4: UUID="7d4e7825-a291-4658-95ba-173c87faa22c" UUID_SUB="7bcdf70d-065a-4465-bc73-f4d4de96d97e" BLOCK_SIZE="4096" TYPE="btrfs" PARTLABEL="SweetHome" PARTUUID="7d21156f-f641-4ba9-917f-e2dd4cc41001"
/dev/sdb2: UUID="dfe1e639-1432-4f2f-8633-06fbc7d87a12" UUID_SUB="fefb0b2e-5db7-402d-839d-adb382968c71" BLOCK_SIZE="4096" TYPE="btrfs" PARTLABEL="Arch" PARTUUID="5a0e538b-9164-4f44-850e-626de83c19ac"
/dev/sdb3: UUID="46324824-6a8d-43bb-a06f-1885a9ba1020" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="OtherDistros" PARTUUID="af0c184a-0f42-4eed-884d-60092cf7698e"
/dev/sdb1: UUID="78AC-FC06" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="boot" PARTUUID="51878f83-2f70-4867-b47f-0c3fbbe8599d"
/dev/nvme1n1p4: BLOCK_SIZE="512" UUID="0CC64E8CC64E75CC" TYPE="ntfs" PARTUUID="108b253e-10bf-420a-ae20-0450e0928b5c"
/dev/nvme1n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="d5dba19c-6af2-4c5c-bea0-7faf439a58ef"
/dev/nvme1n1p3: LABEL="Sabrent Rocket 500GB" BLOCK_SIZE="512" UUID="A898034198030D8E" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="6740ef3a-c188-4998-b97f-81c69251b747"
/dev/nvme1n1p1: UUID="E201-02E1" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="8f9b6f28-6399-4f86-a305-488d53ed8491"
/dev/sda1: LABEL="Seagate 1TB HDD" BLOCK_SIZE="512" UUID="26B804D1B804A183" TYPE="ntfs" PARTUUID="29622778-01"
/dev/zram0: LABEL="zram0" UUID="80aa4acd-9862-43f9-8cad-35f50f4cccf9" TYPE="swap"

Have no clue about whats missing here, or what is wrong, please a little bit of help would be really appreciated. Thanks in advance.

Last edited by JoseArch (2024-09-11 19:22:45)

Offline

#2 2024-09-10 21:13:21

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,532
Website

Re: [SOLVED] change /home mounting point

Does your new partition have a subvolume that matches the criteria you have set in fstab ('subvolid=257,subvol=/@home')?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2024-09-10 21:14:24

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 159

Re: [SOLVED] change /home mounting point

Did you manually try to edit the fstab? Did you try to use

genfstab

?
For me, it seems honestly unlikely that the subvolid is the same. You can check with

btrfs subvolume list /home

Offline

#4 2024-09-11 06:26:16

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] change /home mounting point

Just remove the erroneous subvolid. The fstab line only needs the subvolume name or ID, not both.


Jin, Jîyan, Azadî

Offline

#5 2024-09-11 19:04:41

JoseArch
Member
Registered: 2024-09-10
Posts: 3

Re: [SOLVED] change /home mounting point

It was as simple as that... all of you were true.

remove the subvolume result in a perfect boot, and once booted this is the output of lsblk:

sdb           8:16   0 465.8G  0 disk 
├─sdb1        8:17   0     1G  0 part /boot
├─sdb2        8:18   0  80.9G  0 part /var/cache/pacman/pkg
│                                     /var/log
│                                     /.snapshots
│                                     /
├─sdb3        8:19   0  31.5G  0 part 
[b]└─sdb4        8:20   0 352.4G  0 part /home[/b]

thanks for your help, I come from ubuntu and always used ext4, this new features and details of btrfs are something new to me, not sure even why sub-volume were there on the first place, i suppose there are a lot of scenarios where they come handy, but that is what i'll learn for the next lesson, today's one of moving mounting points comes to and end. Thanks again.

Last edited by JoseArch (2024-09-11 19:20:15)

Offline

Board footer

Powered by FluxBB