[OpenIndiana-discuss] Determine path to usb stick frm `rmformt -l' output

Gary Mills gary_mills at fastmail.fm
Fri Dec 18 16:09:16 UTC 2020


On Fri, Dec 18, 2020 at 10:39:38AM -0500, Harry Putnam wrote:
> I have the output of rmformat -l to guide me but I'm not sure what is
> the correct path.  There are two shown.  In order to write to USB I
> need to be exact with path.
> 
> Tail of rmformat -l output:
> 
>         [...]  
>      3. Logical Node: /dev/rdsk/c8t0d0p0
>         Physical Node: /pci at 0,0/pci103c,1306 at 1d,7/storage at 7/disk at 0,0
>         Connected Device: TOSHIBA  TransMemory      1.00
>         Device Type: Removable
>         Bus: USB
>         Size: 14.8 GB
>         Label: <Unknown>
>         Access permissions: Medium is not write protected.
> 
> I suspect it is the rdsk address shown: /dev/rdsk/c8t0d0p0
> 
> Can anyone confirm that I can use  usbcopy in this way:
> 
>    usbcopy OI-2020.10.iso /dev/rdsk/c8t0d0p0

The usbcopy command may not work anymore.  Here's what I usually do,
starting with the usb image:

    <root at qtpie># ll Downloads/OI-hipster-gui-20201031.usb
    -rw-r--r--   1 mills    staff    2052153856 Dec 12 20:14 Downloads/OI-hipster-gui-20201031.usb
    <root at qtpie># mount | grep media
    /* Plug in the USB stick */
    <root at qtpie># mount | grep media
    /media/NO NAME on /dev/dsk/c7t0d0p0 read/write/nosetuid/nodevices/hidden/nofoldcase/clamptime/noatime/timezone=21600/dev=3700190 on Sat Dec 12 21:01:58 2020
    <root at qtpie># rmumount -l
    /dev/dsk/c7t0d0p0    rmdisk,rmdisk0,NO NAME,/media/NO NAME
    <root at qtpie># rmumount rmdisk0
    rmdisk0 /dev/dsk/c7t0d0p0 unmounted
    <root at qtpie># mount | grep media
    <root at qtpie># dd if=Downloads/OI-hipster-gui-20201031.usb of=/dev/dsk/c7t0d0p0 bs=4194304
    489+1 records in
    489+1 records out
    2052153856 bytes transferred in 404.551998 secs (4.84MB/sec)
    <root at qtpie># mount | grep media
    /* Remove the USB stick */


-- 
-Gary Mills-		-refurb-		-Winnipeg, Manitoba, Canada-



More information about the openindiana-discuss mailing list