Forum archive
Add usb HDD to TurnKey server (home)
Hello,i am using: Lighttpd PHP FastCGI on a home pc.
I want to add more space to ftp (add usb HDD)
How can i do this?
I insert the HDD on usb port, then?
How can i activate that hdd,i need to edit some option or?
Thank you.
In the example I used /media/usbhdd but instead you could use a sub-directory of a user's home (if that's what you want). Another option is to leave it as is and use mount with the '--bind' switch to remount /media/usbhdd wherever you want.
You may need to fiddle with permissions (for mounting) to make it writeable by your users. The thing to keep in mind though, is that if you mount it to an existing directory then the contents of the existing directory will be hidden and you will only see the contents of your USB HDD. (As unplugging a HDD that is part of an LVM will not be good!)
If you want to make your root partition (i.e. '/' - like in your screenshot) bigger, then the best way to do that is to increase the LVM size - see this blog post (it's a little dated but still relevant). However if you want to go that route I would NOT recommend you do it with a USB HDD, I would suggest that you get an additional internal HDD.
Also FWIW a lot of what I have written about is probably possible from within Webmin (rather than the commandline) but I'm not very familiar with Webmin.
Also another hint: While this is TurnKey Linux; it is based on Debian so if you google for Debian related info you will often find plenty of answers. TurnKey v13.x is based on Debian Wheezy (aka 7.x)