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!

How do I tell it where to store the settings file?

New installs of XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Andy Civil
Starter
Starter
Posts: 16
Joined: 09 Apr 2014 07:48
Status: Offline

How do I tell it where to store the settings file?

Post by Andy Civil »

So I've given up trying to make it boot from USB, and now I'm going to boot from CD and have it store the settings on the USB stick only. But I've spent an hour and a half looking through all the menus (remote and local) the manuals, the FAQs and the forums, and I can't for the life of me work out how to tell it to store the settings on the USB.

I notice that the hardware 'sees' the USB stick when I plug it in, so it's definitely there, but I can't find the setting/preference/option to tell it to store the settings on that stick.

The closest workaround that I can forsee is, I found the option to "backup/restore" in the web interface, and I can download an XML file using 'backup' (to a remote computer). I'm guessing that if I download that, and then put it on the USB stick manually, then the next time I boot from the CD, it'll find it (I saw the messages looking over available drives when it booted first). However, this is so 'clunky' that I can't believe it's the proper way to do it.

P.S. at the moment, I haven't even added any disks yet, so the USB stick is the only medium that it could save my configuration to. (Since neither RAM nor CD-ROM is going to work, LOL.)

I don't plan to put any effort into setting the server up, until I know that my settings (effort) won't be lost on reboot.

Even if the option to choose a path for a settings file has been strangely omitted from the menus, if the Live CD finds a valid XML file when it boots, will it then save my changes automatically to that file whenever the web interface comes back with "settings have been saved/applied"?

Everything else about NAS4FREE is so easy, I feel I must have missed a menu option, or an operating principle, somewhere. Choosing a settings file path shouldn't be this obscure.

Andy Civil
Starter
Starter
Posts: 16
Joined: 09 Apr 2014 07:48
Status: Offline

Re: How do I tell it where to store the settings file?

Post by Andy Civil »

I can't believe this is so hard: nothing I do will make it read the configuration file from the USB stick. I know that the hardware sees the stick because I get a message at the console when I plug it in, and remove it. The system recognises it as da0.

While I was waiting for a response to my original question, I tried to get around it by making the config file manually. I downloaded it to a remote computer using the GUI "backup" feature. This works, I rename the file config.xml. I have tried the FAT filesystem, and I put the file in /conf/config.xml. However, despite that the server sees da0, it ignores the file. It declares that it will use /dev/fd0 instead. There is a floppy drive in the machine, but I don't want to use it. I thought I could fix the problem by disabling the floppy drive in the BIOS, which I did, but it STILL insists on declaring that it's going to use /dev/fd0. I tried formatting the USB stick with ext4; I'm not sure I did it right because initially it was owned by 'root' and I couldn't download and put the config file on the stick using a Ubuntu computer I have. I tried reformatting it again with ext4 and taking ownership, and I set all the permissions to read/write/create for everyone but even after writing the file /conf/config.xml the server still wouldn't read it and again insisted that it was going to use /dev/fd0.

I don't mind the delay of booting from CD (I must have done it a dozen times already trying to get this to work anyway!) but I don't want the awkwardness of setting it up every single time from scratch. How can I get the server to read the config file that I've stored on the USB stick, when it boots from the CD?

P.P.S. another possibility would be, could I open the original ISO with 7-zip and put the /conf/config.xml file in there before writing it to a CD? It seems ridiculous to have to write a CD every time I want to change it, but quite honestly it might be less frustrating than this evening has been... at least while I'm experimenting, I could use the remote GUI "backup/restore" feature and store the config on a remote computer.

Andy Civil
Starter
Starter
Posts: 16
Joined: 09 Apr 2014 07:48
Status: Offline

Re: How do I tell it where to store the settings file?

Post by Andy Civil »

Update: I can hardly believe this... I thought I had a workaround for the server not reading the config file from the USB stick, by just using the remote "restore" function from a config file stored elsewhere; but no, it doesn't work, because when you use the "restore" function... it REBOOTS! This is so frustrating!

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: How do I tell it where to store the settings file?

Post by crowi »

