Storing Permanent Files / Scripts

Status
Not open for further replies.

NASbox

Guru
Joined
May 8, 2012
Messages
650
Can someone tell me where I can store 2 or 3 MB of files (scripts) on the file system
so that it will survive a reboot?

If that area is normally Read-Only, what command do I need to issue from the command
line to make it RW and the put it back to RO

Thanks in advance for your help (I think this might be a good question to add to the FAQ)
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402
It's better to install the scripts to a second UFS formatted USB drive. I know several other people on the forum do it that way. Otherwise I believe the scripts get wiped out during an upgrade. Another benefit is you can write to a 2nd USB drive as often as you want and not have it affect your FreeNAS stick.

The commands you are looking for:
Code:
mount -uw /

mount -ro /
 

peterh

Patron
Joined
Oct 19, 2011
Messages
315
How about creating a filesystem on your nas and have it mounted at some place ?
What you need is an adjustment of /etc/fstab on the usb that mounts this filesystem at boot.
 
Status
Not open for further replies.
Top