[OpenIndiana-discuss] How to create a bootable USB stick on OI?

Jim Klimov jimklimov at cos.ru
Mon Aug 20 11:44:40 UTC 2012


2012-08-19 20:05, Albert Lee wrote:
> cp whatever.img /boot/freedos.img
> mount -F pcfs -o loop /boot/freedos.img /mnt


OT: Do we have the linux-style "mount -o loop" in OI? Cool if so!
Worthy RFE if actually not... ;)

I got too used to the inconvenient Solaris method of doing this:

mount -F pcfs `lofiadm -a /boot/freedos.img` /mnt
...
umount /mnt
lofiadm -d /boot/freedos.img

The inconvenience is in trying to repeatably do this, i.e. when
you have several images to mount-umount like that. The lofiadm-d
command has to be custom and re-typed all over again, or at most
use a miniscript that parses "df /mnt" to get the device name ;)


//Jim




More information about the OpenIndiana-discuss mailing list