How about this:
I like that
@dalto just fired up my laptop and tried it on there.
it looks like if i try to delete @ then it asks for are you sure ? yes then it takes you too asking for root password, not you cannot delete mounted volume.
Also you cannot load btrfs subvolumes until you load btrfs data in general first
hope this helps
β°βΞ» findmnt --real
TARGET SOURCE FSTYPE OPTIONS
/ /dev/nvme0n1p4[/@] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,
ββ/run/timeshift/backup /dev/nvme0n1p4 btrfs rw,relatime,compress=zstd:3,ssd,space_cache
ββ/root /dev/nvme0n1p4[/@root] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,
ββ/boot/efi /dev/nvme0n1p1 vfat rw,relatime,fmask=0077,dmask=0077,codepage=
ββ/home /dev/nvme0n1p4[/@home] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,
ββ/srv /dev/nvme0n1p4[/@srv] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,
ββ/var/cache /dev/nvme0n1p4[/@cache] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,
ββ/var/log /dev/nvme0n1p4[/@log] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,
ββ/var/tmp /dev/nvme0n1p4[/@tmp] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,
ββ/var/lib/anbox/rootfs /dev/loop0 squashfs ro,relatime
ββ/var/lib/anbox/rootfs/cache
β /dev/nvme0n1p4[/@/var/lib/anbox/cache] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,
ββ/var/lib/anbox/rootfs/data
/dev/nvme0n1p4[/@/var/lib/anbox/data] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,
ββbrian@brian in ~ took 2ms
β°βΞ» btrfs sub li /
ERROR: can't perform the search: Operation not permitted
ββbrian@brian in ~
[π΄] Γ sudo btrfs sub li /
ID 256 gen 90096 top level 5 path @
ID 257 gen 90097 top level 5 path @home
ID 258 gen 90073 top level 5 path @root
ID 259 gen 86302 top level 5 path @srv
ID 260 gen 90092 top level 5 path @cache
ID 261 gen 90097 top level 5 path @log
ID 262 gen 88201 top level 5 path @tmp
ID 577 gen 88286 top level 5 path timeshift-btrfs/snapshots/2021-08-23_04-00-01/@
ID 578 gen 88285 top level 5 path timeshift-btrfs/snapshots/2021-08-23_06-48-18/@
ID 579 gen 88285 top level 5 path timeshift-btrfs/snapshots/2021-08-23_17-04-25/@
ID 580 gen 88285 top level 5 path timeshift-btrfs/snapshots/2021-08-24_04-00-01/@
ID 581 gen 90072 top level 5 path timeshift-btrfs/snapshots/2021-08-24_07-12-41/@
ID 582 gen 88284 top level 5 path timeshift-btrfs/snapshots/2021-08-24_21-40-10/@
ID 583 gen 88284 top level 5 path timeshift-btrfs/snapshots/2021-08-25_04-00-02/@
ID 584 gen 90071 top level 5 path timeshift-btrfs/snapshots/2021-08-25_21-07-54/@~~~
Hmmβ¦that isnβt good. If it reaches the point where it asking for a password it is about to delete it.
Can I see a couple of more things from that machine?
findmnt / -o source,target,uuid
sudo btrfs fi show
That is because it doesnβt know which device to read the subvolumes from if you have selected a device yet.
ββbrian@brian in ~ took 8s
β°βΞ» findmnt / -o source,target,uuid
SOURCE TARGET UUID
/dev/nvme0n1p4[/@] / 254c08ed-2f9a-4d57-8d98-9b56a52c327f
Label: none uuid: 254c08ed-2f9a-4d57-8d98-9b56a52c327f
Total devices 1 FS bytes used 84.36GiB
devid 1 size 428.71GiB used 89.03GiB path /dev/nvme0n1p4
Ok if that is what is intended
That is odd my output looks like this:
Label: none uuid: e4405217-3101-4ebd-8f25-7cd714f75ea0
Total devices 2 FS bytes used 12.29GiB
devid 1 size 79.74GiB used 14.07GiB path /dev/sda2
devid 2 size 8.00GiB used 0.00B path /dev/sdc1
Label: none uuid: 7ae7f073-e7c8-4ced-96f8-d02b356f83d9
Total devices 1 FS bytes used 192.00KiB
devid 1 size 8.00GiB used 536.00MiB path /dev/sdb1
Does yours not have the first line with the UUID?
Also, what is the deal with the ~~~
, is that your terminal truncating the output or something else?
EDIT: nvm, I see your output is just misformatted.
It looks like the output from findmnt --real
is truncated, the options are cut off in the middle.
Realistically, it would probably be better to load the btrfs data when the application loads. The only reason I didn't is because it would cause a password prompt.
May i help in something?
Love the diagnostic thing. Maybe save the data in garuda's private bin?
The btrfs information, in the device selecter instead of the uuid can the device name be used?
It asked me for confirmation to delete my home volume, Now i don't feel like pressing yes. So is their a failsafe after this stage or before this stage?
Those outputs are small so I think it is better to encourage them to post them directly in the forum than on privatebin. The copy for forum button adds the formatting tags for the forum.
That was my original intention but btrfs volumes can span devices so the only reliable indicator is UUID.
Right now, you will get asked for your password if it is really going to proceed. Donβt enter it if you donβt want your data to be deleted.
That being said, @TilliDie pointed out the same thing. Right now, the confirmation question is the first check. It should probably be the last check.
Dont know why everything in BTRFS is empty for me
IF this is of any use
β°βΞ» findmnt --real
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sda5[/@] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=315,subvol=/@
ββ/run/user/1000/doc
β portal fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1001
ββ/var/tmp /dev/sda5[/@tmp] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=262,subvol=/@tmp
ββ/root /dev/sda5[/@root] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=258,subvol=/@root
ββ/home /dev/sda5[/@home] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=257,subvol=/@home
ββ/var/log /dev/sda5[/@log] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=261,subvol=/@log
ββ/boot/efi /dev/sda1 vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro
ββ/var/cache /dev/sda5[/@cache] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=260,subvol=/@cache
ββ/srv /dev/sda5[/@srv] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=259,subvol=/@srv
ββvinay007@vinay in ~ took 4ms
β°βΞ» findmnt
TARGET SOURCE FSTYPE OPTIONS
/ /dev/sda5[/@] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=315,subvol=/@
ββ/proc proc proc rw,nosuid,nodev,noexec,relatime
β ββ/proc/sys/fs/binfmt_misc systemd-1 autofs rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16420
β ββ/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime
ββ/sys sys sysfs rw,nosuid,nodev,noexec,relatime
β ββ/sys/firmware/efi/efivars efivarfs efivarfs rw,nosuid,nodev,noexec,relatime
β ββ/sys/kernel/security securityfs securityfs rw,nosuid,nodev,noexec,relatime
β ββ/sys/fs/cgroup cgroup2 cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot
β ββ/sys/fs/pstore pstore pstore rw,nosuid,nodev,noexec,relatime
β ββ/sys/fs/bpf none bpf rw,nosuid,nodev,noexec,relatime,mode=700
β ββ/sys/kernel/debug debugfs debugfs rw,nosuid,nodev,noexec,relatime
β ββ/sys/kernel/tracing tracefs tracefs rw,nosuid,nodev,noexec,relatime
β ββ/sys/fs/fuse/connections fusectl fusectl rw,nosuid,nodev,noexec,relatime
β ββ/sys/kernel/config configfs configfs rw,nosuid,nodev,noexec,relatime
ββ/dev dev devtmpfs rw,nosuid,relatime,size=3970492k,nr_inodes=992623,mode=755,inode64
β ββ/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000
β ββ/dev/shm tmpfs tmpfs rw,nosuid,nodev,inode64
β ββ/dev/hugepages hugetlbfs hugetlbfs rw,relatime,pagesize=2M
β ββ/dev/binderfs none binder rw,relatime,max=1048576
β ββ/dev/mqueue mqueue mqueue rw,nosuid,nodev,noexec,relatime
ββ/run run tmpfs rw,nosuid,nodev,relatime,mode=755,inode64
β ββ/run/credentials/systemd-sysusers.service
β β none ramfs ro,nosuid,nodev,noexec,relatime,mode=700
β ββ/run/user/1000 tmpfs tmpfs rw,nosuid,nodev,relatime,size=799076k,nr_inodes=199769,mode=700,uid=1000,gid=1001,inod
β ββ/run/user/1000/doc portal fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1001
ββ/var/tmp /dev/sda5[/@tmp] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=262,subvol=/@tmp
ββ/root /dev/sda5[/@root]
β btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=258,subvol=/@root
ββ/home /dev/sda5[/@home]
β btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=257,subvol=/@home
β ββ/home/guest tmpfs tmpfs rw,nosuid,nodev,mode=750,uid=1001,gid=984,inode64
ββ/var/log /dev/sda5[/@log] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=261,subvol=/@log
ββ/boot/efi /dev/sda1 vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,er
ββ/var/cache /dev/sda5[/@cache]
β btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=260,subvol=/@cache
ββ/srv /dev/sda5[/@srv] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=259,subvol=/@srv
ββ/tmp tmpfs tmpfs rw,noatime,inode64
@vinay007 You need to load btrfs data
wow im really noob
I am going to look at the way we are handling data there and see if there is a way we can preload data without asking for a password multiple times.
I also need to change the defaults for those bars to 0 instead of 24.
I also show nothing in btrfs general tab, and when I go to Devices, nothing shows up there. Also the subvolumes tab is empty.
findmnt --real
TARGET SOURCE FSTYPE OPTIONS
/ /dev/nvme0n1p2[/@] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=446,subvol=/@
ββ/media/NASMedia //192.168.2.9/media cifs rw,relatime,vers=2.1,cache=strict,username=tim,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.2.9,file_m
ββ/var/log /dev/nvme0n1p2[/@log] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=260,subvol=/@log
ββ/var/tmp /dev/nvme0n1p2[/@tmp] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=261,subvol=/@tmp
ββ/srv /dev/nvme0n1p2[/@srv] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=258,subvol=/@srv
ββ/boot/efi /dev/nvme0n1p1 vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro
ββ/root /dev/nvme0n1p2[/@root] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=257,subvol=/@root
ββ/var/cache /dev/nvme0n1p2[/@cache] btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=259,subvol=/@cache
ββ/home /dev/nvme0n1p3 btrfs rw,noatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=5,subvol=/
ββ/home/tim/Data /dev/sda1 btrfs rw,nosuid,nodev,relatime,space_cache,subvolid=5,subvol=/
The solution is probably also the same. You need to hit the load btrfs data button.
@dalto Ive just tested again on vm and you can delete the @ volume