Lakshmipathi / dduper

Fast block-level out-of-band BTRFS deduplication tool.
GNU General Public License v2.0
168 stars 18 forks source link

Permission denied error? #62

Open bshor opened 3 years ago

bshor commented 3 years ago

I installed dduper on my Ubuntu 21.04 system with a BTRFS file system called mounted as /data in /dev/sda1. I'm trying to play around with it on a single directory, but I keep getting permission denied errors.

dduper -p /dev/sda1 --dir /data/G --recurse --dry-run

Tells me ..

ERROR: cannot open '/dev/sda1': Permission denied
unable to open /dev/sda1

Adding sudo in front of dduper doesn't work either.

Any ideas?

Lakshmipathi commented 3 years ago

sudo also didn't help? That's strange. Are you using it from docker or installed it on host itself? Can you provide more info about installation and your server details?

Alseenrodelap commented 10 months ago

I have this exact issue too. And when I do it with sudo it says:

Traceback (most recent call last): File "/usr/sbin/dduper", line 17, in import numpy as np ModuleNotFoundError: No module named 'numpy'

Probably because it then has other Python session data?

Lakshmipathi commented 10 months ago

@Alseenrodelap your issue seems like different from OP. I think your sudo environment doesn't have numpy module. You can verify this with something like pip3 list | grep numpy