The proper way to use NAS4free ist to install it.
If your PC can't boot - for whatever reason - from USB, you can install a HDD to your PC to boot from and install the system there.
So install the HDD, boot from Live CD, choose install NAS4free, remove the Live CD and boot the server from the HDD, then you can store the config

Cheers,
Crowi
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

Andy Civil
Starter
Starter
Posts: 16
Joined: 09 Apr 2014 07:48
Status: Offline

Re: How do I tell it where to store the settings file?

Post by Andy Civil »

Thank you for the suggestion Crowi - I realise that I could waste a whole HDD and install the software on it, but I'm going to be short on available 'slots' for disks, so that solution would suck whether or not it's labelled "proper" :D

In fact, while I'm trying to set this up, I have two physical disks of 250GB installed, and the bios seems to present them as a single 500GB "device" so if I installed the software on that, I would have wasted 499.9 GB of space, and I'd have no disk left to actually store data on... that doesn't work for me.

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: How do I tell it where to store the settings file?

Post by b0ssman »

you could use a cf to ide/sata adapter with a small cf card.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

kenZ71
Advanced User
Advanced User
Posts: 379
Joined: 27 Jun 2012 20:18
Location: Northeast, USA
Status: Offline

Re: How do I tell it where to store the settings file?

Post by kenZ71 »

Your settings can be backed up by going to system, backup/ restore. Select Backup and save the config file someplace safe that is not your NAS.

Personally I use Google Drive as it is relatively secure.
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz

Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: How do I tell it where to store the settings file?

Post by raulfg3 »

Andy Civil wrote:Thank you for the suggestion Crowi - I realise that I could waste a whole HDD and install the software on it, but I'm going to be short on available 'slots' for disks, so that solution would suck whether or not it's labelled "proper" :D

In fact, while I'm trying to set this up, I have two physical disks of 250GB installed, and the bios seems to present them as a single 500GB "device" so if I installed the software on that, I would have wasted 499.9 GB of space, and I'd have no disk left to actually store data on... that doesn't work for me.
If 2disk are show as 1 big disk, probably You use some kind of raid or fake raid on Bios, this is not a good start point to use a NAS .

If still You do not have valuable data on disk, and still can do experiments, try to configure disk in Bios as AHCI not as RAId .

And test to install embeded nas4free on a USBkey to continue testing n4f.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: How do I tell it where to store the settings file?

Post by crowi »

HI Andy,
to summarize, your system does not boot from USB and you have only two 'slots' for HDDs, are you sure that this the right starting point for a NAS?
can you give some system specs (mainboard type, number of HDD ports (SATA, PATA) etc)?

Btw, you can have system and Data on one drive, this has some limitations and is not the first choice to do so, but it works...
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

Andy Civil
Starter
Starter
Posts: 16
Joined: 09 Apr 2014 07:48
Status: Offline

Re: How do I tell it where to store the settings file?

Post by Andy Civil »

Thank you for ALL the suggestions!

B0ssman: the adapter with a CF card is a great solution, I was trying not to spend any significant money; you see, this was more a case of "I have this computer, what can I do with it" rather than "I need a NAS, how should I build one". (Optional detail: Adobe Flash as used on YouTube has got so programming-sloppy that it no longer runs properly on a single-core computer. That means that any single-core computer has to be replaced, to be usable by family. Hence, I have more than one quite decent computer 'spare' i.e. without a real purpose. NAS4Free seemed the ideal purpose for the spare hardware.)

kenZ71: Using the backup feature is easy, but it's also pointless because the 'restore' function does not work. Since it seems incapable of finding the config.xml file, when it reboots, it forgets everything. If the restore function worked without a reboot, everything would be sunshine and lollipops.

Raulfg3: I don't know why the BIOS decided to create a RAID array without my permission - indeed I should find out how to turn it off. It might be my fault, I did have a RAID set up on there once before so it's probably me. I have tried many times to install on a USBkey and it doesn't boot (goes into a reset loop) even though Ubuntu/GParted etc. boot fine.

crowi: Indeed, having few SATA/PATA ports and failing to boot from a USB is certainly not a good starting point, but my primary purpose was to find a good use for the computer, not to build a NAS.

