Possible to get nextcloud to run from USB-harddrive? Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
satfoxy
Posts: 20
Joined: Mon Dec 26, 2016 6:40 am

Re: Possible to get nextcloud to run from USB-harddrive?

Post by satfoxy »

Have you edit the line at the config.php?

Code: Select all

datadirectory => var/www/owncloud/data

I think you haft to edit this line for the storage place.

And one more thing is if the disk is spinning all the time will get warm.It is faster to respond but...!!!
I had setup it in this style and i didnt like cose is not safe also for the data.
Keep us informed whith your setup cose I'm also interesting.
juliuscaesar

Re: Possible to get nextcloud to run from USB-harddrive?

Post by juliuscaesar »

I've tested my configuration out a bit now and this is what i've done so far.

I've changed the spindown back on, since the longer duration (lifetime) of the hard drive is much more appreciated than speed.
i.e made no changes to etc/hdparm.conf everything is now working as expected. I just reinstalled Nextcloud and chose force USB under drive manager. Hope that might help others encountering similar issues in the future!
jngutierrez

Re: Possible to get nextcloud to run from USB-harddrive?

Post by jngutierrez »

Fourdee wrote:
juliuscaesar wrote:Thank you, i will look into that!

It also seems that my USB Harddrive is not reachable from time to time, i think it has to do with some setting like hdd spindown. Is it possible to change that setting somewhere so that the usb harddrive is always active and running?
Yep, Disable the following from /etc/hdparm.conf:

Code: Select all

#DietPi external USB drive. Power management settings.
/dev/sda {
        #10 mins
        spindown_time = 120

        #
        apm = 254
}
" Data directory (/mnt/dietpi_userdata/nextcloud_data) is invalid
Please check that the data directory contains a file ".ocdata" in its root "
Strange, did you transfer the userdata location using dietpi-drive_manager or dietpi-software?

Lets check current userdata locations and contents, please paste results:

Code: Select all

ls -lha /mnt/dietpi_userdata
ls -lha /mnt
If your USB drive is attached, please also run:

Code: Select all

ls -lha /mnt/usb_1
Hi. Im planning to store my data on an external 2.5" HDD connecting it to my OPi with this cable (or similar) and a dedicated power supply for it. Would it be necessary to edit the hdparam.conf to avoid spindwon?

Thanks.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Possible to get nextcloud to run from USB-harddrive?

Post by Fourdee »

jngutierrez wrote:Would it be necessary to edit the hdparam.conf to avoid spindwon?
Unknown on this adapter, but if in doubt, disabling the spin down feature would be beneficial to avoid a possible issue.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply