I've been looking around for a couple of days now for a solution to get my mounted gdrive in samba. I want to share this cloudstorage with my daughters on Win10 PC's. The samba share for the two SSD's on my Raspberry Pi 4B are working great and the share of my gdrive is showing but I keep getting the No Acces error no matter what I do.
I'm not 'all that' on Linux system and all I'm doing is reading (a lot..) en copy/paste and test if I'm doing ok. I'm new on Rclone and it seems like a perfect solution for us. I followd the specific instructions on a fresh Debian Buster install on my new Raspberry Pi 4B
and it's up-n-running. Last thing I want/need is to get my gdrive setup working in my sambaconfig.
If there's anyone who's willing to give me some advice, please be a little patient and give me some specific instructions.
For the initial install I used the curl https://rclone.org/install.sh | sudo bash so I gues I'm on the latest stable version of Rclone. Like I said, it's working great on my Pi.
rclone v1.51.0 - os/arch: linux/arm - go version: go1.13.7
In my smb.conf I have setup the samba for my first HDD as:
you should not share a folder that has a space character in it.
it just complicates things on windows.
change it to googledrive
and have you tried to connect to the share on the command line?
if so, what is the command you tried? net use x: \\server\googledrive /user:username password
are you able to connect to the share named backup?
Thanks for your reply and this warm welcome.
I renamed the folder to GoogleDrive. No succes but thats was a good one for sure.
Tried to use the commandline (thinking you mean on Win 10?) Made GoogleDrive X and used pi en psw. No succes.However...
I suddenly was able to connect with a different user/pasw and tried some things.
Still no succes. Thanks so far!
Yes I am able to connect to Backup. This is an USB SSD. One other thing though.
when I use Gnome to list my disks all my drives are listed but not the gdrive. But gdrive is not a physical drive.
One other strange thing. In the second picture of my orginal post there's a Pi folder. I'm also able to log in and even see the mnt folder. It's empty? There should be the gdrive, right?
At first the only thing showing when I was connecting to the folder GoogleDrive was
Then, when I made a networkconnextion and added GoogleDrive to driveletter X I had to log in
None of the credentials I used could open GoogleDrive folder though. So I agree that there must be soms permission issues.
All I did was following the instructions here as they were provided.
So mouting gdrive for me was:
mkdir -p mnt/gdrive
rclone mount gdrive: $HOME/mnt/gdrive
for the folder /mnt/gdrive
does the folder exist?
if so, it is empty?
from the pi command line, what do you get with this command?
`ls -l ~/mnt/gdrive
why are doing this command? mkdir -p mnt/gdrive
not sure that is correct
on windows, that would cause the mount command to fail. FUSE file system: mount point in use.
did you ever create a rclone log file with debug info?
we need that
add --log-level=DEBUG --log-file=/path/to/local/folder/log.txt
and post the log
[quote="asdffdsa, post:7, topic:14783, full:true"]
for the folder /mnt/gdrive
does the folder exist? Yes
if so, it is empty? Not on the Pi. In the Pi windowsshare it is empty
from the pi command line, what do you get with this command?
`ls -l ~/mnt/gdrive This is what I get: Both folders are on Google Drive
drwxr-xr-x 1 pi pi 0 mrt 2 17:18 'Documenten van'
drwxr-xr-x 1 pi pi 0 mrt 2 17:43 "Foto's"
why are doing this command? Only because it was in the instruction I used mkdir -p mnt/gdrive
not sure that is correct
on windows, that would cause the mount command to fail. FUSE file system: mount point in use.So how do I solve this?
did you ever create a rclone log file with debug info?
we need that and post the log I don't think I am doing this right. I'm doing:
rclone mount gdrive: $HOME/mnt/gdrive --log-level=DEBUG --log-file=home/pi/Documents/log.txt
I'm getting: 2020/03/08 17:14:36 Failed to open log file: open home/pi/Documents/log.txt: no such file or directory
Sorry for my lowlevel understanding of Rclone or Debian
I use a .service file (in systemd) for automounting. I deleted this, rebooted the Pi and gdrive did not mount. I deleted the folder home/pi/gdrive. It did not deleted cloud storage.
Now when I use the command as above I get:
ls: kan geen toegang krijgen tot 'home/pi/Documents': Bestand of map bestaat niet
cannot acces 'home/pi/documents': File or folder does not exist
given that your command is not working, not sure i would bother systemd yet, get it working on the command line first.
i think the command should have been this, noticed the extra slash in the log file path. rclone mount gdrive: $HOME/mnt/gdrive --allow-other --log-level=DEBUG --log-file=/home/pi/Documents/log.txt
2020/03/08 19:46:20 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "mount" "gdrive:" "/home/pi/mnt/gdrive" "--allow-other" "--log-level=DEBUG" "--log-file=/home/pi/Documents/log.txt"]
2020/03/08 19:46:20 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2020/03/08 19:46:20 Fatal error: Can not open: /home/pi/mnt/gdrive: open /home/pi/mnt/gdrive: no such file or directory