Move the /tmp folder permantely to hard disk

Questions about SNMP, Power, System, Logs, disk, & RAID.
User avatar
OneCD
Ask me anything
Posts: 7316
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Move the /tmp folder permantely to hard disk

Post by OneCD » Thu Mar 16, 2017 5:21 am

joelang1699 wrote:Id love to know how to make this persist too?

viewtopic.php?f=45&t=130345

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
joelang1699
Easy as a breeze
Posts: 386
Joined: Tue Feb 03, 2009 11:33 am

Re: Move the /tmp folder permantely to hard disk

Post by joelang1699 » Thu Mar 16, 2017 6:05 am

Sorry OneCD im not sure what im looking for here?
Regards
Joe


TVS-EC1080 16Gb Ram 8x WD60EFRX Raid 6

TS-1079 Pro 16Gb Ram 10x WD60EFRX Raid 6

User avatar
OneCD
Ask me anything
Posts: 7316
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Move the /tmp folder permantely to hard disk

Post by OneCD » Thu Mar 16, 2017 6:35 am

No worries. ;)

Start by establishing an autorun environment on your NAS. The post I linked to includes a script that does this for you.

Then create a shell script (call it resize-tmp.sh) with the following contents:

Code: Select all

#!/bin/sh

mount -o remount,size=1024m /tmp
... and place this script into the scripts directory shown in that post.

Mark your new script as executable:

Code: Select all

chmod +x resize-tmp.sh

Now, whenever you boot, your /tmp directory will be resized.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
joelang1699
Easy as a breeze
Posts: 386
Joined: Tue Feb 03, 2009 11:33 am

Re: Move the /tmp folder permantely to hard disk

Post by joelang1699 » Thu Mar 16, 2017 6:41 am

Ah cheers. Ill get into that tomorrow!
Regards
Joe


TVS-EC1080 16Gb Ram 8x WD60EFRX Raid 6

TS-1079 Pro 16Gb Ram 10x WD60EFRX Raid 6

Post Reply

Return to “System & Disk Volume Management”