You are not logged in.

#1 2023-07-17 00:47:13

xFlammy
Member
Registered: 2022-05-24
Posts: 8

New drive always fails to mount to BTRFS subvolume

I'm practicing installing arch in a VM in prepartion for doing so on baremetal. I am going to be running btrfs with several subvolumes and I have a total of six disks that I will need to mount. To practice this, I started with adding one new virtual disk in the VM and attempting to mount it under the btrfs subvolume I created and named @D

I partitioned the disk (/dev/sdb) and assigned btrfs as its file system, following this, I created the new subvolume @D

btrfs su cr @D
mount -o compress=lzo,noatime,subvol=@D /dev/sdb1 /D

mount: /D: mount(2) system call failed: No such file or directory.

However, when removing the "subvol=" option it will mount to /D with no problems. I'm really not sure what to do to troubleshoot this.

Here's the output of lsblk and btrfs su li /:

NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS 

sda     8:0   0   10G 0 disk 

|-sda1  8:1   0  512M 0 part /boot/efi 

`-sda2  8:2   0  9.5G 0 part /var/cache 

                                /var/log 

                                /root 

                                /home 

                                /tmp 

                                /srv 

                                / 

sdb     8:16  0    8G 0 disk 

`-sdb1  8:17  0    8G 0 part 

sr0    11:0   1 813.3M 0 rom
ID 256 gen 2302 top level 5 path @ 

ID 257 gen 2315 top level 5 path @home 

ID 258 gen 2216 top level 5 path @root 

ID 259 gen 17 top level 5 path @srv 

ID 260 gen 2314 top level 5 path @log 

ID 261 gen 2143 top level 5 path @cache 

ID 262 gen 2313 top level 5 path @tmp 

ID 263 gen 18 top level 256 path var/lib/portables 

ID 264 gen 19 top level 256 path var/lib/machines 

ID 270 gen 2305 top level 257 path @home/guru/@D

Offline

#2 2023-07-17 02:47:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: New drive always fails to mount to BTRFS subvolume

As the list you posted shows, you don't have a @D subvol, you have a @home/guru/@D subvol

Offline

#3 2023-07-17 03:03:09

xFlammy
Member
Registered: 2022-05-24
Posts: 8

Re: New drive always fails to mount to BTRFS subvolume

Scimmia wrote:

As the list you posted shows, you don't have a @D subvol, you have a @home/guru/@D subvol

yes, this is as a result of attempting to create different subvolumes to see if they would work, however it's still the same issue even when attempting to specifyc it as subvolume=@home/guru/@D
same error message and all

Offline

#4 2023-07-17 03:08:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: New drive always fails to mount to BTRFS subvolume

What does `ls -la /` show?

Offline

#5 2023-07-17 03:23:05

xFlammy
Member
Registered: 2022-05-24
Posts: 8

Re: New drive always fails to mount to BTRFS subvolume

Scimmia wrote:

What does `ls -la /` show?

https://pasteboard.co/3N5ggkeLRtMr.png

Offline

Board footer

Powered by FluxBB