How to mount USB pen drive?

Hiii,

Please let me know the steps for mounting my USB pendrive in solaris 10 platform.

Thanks & Regards,

Bhargav P

It depends on whether you want to put a UFS or a Windows filesystem on the USB drive.

If you want a UFS filesystem it goes something like this:

I've done this before and from what I remember use:

rmformat -l

to tell you the device name eg. /dev/rdsk/<device>s2

Turn off volume management use:

svcadm disable volfs

or

/etc/init.d/volmgt stop

depending on the version of Solaris

Run fdisk to configure a partition use:

fdisk /dev/rdsk/<device>s2

Write down a filesystem use:

newfs /dev/rdsk/<device>s0

(eg. for partition 1)

Mount the filessytem use:

mount /dev/dsk/<device>s0 <mount point>

I am using VMware machine for solaris10 on my windows OS. Does my USB pendrive detects by using this commands.

---------- Post updated at 08:16 PM ---------- Previous update was at 07:41 PM ----------

I used rmformat -l command it listed the details Device type is showing as [cd - reader].
For USB pendrive it should show as Removable. So my USB pendrive is not detecting.Please help i am using VMware for solaris 10.

So I think your guest O/S (Solaris) is not able to see the USB device under VMware. If it did, rmformat -l would list the device.

I suggest you go to a VMware forum and ask how to get a Solaris guest to see a USB device.

This is no longer a Unix question.

Ok Thank you hicksd8

I emailed a friend who is a VMware engineer and he replied.........

In the VM guest properties you can add a USB controller the same way as you add another hard disk, network card etc..... This will be then visible in the OS assuming it has drivers etc.

Hope that helps.