On Friday, 13 November 2015 11:13:48 UTC, Martin Lešák wrote:
Hi,
I'm running Alt-F-0.1RC4.1 on my DNS-320
Hardware revision level? A1? B1?
and I'm very happy with it. However lately my old disk died and I'm waiting for the new one.
I would like to use time before new HDD arrival and start installing alt-f to USB flash pen. I have 2 questions and hope that someone will answer them.
#1 How to make "factory reset" of alt-f? Is firmware re-flashing do the thing? I would like to start from scratch again..
When you "clear settings" in the Settings webUI and reboot without saving settings, the default values shipped with the Alt-F firmware will be used. So there is no need to reflash the same fw version again, there's no point doing that. Flashing is always a "risky" operation, not comparable to a software (or OS) on-disk installation.
But the above is only true for the firmware, not for disk-installed packages; for those, all their files including configuration files, are stored on disk, and uninstalling a package might not be sufficient to remove all its files, so on the next install you might inherit something from the previous installation. The partial uninstall does not always occurs, and when it does it is mostly to not delete potential user-made changes.
For a completely fresh start, besides "clearing settings", you have to remove all Alt-F disk-installed packages. That might not occurs OK on the first try, try until the Package installer asks you for a filesystem were to install packages.
#2 I would like to start installing alt-f on USB flash pen (no external USB drive) right from the beginning. Is it possible to start installing alt-f on USB without HDD in NAS and if so is there anything I should avoid?
You don't need *any* disk or pen, be it internal or USB, to flash or *use* the Alt-F firmware. After flashing, you can at any time install disk-installable packages on *any* filesystem. When Alt-F boots (from flash), it will only use disk-installed packages when a filesystem with a folder named 'Alt-F' is found on it; if that folder does not exists, no harm, only the packages shipped with the firmware (on flash) will be used; if at any moment you plug a disk or pen and an 'Alt-F folder is found there, it will start to be used.
This last feature might raise issues when newer on-disk packages are found and must replace "on the fly" the ones that are shipped on the firmware and are already running.
- I guess filesystem on USB must be "labeled" so it'll always boot properly
- shall I enable "Swapping on USB device"?
No need for that, if you intend to have swap on the internal disks, and if the USB pen or disk is small. A 1TB USB disk *might* need to have swap on it, so the occasional filesystem check (fsck) at boot can succeed.
Having swap on USB disks is not a problem, it is only a problem for USB pens, which have a limited number of write cycles. And it is only an issue on USB pens if swapping starts to occurs.
So, on the DNS-320 (128MB of RAM, I believe), swap should not be necessary on "small" pens, as 128MB of RAM should be sufficient for fsck to succeed on a few tens GB filesystem.
If you start observing that swapping occurs frequently, you are using your box behind what it was designed to do. Stop unused services, refrain yourself to have running on the box everything you usually have on a PC. It works, but it starts being too slow as there is not enough RAM and disk (swapping) starts to be used in place of it.
So, each use case is different, there is not a unique correct answer to "use/not use swap on a USB pen"
Thanks for any help.
Donation of 5 euros sent. Developer can have a beer tonight :o)