I realised that I could add a small HDD to the same cable the CD ROM is on, so I have put a 6GB disk (from 1998!) on there, and installed the software. So far, it seems to be working great; I can reboot it from the webGUI and it remembers what it's doing! I may have questions as I try to use it more earnestly.

I really appreciate the community support.

armandh
Advanced User
Advanced User
Posts: 398
Joined: 23 Jun 2012 04:15
Location: St Louis County Missouri USA
Status: Offline

Re: How do I tell it where to store the settings file?

Post by armandh »

I like these under $20
http://www.logicsupply.com/components/s ... h-modules/
plugs right into the primary IDE in the MOBO
512 Mb holds the embedded OS and config easily with half to spare

on some hardware you may need to put the CD on the primary and the flash on the secondary to boot and load
but once that is done remove the CD and place the flash in the primary. the secondary can do a pair of [mirror] drives

I have set up several old Dell boxes this way
small [old] Hdd salvaged from win98 era hardware works too
once the embedded loaded and booting install and set the drive to spin down in 5 minutes, but do not mount the drive.
it will spin up for config changes and spin down 5 minutes later.
I have done several this way too.
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]

racmar
NewUser
NewUser
Posts: 11
Joined: 05 May 2014 00:01
Status: Offline

Re: How do I tell it where to store the settings file?

Post by racmar »

I was thinking about doing this option to store the config file to a small usb stick and have my nas boot from CD and I had the same problem as you Andy Civil.

I can't believe NO ONE here explained how to do this, as if NOBODY knows how.
And curiously, you seem to be the first to bring his up.

NAS4Free has this page:
http://wiki.nas4free.org/doku.php?id=do ... ivecd_mode
This just tells people that they can do it, basically what to do, but nothing about how to correctly do it. (This is alsohow most documentation pages about NAS4Free are: incomplete)
And by the way, the last paragraph of this page is quite annoying. Why is it even there ? Perfect example of an incomplete documentation.
Yet nobody will find any example about this somewhere on the internet.

Come on people. I think you have a good nas system here and nobody can't explain how to do this so it will work properly. Everyone just give workarounds.

As will probably do Andy Civil, I did a workaround and had an old 10GB HDD that was doing nothing. So I installed the system on this one. Yes a workaround. Now what if this small HDD fails....Cannot go to the live CD mode since nobody seems to know how to do it with a USB stick.

Good luck Andy Civil.
Maybe someone will wake up...

armandh
Advanced User
Advanced User
Posts: 398
Joined: 23 Jun 2012 04:15
Location: St Louis County Missouri USA
Status: Offline

Re: How do I tell it where to store the settings file?

Post by armandh »

no one knows how because it is automatic.[if the USB memory stick is compatible]
lots are not

to boot from a USB stick or use a USB sticks for config storage with live CD
the USB stick must not have drivers to access the storage.
this type of plain FAT file storage is usually found in sticks under 2 Gb
but 2Gb sticks with such drivers can be wiped and formatted.

large USB sticks which derive their compatibility from self loading drivers don't work
they need an OS to open them.
booting is a real mode, limited choice process governed by hardware compatibility

still I like the plug in flash or small Hdd
old hardware boots best the way it did as it was first intended to be used
usually the primary IDE line

I once used one of these from the win-95 era
http://www.ebay.com/itm/FUJITSU-M1623TA ... 483b49d943
but it was from my junk pile I would not waste more than a few $ on one of these
the 512 Mb flash is a better deal

the N4F OS is a bit over 200 Mb and the config is about 20 Kb
Last edited by armandh on 08 Dec 2014 11:50, edited 1 time in total.
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]

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: How do I tell it where to store the settings file?

Post by crowi »

Yes a workaround. Now what if this small HDD fails....
Once you installed and configured the system, you should save the config file somewhere offsite your nas. When your system fails, you can then easily import the config file and get n4f up and running again in less than 5 minutes.
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

armandh
Advanced User
Advanced User
Posts: 398
Joined: 23 Jun 2012 04:15
Location: St Louis County Missouri USA
Status: Offline

Re: How do I tell it where to store the settings file?

Post by armandh »

crowi wrote:
Yes a workaround. Now what if this small HDD fails....
Once you installed and configured the system, you should save the config file somewhere offsite your nas. When your system fails, you can then easily import the config file and get n4f up and running again in less than 5 minutes.
YES BUT
only if there is some where to store the config which live CD [without any flash] does not have
I once used an old 8Mb camera flash with a usb adapter to store the config with live CD
it may nave been back in the FN7 days

it should work fine with a small Hdd or flash module holding the embedded OS and config

live CD needs some FAT file storage for the config

anyone ever try the LG optical drive after the "blue bird" removal?
Last edited by armandh on 12 May 2014 14:52, edited 1 time in total.
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]

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: How do I tell it where to store the settings file?

Post by b0ssman »

if i read this code right
http://sourceforge.net/p/nas4free/code/ ... g.inc#l139

for the live version
its looks for a fat16/32 usb stick for the config

else
it looks for a ufs file system with the config.xml file in the correct directory
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

armandh
Advanced User
Advanced User
Posts: 398
Joined: 23 Jun 2012 04:15
Location: St Louis County Missouri USA
Status: Offline

Re: How do I tell it where to store the settings file?

Post by armandh »

b0ssman wrote:if i read this code right
http://sourceforge.net/p/nas4free/code/ ... g.inc#l139

for the live version
its looks for a fat16/32 usb stick for the config

else
it looks for a ufs file system with the config.xml file in the correct directory

does it still look at the floppy 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]

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: How do I tell it where to store the settings file?

Post by b0ssman »

from what i can tell that is the default if a usb stick is not found.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

armandh
Advanced User
Advanced User
Posts: 398
Joined: 23 Jun 2012 04:15
Location: St Louis County Missouri USA
Status: Offline

Re: How do I tell it where to store the settings file?

Post by armandh »

then a fat formatted floppy still works for the config storage on old hardware.
I've not done that in a long time.
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]

andredb
NewUser
NewUser
Posts: 1
Joined: 15 Nov 2014 05:43
Status: Offline

Re: How do I tell it where to store the settings file?

Post by andredb »

I read through all of this and eventually go my answer, simpler answer however is right here:

http://wiki.nas4free.org/doku.php?id=do ... ivecd_mode

Yuajfgs
NewUser
NewUser
Posts: 1
Joined: 07 Dec 2014 08:58
Status: Offline

Re: How do I tell it where to store the settings file?

Post by Yuajfgs »

very nice as well,....very generous, good forums as well :D
__________________________________________________________
stylet tactile Sony Xperia Z2 coque Xperia Z2

adilux
Starter
Starter
Posts: 27
Joined: 30 Jul 2016 05:35
Status: Offline

Re: How do I tell it where to store the settings file?

Post by adilux »

i got my usb to boot into nas4free, but the settings are gone every time i reboot the server. is this normal?
so, do i have to manually load the backup config everytime i reboot the server?

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 758
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: How do I tell it where to store the settings file?

Post by ChriZathens »

You are using the live usb version.
Plug a second usb in and from the console menu select to install the embedded version on that usb.
Afterwards, boot the embedded installation from that second usb, and restore the saved config.
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)

adilux
Starter
Starter
Posts: 27
Joined: 30 Jul 2016 05:35
Status: Offline

Re: How do I tell it where to store the settings file?

Post by adilux »

ChriZathens wrote:You are using the live usb version.
Plug a second usb in and from the console menu select to install the embedded version on that usb.
Afterwards, boot the embedded installation from that second usb, and restore the saved config.
so what's the purpose of that?
will it save my config onto the second usb?

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1458
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: How do I tell it where to store the settings file?

Post by ernie »

When you use the live cd or live usb files, you have a non permanent nas4free. It is used in order to test and then to install (via item 9 I think).
You had to install on another support (as a second USB key for example) in order to have a permanent system (it saves the configuration).
Here it is explained:
http://www.nas4free.org/index.php?id=17
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7743) embedded
NAS1: Xeon E3 1241@3.5GHz, 2HDD@8To/mirror, 1SSD cache, Zlog on mirror, 1 UFS 300 Go
NAS2: G3220@3GHz, 2x3HDD@2To/strip+raidz1, 1SSD cache, Zlog on mirror
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, smb, UPS,
NAS2: OBI (zrep (backup mode), themes)

