Page MenuHomeVyOS Platform

'install images' fails on removable storage
Closed, DuplicatePublicBUG

Description

I have been trying to install VyOS 1.2.0 on Compact Flash, so that I can run it on an ALIX Single Board Computer.

However the 'install image' command is failing after the partition step:

$ cat /tmp/install-1552.log
turning off swaps...
Removing partition 1 on /dev/sdb
Creating a new disklabel on sdb
Creating root partition on /dev/sdb
Creating filesystem on /dev/sdb1...
Error: couldn't create the root filesystem.
/sbin/mke2fs -j /dev/sdb1
mke2fs 1.42.12 (29-Aug-2014)
The file /dev/sdb1 does not exist and no size was specified.

/dev/sdb is a 4GB Compact Flash card in a USB card reader, connected to VirtualBox running the VyOS Live CD.

I have tried partitioning manually and then selecting 'Skip' when asked if I want to partition and then the install completes successfully.

It am not certain, but the problem might just be a timing issue - the Linux kernel takes a couple of seconds to update the new partition table. If I run /sbin/mke2fs -j /dev/sdb1 manually, then it does successfully format the partition.

Doing the same thing with VyOS 1.1.8 worked fine.

Details

Version
VyOS 1.2

Event Timeline

@njh

If you manually partition you need to keep in mind 2 things.
the filesystem label needs to be "persistence" (mkfs.ext4 < device > -L persistence)
and in the root of the filesystem you must create a persistence.conf file containing "/ union"
(echo "/ union" > /persistence.conf) on your partition meat for vyos.

@UnicronNL Thank you very much, that is really useful to know.

I have just double checked and the volume label is indeed persistence and persistence.conf exists.