This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Saving a file permanently
-
oboro-ky
- NewUser

- Posts: 1
- Joined: 08 Oct 2012 01:25
- Status: Offline
[SOLVED] store a few files on embedded install to keep?
I'm not sure about this but at one time I was able to do this with FN 7.
I need to save 3 files somewhere on the usb F4N embed thumbdrive that the root user can see and execute. These are files that I use via script to check the status of the 3ware raid. When I put these files on the usb drive they are removed on the next reboot.
Can someone tell me if there is a folder I can save these files to so they will not be removed the nect time I reboot the machine? Root user will also have to have rights to write to one of these files.
Thanks
I need to save 3 files somewhere on the usb F4N embed thumbdrive that the root user can see and execute. These are files that I use via script to check the status of the 3ware raid. When I put these files on the usb drive they are removed on the next reboot.
Can someone tell me if there is a folder I can save these files to so they will not be removed the nect time I reboot the machine? Root user will also have to have rights to write to one of these files.
Thanks
Last edited by al562 on 31 Dec 2012 08:58, edited 1 time in total.
Reason: Adjusted Subject. Added [SOLVED] Tag.
Reason: Adjusted Subject. Added [SOLVED] Tag.
-
roach9
- Starter

- Posts: 25
- Joined: 02 Jul 2012 20:45
- Status: Offline
Re: store a few files on the embed install to keep
I would love to know this as well as I have a few scripts that need to be ran but they keep disappearing!!
-
armandh
- Advanced User

- Posts: 398
- Joined: 23 Jun 2012 04:15
- Location: St Louis County Missouri USA
- Status: Offline
Re: store a few files on the embed install to keep
a second thumb drive???
4 thread 3300 Mhz Intel i3, 1 TB ZFS mirror, available RAM 7.823 Gb, 64 bit NAS4Free 9.1.0.1 rev 573 [88 watts, 48 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]
- lux
- Advanced User

- Posts: 193
- Joined: 23 Jun 2012 11:37
- Location: Bielefeld, Germany
- Contact:
- Status: Offline
Re: store a few files on the embed install to keep
embedded install with 2. Partition for Data Storage but with NO Swap
i've installed this way via LiveCD - you can mount 2. Partition & use for your need's
i've installed this way via LiveCD - you can mount 2. Partition & use for your need's
Home:11.3.x.7538/emb@32GB USB|1270v2@X9SCA-F|ECC32GB|i340-T4[lagg@GS108Tv2&smb-mch]|M1015@IT|9HDD~40TB@3xRaidZ1+1HDD+2SSD i335&i520+1xi800P@ZIL|~44W idle@SS-400FL2|Nanoxia Deep Silence 6B|24/7
Services: CIFS, FTP, TFTP, SSH, NFS, Rsync, Syncthing, Webserver, BitTorrent, VirtualBox | Extensions: OBI, TheBrig[certbot, Asterisk] | Extensions via vBox: Pi-hole, Jellyfin & zigbee2mqtt @DebianVM's
Test:12.x/emb@16GB USB|X3 420e@M4A88TD-V|16GB|i350-T2|M1015@IT|8xHDD+3xSSD[different Size&Brand]RaidZ1+2|for TESTing only
Services: CIFS, FTP, TFTP, SSH, NFS, Rsync, Syncthing, Webserver, BitTorrent, VirtualBox | Extensions: OBI, TheBrig[certbot, Asterisk] | Extensions via vBox: Pi-hole, Jellyfin & zigbee2mqtt @DebianVM's
Test:12.x/emb@16GB USB|X3 420e@M4A88TD-V|16GB|i350-T2|M1015@IT|8xHDD+3xSSD[different Size&Brand]RaidZ1+2|for TESTing only
-
roach9
- Starter

- Posts: 25
- Joined: 02 Jul 2012 20:45
- Status: Offline
Re: store a few files on the embed install to keep
So this would require a reinstall of NAS4Free entirely, huh?lux wrote:embedded install with 2. Partition for Data Storage but with NO Swap
i've installed this way via LiveCD - you can mount 2. Partition & use for your need's
-
armandh
- Advanced User

- Posts: 398
- Joined: 23 Jun 2012 04:15
- Location: St Louis County Missouri USA
- Status: Offline
Re: store a few files on the embed install to keep
since embedded N4F establishes a new hardware profile with each boot
it is NOT a new instillation if you have saved and restore the configuration files.
the embedded version of N4F and it's predecessor FN7 are easily written on new boot medium then
simply set the nic and IP to restore the config, DONE!
it is NOT a new instillation if you have saved and restore the configuration files.
the embedded version of N4F and it's predecessor FN7 are easily written on new boot medium then
simply set the nic and IP to restore the config, DONE!
4 thread 3300 Mhz Intel i3, 1 TB ZFS mirror, available RAM 7.823 Gb, 64 bit NAS4Free 9.1.0.1 rev 573 [88 watts, 48 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]
-
roach9
- Starter

