Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lost in btrfs again [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1589

PostPosted: Thu Jan 09, 2020 12:19 pm    Post subject: lost in btrfs again [solved] Reply with quote

Trying to install (using brtfs for the first time). It has not gone well. :(

The question is (this is much easier to see on a terminal with color output) why are the subvolume mount points (other than the one I specify) changing.

I have set the subvolume named root as the default subvolume.

Code:

# btrfs subvolume list /mnt/gentoo/
ID 257 gen 24 top level 5 path swap
ID 258 gen 28 top level 5 path root
ID 259 gen 24 top level 5 path usrlocal
ID 260 gen 24 top level 5 path var
ID 261 gen 24 top level 5 path tmp
ID 262 gen 24 top level 5 path home
ID 263 gen 24 top level 5 path usrportage

# mount -o noatime /dev/mapper/gentoo /mnt/gentoo/
# mount -o noatime,subvolid=swap /dev/mapper/gentoo /mnt/gentoo/swap/
# mount -o noatime,subvolid=usrlocal /dev/mapper/gentoo /mnt/gentoo/usr/local/
# mount -o noatime,subvolid=var /dev/mapper/gentoo /mnt/gentoo/var/
# mount -o noatime,subvolid=tmp /dev/mapper/gentoo /mnt/gentoo/tmp/
# mount -o noatime,subvolid=home /dev/mapper/gentoo /mnt/gentoo/home/
# mount -o noatime,subvolid=usrportage /dev/mapper/gentoo /mnt/gentoo/usr/portage/

# ls -al /mnt/gentoo/
total 64
drwxr-xr-x 1 root root  40 2020-01-09 00:00:00 ./
drwxr-xr-x 6 root root 120 2020-01-09 00:00:00 ../
drwxr-xr-x 1 root root  96 2020-01-09 00:00:00 home/
drwxr-xr-x 1 root root  12 2020-01-09 00:00:00 mnt/
drwxr-xr-x 1 root root  96 2020-01-09 00:00:00 swap/
drwxr-xr-x 1 root root  96 2020-01-09 00:00:00 tmp/
drwxr-xr-x 1 root root  24 2020-01-09 00:00:00 usr/
drwxr-xr-x 1 root root  96 2020-01-09 00:00:00 var/


# chmod 1777 /mnt/gentoo/tmp/
# ls -al /mnt/gentoo/
total 64
drwxr-xr-x 1 root root  40 2020-01-09 00:00:00 ./
drwxr-xr-x 6 root root 120 2020-01-09 00:00:00 ../
drwxrwxrwt 1 root root  96 2020-01-09 00:00:00 home/
drwxr-xr-x 1 root root  12 2020-01-09 00:00:00 mnt/
drwxrwxrwt 1 root root  96 2020-01-09 00:00:00 swap/
drwxrwxrwt 1 root root  96 2020-01-09 00:00:00 tmp/
drwxr-xr-x 1 root root  24 2020-01-09 00:00:00 usr/
drwxrwxrwt 1 root root  96 2020-01-09 00:00:00 var/

# chmod 755 /mnt/gentoo/home/
# ls -al /mnt/gentoo/
total 64
drwxr-xr-x 1 root root  40 2020-01-09 00:00:00 ./
drwxr-xr-x 6 root root 120 2014-01-09 00:00:00 ../
drwxr-xr-x 1 root root  96 2020-01-09 00:00:00 home/
drwxr-xr-x 1 root root  12 2020-01-09 00:00:00 mnt/
drwxr-xr-x 1 root root  96 2020-01-09 00:00:00 swap/
drwxr-xr-x 1 root root  96 2020-01-09 00:00:00 tmp/
drwxr-xr-x 1 root root  24 2020-01-09 00:00:00 usr/
drwxr-xr-x 1 root root  96 2020-01-09 00:00:00 var/


I obviously am not going to get very far with the installation if I can't even set directory permissions.


Last edited by curmudgeon on Thu Jan 09, 2020 5:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6480

PostPosted: Thu Jan 09, 2020 3:21 pm    Post subject: Reply with quote

The correct mount param for named volumes is "subvol", not "subvolid". You have the same path bind-mounted six times.
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1589

PostPosted: Thu Jan 09, 2020 5:35 pm    Post subject: Reply with quote

Ant P. wrote:
The correct mount param for named volumes is "subvol", not "subvolid". You have the same path bind-mounted six times.


Oops. :)

Would have been nice to see an error message that no such subvolid existed.

Thanks.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6480

PostPosted: Thu Jan 09, 2020 6:59 pm    Post subject: Reply with quote

According to the git log, subvolid wasn't validated until kernel 4.16. That might explain it if you're installing from some old livecd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum