Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
366 views
in Technique[技术] by (71.8m points)

partitioning - Problem mounting partition to btrfs subvolume in Linux

I have installed Linux Mint on btrfs partitioning. /dev/sda2 is / at subvolume @ /dev/sda3 is /home at subvolume @home

I have another partition I would like to mount at /home/francis/FG-Docs like so: /dev/sda4 is /home/francis/FG-Docs at subvolume @fg-docs

If I boot from the install DVD and do the following:

mount /dev/sda2 /mnt
btrfs su cr /mnt/@home
btrfs su cr /mnt/@fg-docs
umount /mnt
mount -o noatime,space_cache,autodefrag,subvol=@ /dev/sda2 /mnt/
mount -o noatime,space_cache,autodefrag,subvol=@home /dev/sda3 /mnt/home
mount -o noatime,space_cache,autodefrag,subvol=@fg-docs /dev/sda4 /mnt/home/francis/FG-Docs

All the mounts work fine except the FG-Docs mount fails with this error:

mount: /mnt/home/francis/FG-Docs: mount(2) system call failed: No such file or directory

However the folder /mnt/home/francis/FG-Docs is present when I do an ls on it as is the subvolume

btrfs su list /mnt/
        ID 257 gen 435 top level 5 path @
        ID 266 gen 438 top level 5 path @home
        ID 267 gen 439 top level 5 path @fg-docs

Where have I gone wrong?

question from:https://stackoverflow.com/questions/65924094/problem-mounting-partition-to-btrfs-subvolume-in-linux

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...