Move the /tmp folder permantely to hard disk

Questions about SNMP, Power, System, Logs, disk, & RAID.
User avatar
OneCD
Guru
Posts: 12037
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 »

joelang1699 wrote:Id love to know how to make this persist too?
viewtopic.php?f=45&t=130345

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

Re: Move the /tmp folder permantely to hard disk

Post by joelang1699 »

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


TVS-EC1080 32Gb Ram 10x WD60EFRX Raid 6

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

TS-879 Pro 2Gb Ram 3 X WD60EFRX Raid 5

TVS-863 4Gb Ram 3 X WD60EFRX Raid 5
User avatar
OneCD
Guru
Posts: 12037
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 »

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.

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

Re: Move the /tmp folder permantely to hard disk

Post by joelang1699 »

Ah cheers. Ill get into that tomorrow!
Regards
Joe


TVS-EC1080 32Gb Ram 10x WD60EFRX Raid 6

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

TS-879 Pro 2Gb Ram 3 X WD60EFRX Raid 5

TVS-863 4Gb Ram 3 X WD60EFRX Raid 5
Locked

Return to “System & Disk Volume Management”