Page 1 of 1
Jail preventing startup of nasfree
Posted: 18 Jun 2013 15:34
by rampie
Hey,
i just installed a jail and tried booting it up. The result: entire server blocked down.
Now i restarted the server and guess what happened: YES it's still blocks. I guess the jail is getting loaded at startup.
Any ideas on how to NOT get it on startp anymore?
Thanks.
Re: Jail preventing startup of nasfree
Posted: 18 Jun 2013 16:55
by raulfg3
edit config.xml and find postinit command, delete or disable start of the jail. (if not find in config.xml, perhaps need to edit rc.conf some line related to jail start)
PD: it's safe and recommended to install TheBrig a default jail manager for Nas4Free.
To edit file, you only need to boot from CD-ROM and use embeded file editor in N4F to locate file, load, modify, and save, once done you can reboot without CD-ROM.
Re: Jail preventing startup of nasfree
Posted: 18 Jun 2013 16:56
by kkd
try to access /cf/conf/config.xml and delete the jail rows (install a new n4f and mount old n4f drive).
try to restore old config by renaming /cf/conf/config.bk5 to config.xml.
create a new install and restore saves config
create a new install and import disks
Re: Jail preventing startup of nasfree
Posted: 18 Jun 2013 16:58
by raulfg3
wow... two responses at same time, this is great.
Re: Jail preventing startup of nasfree
Posted: 18 Jun 2013 17:04
by kkd
raulfg3 wrote:wow... two responses at same time, this is great.
you were a little faster

Re: Jail preventing startup of nasfree
Posted: 19 Jun 2013 08:56
by rampie
raulfg3 wrote:To edit file, you only need to boot from CD-ROM and use embeded file editor in N4F to locate file, load, modify, and save, once done you can reboot without CD-ROM.
OK, i booted from USB drive, but how to access the USB drive then?
Re: Jail preventing startup of nasfree
Posted: 19 Jun 2013 08:58
by kkd
rampie wrote:raulfg3 wrote:To edit file, you only need to boot from CD-ROM and use embeded file editor in N4F to locate file, load, modify, and save, once done you can reboot without CD-ROM.
OK, i booted from USB drive, but how to access the USB drive then?
mount old n4f drive
Re: Jail preventing startup of nasfree
Posted: 19 Jun 2013 09:03
by rampie
Nvm, found how to do it. I removed the jail from being startup.
I guess my problem lies witht th fact i'm trying to mount a share which is to big

Re: Jail preventing startup of nasfree
Posted: 19 Jun 2013 19:12
by fsbruva
More than likely, you are trying to do an illegal nullfs mount. This will cause all manner of issues. Size of share doesn't really matter - but it will choke pretty hard if you try to mount one folder nullfs and then mount a sub folder as a separate mount point. Results in resource deadlock.
Re: Jail preventing startup of nasfree
Posted: 20 Jun 2013 10:34
by rampie
just inserted the USB drive in another PC and this one boots fine. Gonna try again tonight on the server and attach screen + CD drive so i can troubleshoot the thing. Gonna disable the jail for now.
PS: any chance of transferring the config from an embedded install to a full install, or is embedded install better? (with full i don't have to do the jail i suppose?)
Re: Jail preventing startup of nasfree
Posted: 20 Jun 2013 11:39
by raulfg3
rampie wrote: (with full i don't have to do the jail i suppose?)
incorrect, jails is the default / suggested by N4F team way to install packages, and that packages do not affecting the operation of N4F.
Jails using TheBrig have a aditional advantage, survive to N4F upgrades / reinstall, you only need to save N4F config and restore it.
rampie wrote:is embedded install better?
embeded is recomended for USB key install due "burn it" problems in USB devices if you write a lot of times on it.
Full is usefull / recommended for install on HD or Professional/industrial grade USB /CF/SD. (If your board have a IDE port and you do not use it, is useful to use an old and cheap /free IDE disk to boot N4F from it)
Re: Jail preventing startup of nasfree
Posted: 20 Jun 2013 18:16
by rampie
OK, then i'll stick with embedded. Getting the jail up is a must now
