[Solved] Ubiquity EdgeRouter Lite: can't find mkfs.vfat

I am following the instructions to install openwrt on the edgerouter lite,
but on my router, there is no mkfs.vfat.

Also checked the faq for this router, but no relevant info regarding missing vfat.
https://forum.archive.openwrt.org/viewtopic.php?id=49908&p=1

Here is the log:

admin@ubnt:~$ **sudo mkfs.vfat /dev/sdc1**
**sudo: mkfs.vfat: command not found**
admin@ubnt:~$ sudo mkfs --type=vfat /dev/sdc1
mkfs.vfat: No such file or directory
admin@ubnt:~$ sudo apt-get install dosfstools
Reading package lists... Done
Building dependency tree... Done
Package dosfstools is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'dosfstools' has no installation candidate
admin@ubnt:~$

Those are very old instructions. Use this page instead: https://openwrt.org/toh/ubiquiti/edgerouter.lite
Note the installation is done by removing the flash drive from the router and using a PC to write OpenWrt to the drive before putting it back in the router. There is no need to run any commands on EdgeOS.

2 Likes

Sorry my bad, did not realize it was all done from regular linux/computer.
Ok, will try again. It's a bit weird we have to physically remove the flash drive.
Thanks!