- Posts: 25
- Joined: 02 Jul 2012 20:45
- Status: Offline
Re: store a few files on the embed install to keep
this is a little unclear armandh, are you saying that we can add the script files to folder on the usb drive... save the configuration (how do we do this), reboot, and it should be fine?armandh wrote:since embedded N4F establishes a new hardware profile with each boot
it is NOT a new instillation if you have saved and restore the configuration files.
the embedded version of N4F and it's predecessor FN7 are easily written on new boot medium then
simply set the nic and IP to restore the config, DONE!
-
jandegr
- Starter

- Posts: 44
- Joined: 23 Jun 2012 17:41
- Location: Belgium
- Status: Offline
Re: store a few files on the embed install to keep
Hi,
3 script files are probalby not a lot of bytes, there is a little room left in /cf, that is
the USB stick that holds your NAS4Free embedded install.
to make it writable :
now copy your scripts to /cf
they will be there untill you upgrade your NAS4Free to a new version.
After reboot they will be read only.
The install with data partion as suggested by Lux will work as well,
but requires a new install, and you have to mount the second partition.
You can treat it as any other disk you add. This will survive upgrades of
NAS4Free throug the gui with an img file as well. Files have read/write acces.
You can also put them anywhere on a data disk.
regards,
jandegr
3 script files are probalby not a lot of bytes, there is a little room left in /cf, that is
the USB stick that holds your NAS4Free embedded install.
to make it writable :
Code: Select all
mount -u /cfthey will be there untill you upgrade your NAS4Free to a new version.
After reboot they will be read only.
The install with data partion as suggested by Lux will work as well,
but requires a new install, and you have to mount the second partition.
You can treat it as any other disk you add. This will survive upgrades of
NAS4Free throug the gui with an img file as well. Files have read/write acces.
You can also put them anywhere on a data disk.
regards,
jandegr
-
JohnHaxen
- NewUser

- Posts: 1
- Joined: 29 Dec 2012 05:34
- Status: Offline
Saving a file permanently
I find myself needing to do the wipe.sh to clear old metadata (for reusing drives that were once part of a ZFS pool) quite a bit lately and it's getting rather annoying having to retype the script each time. I create the wipe.sh in the /mnt directory but it gets wiped out each time I reboot the computer. Where can I save it that is not "temporary", and accessed from the shell? Or, if it's easier, how can I transfer the script from a CD over to the active shell?
I know, these are extremely newbie'ish questions, but that's what the forum name is so hopefully someone will be kind and not just say something like "Learn the command line in linux".
I know, these are extremely newbie'ish questions, but that's what the forum name is so hopefully someone will be kind and not just say something like "Learn the command line in linux".
-
al562
- Advanced User

- Posts: 210
- Joined: 12 Dec 2012 08:02
- Location: New Jersey, U.S.A.
- Contact:
- Status: Offline
Re: Saving a file permanently
Hi JohnHaxen,
Welcome to the NAS4Free forum. Below is information you may find helpful.
Please read and follow the Forum Rules & Guidelines and the FAQs.
By doing so you will:
Yes, it will require use of the command line, but an answer to your question partly depends on what exactly you are running. Please use the report generator and post the information it provides as required by the rules & guidelines so we can give you a precise answer.
Thanks, Al
Welcome to the NAS4Free forum. Below is information you may find helpful.
Please read and follow the Forum Rules & Guidelines and the FAQs.
By doing so you will:
- Understand what information you should provide when you ask a question or report a problem/bug. By providing all information upfront you will get faster and better answers; that's what you want right?
- Find the answer to your problem in the FAQs or use the Advanced search to search the forum.
- Help us understand your problem and allow us to provide an accurate answer/solution without asking additional questions.
- Help the community by keeping the forum clean, focused and professional.
- Remember to use WebGUI Tab> Help|Report Generator when creating new topics/threads.
- If you have not, then please read the latest Setup & User Guide.
Thanks, Al
-
armandh
- Advanced User

- Posts: 398
- Joined: 23 Jun 2012 04:15
- Location: St Louis County Missouri USA
- Status: Offline
Re: Saving a file permanently
PS
it is BSD not Linux
since [at my age] I can't remember all that stuff
I use a hard disk utility with a nice GUI
it is BSD not Linux
since [at my age] I can't remember all that stuff
I use a hard disk utility with a nice GUI
4 thread 3300 Mhz Intel i3, 1 TB ZFS mirror, available RAM 7.823 Gb, 64 bit NAS4Free 9.1.0.1 rev 573 [88 watts, 48 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]
2 thread 1600 Mhz atom/ion, 1 TB ZFS mirror, available RAM 3.083 Gb, 64 bit NAS4Free-9.1.0.1 rev 573 [27 watts, 35 Mbps]
2 thread 3900 Mhz AMD A6-6400K, 2 TB ZFS Mirror, available RAM 7.557 Gb, 64 bit Nas4Free 9.3.0.2.1771 [89 watts, 68 Mbps]
- shakky4711
- Advanced User

- Posts: 273
- Joined: 25 Jun 2012 08:27
- Status: Offline
Re: Saving a file permanently
Hello,
Shakky
Sound like you use an embedded install and did not save the file on a storage disk but in the area which is located in the RAMDISK. So after a reboot it is lost. Save the file not in /mnt/ but in /mnt/yourdatadisk the it survives the reboot.. I create the wipe.sh in the /mnt directory but it gets wiped out each time I reboot the computer
Shakky