adilux
Starter
Starter
Posts: 27
Joined: 30 Jul 2016 05:35
Status: Offline

Re: How do I tell it where to store the settings file?

Post by adilux »

I originally booted from a live cd and then used option 9 to embed/install onto the flash drive


Sent from my iPhone using Tapatalk

adilux
Starter
Starter
Posts: 27
Joined: 30 Jul 2016 05:35
Status: Offline

How do I tell it where to store the settings file?

Post by adilux »

I'll look at the config again. Thanks
Come to think of it, after installing the embedded to my USB drive, I've never rebooted.
I've configured the server, so I'll backup the config before rebooting In case I lose it

racmar
NewUser
NewUser
Posts: 11
Joined: 05 May 2014 00:01
Status: Offline

Re: How do I tell it where to store the settings file?

Post by racmar »

Hello !
Back after two years !
BTW, my 10GB HDD failed after some time.
First tried to install on a data drive (an option when installing) but had boot problems after some time.

I tought I should write what I found since then about this problem with USB drive problems.

I now have 4 NAS4Free servers running at work with:

- LiveCD
- SD card (any size !) in a usb card reader (any cheap model !) for the settings file !
- HDDs as you wish for data

Yes. SD card in a usb card reader. This gives you no limit in size. You don't need to stick with less than 2GB drives.
I have two servers with 8GB SDHC and two servers with 16GB SDHC cards.

First time you boot, just configure the network card and ip on the console, so you can go into the webgui.
In the gui, configure everything you need, backup your config file to your personnal computer and shutdown your NAS.

Connect your SD card to your personnal computer.
On your SD card, just create a "conf" folder and put your config.xml file in it.
That's it.
Put the SD card into the card reader connected to any USB port on your NAS.
Boot with the LiveCD and it will find the config.xml file on the SD card.
Everything you have configured so far is still there and every change you make will be automatically saved to the SD card config.xml file.

EASIEST NAS4free UPGRADE :
Just burn the latest ISO on a CD or DVD, put it in your NAS DVD drive and boot it.

I have, for example, curl that can run inside NAS4Free even if it is Live.
Just create the folder for curl on one of your data drive and put it there.
Create a Postinit startup script (bash script located on your data drive) so it will "install" it each time your system boots.
I can explain how if someone wants to know. It needs a few "ln -s" commands.

Enjoy !

adilux
Starter
Starter
Posts: 27
Joined: 30 Jul 2016 05:35
Status: Offline

Re: How do I tell it where to store the settings file?

Post by adilux »

that's good information
thank you

User avatar
F8BOE
experienced User
experienced User
Posts: 106
Joined: 03 Jun 2013 23:09
Location: France
Status: Offline

Re: How do I tell it where to store the settings file?

Post by F8BOE »

Hello,

The "boot on CD and save the conf. on floppy" was an option for FreeNAS back then in 2007!
Since the beginning of the FreeNAS adventure the preferred method was the EMBEDDED installation from a boot CD onto a CF/USB stick/little HDD.

With the new versions of FreeNAS / NAS4Free the basic principle remains the same: install embedded from boot-media to an internal media.

My first NAS (PII 400) boots from CD ROM and has the embedded system on a 4GB CF card; I added a PCI extension card to get 4 more PATA drives in the box and one ATA-to-CF adapter. This configuration runs 24/7 since 2008 and I'm using now N4F 10.3.0.3.2465 with no problems (768 MB RAM is enough for my FTP, HTTP, NFS, SMB, UPnP, DAAP, UPS and DDNS sevices).
Another NAS runs N4F installed embedded from a boot CD on an internal USB stick... so if you boot from an USB stick you'll need a second one to install the embedded system on.

But first of all: burn/write the ISO/img file as an image and not as a file... many tutorials which explain how to do this exist over the net.

Ciao @+

Post Reply

Return to “Install XigmaNAS”