Format a USB flash drive with FAT32 on OpenSolaris x64

Obtain the disk device pathname:

$ rmformat
Looking for devices...
     1. Logical Node: /dev/rdsk/c13t0d0p0
        Physical Node: /pci@0,0/pci1028,214@1d,7/storage@3/disk@0,0
        Connected Device: OTi      Flash Disk       2.00
        Device Type: Removable
	Bus: USB
	Size: 247.0 MB
	Label: 

 

Using fdisk, create a FAT32 partition occupying 100 percent of the disk space:

$ pfexec fdisk /dev/rdsk/c13t0d0p0

 

Create a PCFS filesystem on the partition (in this case labelling it “daves”):

$ pfexec mkfs -F pcfs -o fat=32,b=daves /dev/rdsk/c13t0d0p0:c
Construct a new FAT file system on /dev/rdsk/c13t0d0p0:c: (y/n)? y

 

If necessary, mount the device manually (in this case to a mount point named “USB”):

$ pfexec mount -F pcfs /dev/dsk/c13t0d0p0:1 /export/home/dave/USB/

Note that PCFS performance under Solaris is pretty slow. For the UFS version of this how-to, see here.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s