Alix2d3 - can't upgrade from 2.1_RC0 to RC1
-
For some strange reason, I can't update from 2.1 RC0 to 2.1 RC1 4g nano
I've got all sorts going on. DHCP & NTP service keep failing with out of swap space.
The upgrade just fails complaining "something went wrong with fstab"I rebooted after trying an upgrade and it failed so I had to switch slices.
Copying the good slice back to the failed slice results in:
Warning: file_put_contents(/tmp/pfsense1/etc/fstab): failed to open stream: No such file or directory in /etc/inc/pfsense-utils.inc on line 2132which again is something related to an entry in fstab.
anybody any idea?
-
Bad CF card?
-
I have upgraded about 10 of these, and all are working on a recent 2.1-RC1 snapshot. It does sound like a CF card issue.
-
not sure about that. it's an industrial cf card that's in it and only had about 2 years worth of use.
is there any way to check? -
can i run fsck on the card?
-
I suggest you execute the following shell command on the pfSense console:```
dd if=/dev/ad0 of=/dev/null -
ok. did that and it comes back with:
8211168+0 records in
8211168+0 records out
4204118016 bytes transferred in 2223.790851 secs (1890519 bytes/sec) -
The really great thing about this little flash drives is they are so cheap that when one crashes you can toss it and replace it with no great financial burden.
-
ok. did that and it comes back with:
If there were no errors reported on the console or in the system log the flash card is probably ok and I would guess you were probably hit by a file system error which is now lost because the slice was overwritten.
-
Does that mean I can duplicate the good slice I'm currently on to the one that didn't boot before and then try another upgrade?
-
Try and see for yourself? Otherwise, don't get me wrong, but a new CF card costs $16.
-
$16 is really abit pricey…
On E-Bay you can get them for anywhere between $(We will actually pay you to take our stuff) - $6
Apparently, somewhere in China there is a factory where the workers actually must pay for the honour of making CF cards to give away....
-
$16 is really abit pricey…
I'd rather get the "abit pricey" original CF card which is tested to work with the board, notably with UDMA-100, rather that getting random fake crap from eBay. Not really worth saving the price of 1-2 Big Macs.
-
Ummmm. Burgers. OK. $16
-
an industrial grade 4gb cf card ain't that cheap.
-
"Industrial Grade" isn't a spec, although sellers like you to think it is.
I would look at actual specs like MTTF, read rate, write rate, number of rewrite cycles it will endure, operating temp etc and go by things like that.
You might come out cheaper and just as reliable.I've never ever, not even once had a flash media actually fail me EXCEPT when I didn't realize the problem with running journaling file systems on a NAND media and so crashed 2 with frequent writes. I also quickly learned that once you have screwed a flash drive, toss it. You can't trust it any more.
I'd buy a new one.
-
And here is the error I get when duplicating the slice:
Warning: file_put_contents(/tmp/pfsense1/etc/fstab): failed to open stream: No such file or directory in /etc/inc/pfsense-utils.inc on line 2132
-
Well… then you clearly cannot duplicate the slice. Time to move on, don't you think?
-
There is likely more to the errors farther inside of the upgrade log.
try to upgrade again, then go to Diag > NanoBSD and view the full upgrade log, and post it.
You'll also see errors like that when your CF is perfectly good but it was imaged with an "-upgrade" .img initially rather than an actual full NanoBSD .img file.
-
Have you tried removing all the packages from the installation? I assume that the V2 release is much larger than the older V1 release because I've found that AVAHI will not build under 2.0 and the traffic shaper crashes under 2.0. If 2.1 doesn't fix these issues then it's probably time to toss the nano version.