Drive Pi mounting

From: ANT_THOMAS24 Sep 2016 21:43
To: william (WILLIAMA) 4 of 12
UUID=yourdriveuuid /media/whatever ntfs-3g defaults,windows_names,locale=en_GB.UTF-8 0 0

That's what I use on an Ubuntu server for ntfs drives.

There might be some Pi specific bits to add for better performance and user ids but try that to start.
EDITED: 24 Sep 2016 21:44 by ANT_THOMAS
From: william (WILLIAMA)24 Sep 2016 22:05
To: ANT_THOMAS 5 of 12
Yes, I could do a symlink. I may end up restoring the automatic USB mount and stick all the CHMODs and CHOWNs that I need in init.d and link from owncloud to the USB mountpoint.

I'm no expert on FSTAB syntax but it fits with the manual and I've seen some very similar recommendations for what I want to do (and yes, I know the interweb is full of peeps copying each others examples so that's no guarantee).

My theory is that the problem may be my using a drive powered from the Pi. I'm using a high quality power supply and I'm happy that there's bags of volts and amps and stuff to run everything, but, it sounds to me as though the drive powers down at least once during boot which suggests that some of the rails are being tested/played with on boot. My theory is that the drive is actually powered off when FSTAB is run. Just now I booted up with the drive unplugged and got exactly the same result, a folder with all the root folders visible inside. Now where did I put that USB cable with the extra power connector?

edit: crossed with your reply. I shall give that a try too. Thanks :)
EDITED: 24 Sep 2016 22:16 by WILLIAMA
From: ANT_THOMAS24 Sep 2016 22:31
To: william (WILLIAMA) 6 of 12
If you haven't already, and you think power is possibly an issue give this a go (assuming you're using a B+, 2 or 3)

Add
max_usb_current=1
To
/boot/config.txt
EDITED: 24 Sep 2016 22:31 by ANT_THOMAS
From: william (WILLIAMA)25 Sep 2016 07:58
To: ANT_THOMAS 7 of 12
Finally got it going with an old powered enclosure for the USB drive. Thanks for advice, although this time the original FSTAB entry worked OK. The max-usb-current thing was interesting. I went and had a read and concluded that there are some clever people about.

Honestly, it's amazing how problem piles in after problem sometimes. One day you try something out and it works right away. Next day you try something else nothing goes right. I suppose that being an old z/OS mainframe sysprog/DBA/programmer used to TSO, DB2, REXX and COBOL I should know better than to play with Linux.

 
From: william (WILLIAMA)25 Sep 2016 13:12
To: william (WILLIAMA) 8 of 12
I should point out, in case anybody on teh is looking at Owncloud - setup is a fucking nightmare and it absolutely isn't a simple project for the Raspberry Pi.
From: ANT_THOMAS25 Sep 2016 13:27
To: william (WILLIAMA) 9 of 12
I played with Owncloud a while back (not on a Pi but my normal server), if I remember it worked fine but for some reason I ended up not using it any more. Home upload speeds at the time could have been the reason because I think I wanted to use it as a dropbox replacement.

Glad to see you got it working. Even though the newer Pis are better when it comes to power I've always had issues when it comes to power and USB devices. A powered hub or enclosure tends to fix the problems. Crap USB cables and rubbish cheap power supplies are often to blame too.
From: CHYRON (DSMITHHFX)25 Sep 2016 13:42
To: william (WILLIAMA) 10 of 12
I did a test install of it a couple of years back on a regular x86 linux pc with lamp already up and running, and didn't find it too terrible, but I wasn't faffing around with external drive mounts either. Didn't seem terribly useful though.
From: william (WILLIAMA)25 Sep 2016 14:09
To: ANT_THOMAS 11 of 12
The problem for home users comes in little gotchas like dynamic IP addresses. So you give your Pi a static address and set up port forwarding and get some DNS help from noip.com or similar. At which point, enter the owncloud config file stage left. The help file for this is plain inadequate and arguably misleading. Certainly the default set up is no good for a home user - unless you only ever want to access your data from your home LAN. The interweb gives 100 different answers on how to set up the config file and if none of them work you're on your own as to whether it's port forwarding of NginX or Apache or Owncloud or...

So I haven't fixed that yet and it's only one of the problems I hit.
EDITED: 25 Sep 2016 14:25 by WILLIAMA
From: william (WILLIAMA)26 Sep 2016 08:56
To: william (WILLIAMA) 12 of 12
Got it up and running. It's free and so far it seems to work. It doesn't have the slick functionality of offerings such as dropbox and Google drive etc. but it actually has enough functionality to work and I'm sure that much of the lag and patchy connectivity etc. are down to my network which isn't exactly bullet proof enterprise standard. If you're in urgent need of a large amount of disk space that you can get at from multiple devices and across the internet, this might be worth considering.

The project has just had an acrimonious split as open source projects often do, with the founder developer and some of his fellow developers leaving to start Nextcloud (which is pretty well identical to ownCloud at the moment). Nextcloud seems to be run on a rather more traditional open source basis. No idea whether one or both will survive.