Samba disk space problem - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Software (/forum-6.html) +--- Forum: Configuration (/forum-17.html) +--- Thread: Samba disk space problem (/thread-974.html) |
Samba disk space problem - danell - 8th Jun, 2013 09:59 PM Hi! I have a really irritating problem and I have looked for the solution for 2 days but without any success! I have a 2TB external harddrive plugged into my Raspberry (xbian) and it works correct and so on, but when I'm trying to access it by samba to transfer files it only shows that I have 2,79gb left (of 3,59gb total) in media/usb and media/usb0 I'm using a 4gb sdhc card on the Raspberry so I'm guessing that's what's going wrong. I have tried going trough WinSCP to transfer by ssh but the same problem there. I tried downloading a 8gb movie from CouchPotato and that worked without any problems, so it's the Samba's problem now. The drive is in Ext4 so the windows can't read it. I installed Ext2 Volume Manager to mount it in windows but the drive was write-protected. I tried a lot of chmod and chown but nothing worked. DF shows Code: xbian@xbian ~ $ df so it's there with the correct space! Please help! RE: Samba disk space problem - mk01 - 9th Jun, 2013 02:41 AM create a file named xbian-smb-free in /usr/local/bin, do a chmod +x on it. content as follows Code: #!/bin/sh edit smb.conf under /etc/samba and put this under [global] section Code: dfree command = /usr/local/bin/xbian-smb-free RE: Samba disk space problem - danell - 9th Jun, 2013 07:27 PM It didn't work correctly. It stops after copying a while. Maybe it's something with my smb.conf file. Here it is: Code: [global] RE: Samba disk space problem - mk01 - 15th Jun, 2013 11:48 AM - I don't know how this plays with "wide links", try to remove it from smb.conf (default is "no") - is the /usr/local/bin/xbian-smb-free +x (executable bit set)? do a "ls -la /usr/local/bin/xbian-smb-free" and post here - what is version of your samba package installed? do "apt-cache policy samba" (latest available is 3.6.6-6) if all this is ok and you have still wrong "free space" readings, no idea. update: ok, I see your problem. I now realized you are exporting /media, which includes all the usb devices mounted. this will not work. You have to share /media/usb0 something. Probably you exported /media because the always changing /media/usbX mount dir. but this can be solved by: - installing xbian-package-usbmount package (part of beta1 release ) from git. with this your usb devices mountpoints should be static under /media - checking if /var/run/usbmount exists. there should be a link (with static name) pointing to always the actual /media/usbX - editing /etc/fstab by adding entry like: Code: UUID=xxxxx /media/my_usb_disk ext4 defaults,rw,noatime 0 0 where xxxx you can find by launching "blkid" from terminal. then the partition will always be mounted even with the old usbmount under the same directory. mk |