Create a USB key on SmartOS
Modified: 09 Mar 2023 22:10 UTC
This page shows you how to create a new USB key on SmartOS (including on your existing head node or compute node) from an image file that has been downloaded from MNX.
-
Note: These commands must be run in the global zone as root.
-
Identify the USB key device
# /usbkey/scripts/mount-usb.sh # df -h | grep /mnt/usbkey | awk '{print $1}' | sed -e 's/p1/p0/' -e 's/dsk/rdsk/' /dev/rdsk/c3t0d0p0 # umount /mnt/usbkey
-
So the device name in this example will be
/dev/rdsk/c3t0d0p0
.-
Note: Your device location may be different.
- Note: Use p0 (for the whole disk) and not p1 (for the first partition).
-
-
Uncompress and unarchive the key image using gzip(1) and tar(1).
# tar xvf usb-*.tgz usb-*img x usb-release-20110901-20110922T212927Z-179-4gb.img, 4000000000 bytes, 7812500 tape blocks
-
Using dd(1M), copy the new image to key
# dd if=usb-*.img of=/dev/rdsk/c3t0d0p0 bs=4096b
- Note: All data on the USB key will be replaced.
- This process will take between 5 and 20 minutes.
- Your USB key now contains the Triton boot image.