CyberShadow / btdu

sampling disk usage profiler for btrfs
GNU General Public License v2.0
418 stars 6 forks source link

Can't seem to find root #14

Closed bshor closed 1 year ago

bshor commented 1 year ago

Hello, I must be misunderstanding something basic. I'm trying to run btdu on my system, which is a Garuda Linux (Arch derivative) distribution.

Here's the fstab entry for /. Isn't this enough to run? Instead I get the error that I'm

UUID=.... / btrfs subvol=/@,defaults,noatime,space_cache,noautodefrag,compress-force

Instead I get the error

Fatal error: / is not the root btrfs subvolume

Probably I need to temporarily mount something, but I'm not exactly sure how.

BitBernd commented 1 year ago

Hi,

I just installed the tool 10 minutes ago to investigate some weird stuff going on with my btrfs. I had no luck just using sudo btdu / either.

So I followed the instructions and mounted my btrfs partition to a separate mount point. On my machine this looked like this:

mkdir btrfs_mnt
sudo mount /dev/sdb2 btrfs_mnt/ -o subvol=/,subvolid=5 
sudo btdu btrfs_mnt/

It took me 5 minutes to find the problem. I wasted the entire evening yesterday on this problem trying to diagnose with standard btrfs tools. Thanks to CyberShadow for this great tool!

CyberShadow commented 1 year ago

@bshor btdu should print an explanation and instructions for how to mount the root subvolume along with that error message, does it not do that for you?

bshor commented 1 year ago

@bshor btdu should print an explanation and instructions for how to mount the root subvolume along with that error message, does it not do that for you?

No. Only "Fatal error: / is not the root btrfs subvolume - please specify the path to a mountpoint mounted with subvol=/ or subvolid=5"

bshor commented 1 year ago

@BitBernd Your instructions worked perfectly. I wasn't figuring out the correct mounting instructions. Thank you!

CyberShadow commented 1 year ago

@bshor Your version of btdu is very old. That variation of the message has since been improved several times. In any case I suggest using the latest version of btdu. If you got that version of btdu from somewhere recently, please let me know where that is so that we can get it fixed.

BitBernd commented 1 year ago

When I saw this msg earlier today it was a bit longer but was not including any instructions. I got my install fresh from the AUR.

CyberShadow commented 1 year ago

I'm confused. Which instructions did you refer to in your previous message then? ("So I followed the instructions and [...]")

Your AUR helper may be giving you an old version. Try running btdu without arguments, it will print the version on the first line.

bshor commented 1 year ago

@CyberShadow Indeed I was using the btdu-bin package from the AUR, which was version 0.3.0. I uninstalled it and installed the normal btdu package, which is version 0.5.0.

CyberShadow commented 1 year ago

Thanks! I submitted a request to delete that package as it's unmaintained for some time.