Install Fuchsia from a USB flash drive
You can use a USB flash drive to make your target device to boot from the Fuchsia installer, which then installs a freshly built Fuchsia image on the device directly from the USB.
To prepare a USB flash drive to be a bootable disk, do the following:
- Set the build configuration to
workstation_eng.x64and include the recovery package (recovery-installer):
- Build a new Fuchsia image and its artifacts:
-
Plug a USB flash drive into your workstation.
-
Identify the path to the USB drive:
This command prints output similar to the following:
none {:.devsite-disable-click-to-copy}
$ fx list-usb-disks
/dev/sda - My Example USB Disk
- Create a bootable USB drive:
Replace PATH_TO_USB_DRIVE with the path to the USB drive from the step above.
The example command below selects the /dev/sda path:
``` none {:.devsite-disable-click-to-copy} $ fx mkinstaller -v --new-installer /dev/sda
When finished, the command prints output similar to the following in the end:
``` none {:.devsite-disable-click-to-copy}
$ fx mkinstaller -v --new-installer /dev/sda
mkinstaller: WARNING: Changing ownership of /dev/sda to alice
[sudo] password for alice:
...
mkinstaller: INFO: Writing image fvm.sparse.blk to partition storage-sparse...
mkinstaller: INFO: Wrote 835.6M in 35.55s, 23.5M/s
mkinstaller: INFO: Done.
mkinstaller: INFO: Ejected USB disk
-
Unplug the USB drive from the workstation.
-
Plug the bootable USB drive into your target device.
-
Configure the target device's BIOS to boot from a USB drive.
-
Reboot the target device.
The device boots into the Fuchsia Workstation Installer.
- Press Enter on prompts to continue the installation process.
When the installation is finished, the screen displays Success! Please restart your computer.
-
Unplug the USB drive from the target device.
-
Reboot the target device.
The target device is now booted into Fuchsia’s Workstation.