Page 1 of 1

Not able to share files to a portable drive on my Raspberry Pi.

Posted: Mon Sep 09, 2019 12:21 pm
by Sulforaphane
I am not able to transfer files from my windows machine to a portable drive connected to my Raspberry Pi on the network through Samba. I am however able to view and read them.

The drive is mounted to /disks/ and has following permissions:

Code: Select all

drwxrwxrwx 1 root root 131072 Jan  1  1970 DRIVENAME
Anyone know what's up?

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Mon Sep 09, 2019 12:35 pm
by topguy
See what "mount" reports, also look at the content of the directory ?

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Mon Sep 09, 2019 12:36 pm
by Sulforaphane
topguy wrote:
Mon Sep 09, 2019 12:35 pm
See what "mount" reports, also look at the content of the directory ?
What is the command for that?

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Mon Sep 09, 2019 1:04 pm
by topguy

Code: Select all

mount
;--)

and...

Code: Select all

ls -al /disks/DRIVENAME

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Mon Sep 09, 2019 1:33 pm
by Sulforaphane
topguy wrote:
Mon Sep 09, 2019 1:04 pm

Code: Select all

mount
;--)

and...

Code: Select all

ls -al /disks/DRIVENAME
Oh! Here is the mount.

Code: Select all

/dev/sda3 on /disks/DRIVENAME type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
Inside the drive, everything is pretty much listed as "root" except:

Code: Select all

drwxr-xr-x 4 pi   pi     4096 Sep  8 19:09  ..

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Mon Sep 09, 2019 9:00 pm
by Sulforaphane
Bump

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Tue Sep 10, 2019 5:47 am
by Sulforaphane
Update:

Apparently it's not a matter of permissions, as I am able to transfer small files.

Only big files give me an issue. I've done some digging, and it seems to be how Debian handles ExFAT drives and allocation.

The drive is ExFAT so I can use it on a Windows device also, but do any of you know a solution to this problem?

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Tue Sep 10, 2019 5:51 am
by rpdom
Reformat it as NTFS and install ntfs3g on the Pi. It won't be fast, but it will work.

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Tue Sep 10, 2019 7:09 am
by Sulforaphane
rpdom wrote:
Tue Sep 10, 2019 5:51 am
Reformat it as NTFS and install ntfs3g on the Pi. It won't be fast, but it will work.
Is there any way to make ExFAT work with transferring large files cross-platform?

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Tue Sep 10, 2019 9:37 am
by topguy
And by large files you mean 4GB+ size files ??

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Tue Sep 10, 2019 5:53 pm
by Sulforaphane
topguy wrote:
Tue Sep 10, 2019 9:37 am
And by large files you mean 4GB+ size files ??
Also 2 GB

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Tue Sep 10, 2019 7:50 pm
by Andyroo
topguy wrote:
Tue Sep 10, 2019 9:37 am
And by large files you mean 4GB+ size files ??
exFat should not have an issue with files larger the 4Gb, Fat32 yes but not exFat.

FAT32 tops out with files at 4 GB in size and hard drives that are 8 TB or less.

ExFat is silly with 16EB files and 128PB volumes :roll:

The only box I’ve played with ExFat on (Debian) needed

Code: Select all

sudo apt install exfat-utils exfat-fuse
to run - unsure about a Pi...

Re: Not able to share files to a portable drive on my Raspberry Pi.

Posted: Tue Sep 10, 2019 10:30 pm
by Sulforaphane
Andyroo wrote:
Tue Sep 10, 2019 7:50 pm
topguy wrote:
Tue Sep 10, 2019 9:37 am
And by large files you mean 4GB+ size files ??
exFat should not have an issue with files larger the 4Gb, Fat32 yes but not exFat.

FAT32 tops out with files at 4 GB in size and hard drives that are 8 TB or less.

ExFat is silly with 16EB files and 128PB volumes :roll:

The only box I’ve played with ExFat on (Debian) needed

Code: Select all

sudo apt install exfat-utils exfat-fuse
to run - unsure about a Pi...
Running both. Still having an issue. Gotta wonder what is causing the issue...