Los Angeles, California


1-844-CLOUDLA 1-844-256-8352


Mon-Fri 8:00 am to 4:00 pm

Updating a SmartOS USB Install

This is an abbreviated how-to on updating your SmartOS version when your existing install is booting from a USB flash drive. In this example we will be updating to 20150903T073920Z but you would simple replace the occurrences of 20150903T073920Z with whatever version you want to update to.



Check your current version.

# uname -a
SunOS node1 5.11 joyent_20140111T020931Z i86pc i386 i86pc

Change to a directory with enough space to download new image.

# cd /opt

Download required files from Joyent.

# curl -O --insecure
# curl -O --insecure

Check MD5 hash to confirm integrity of downloaded image.

# digest -a md5 platform-20150903T073920Z.tgz
# grep platform md5sums.txt
056ee7e502e1f236a69bfc364d5a2378 platform-20150903T073920Z.tgz

Check the USB drive name and mount it.

diskinfo | awk 'NR == 1 || /^USB/ { print }'
TYPE    DISK                    VID      PID              SIZE          RMV SSD
USB     c1t0d0                  SanDisk  Cruzer Fit          7.45 GiB   yes no 
mount -F pcfs /dev/dsk/c1t0d0p1 /mnt

Change to USB directory and unpack SmartOS image.

# cd /mnt
# tar xvzf /opt/platform-20150903T073920Z.tgz
[ this step takes a few minutes, ignore TAR errors ]

Create backup directory and swap new and old image files.

# mkdir /mnt/$(uname -v | cut -d_ -f2)
# mv /mnt/platform /mnt/$(uname -v | cut -d_ -f2)/ && mv /mnt/platform{-20150903T073920Z,}

Change out of the USB directory and unmount it.

# cd /opt
# umount /mnt

Clean-up downloaded files and reboot.

# rm platform-20150903T073920Z.tgz md5sums.txt 
# reboot

Check your current version.

# uname -a
SunOS node1 5.11 joyent_20150903T073920Z i86pc i386 i86pc



No Comments Yet.

Leave a comment