We help IT Professionals succeed at work.

How Can I Mount a Thumb Drive on a Solaris Machine

pdouglas
pdouglas asked
on
1,775 Views
Last Modified: 2013-12-21
Background: The system is a SunBlade 1000 using OS 5.8 with Solaris 8. The box has 4 USB ports, 2 of which are used and 2 are available for other devices. It also has a Removable Media Manager, though it does not "see" any devices attached to a USB port.

Question: I plug in a thumb drive (128 MB) to one of the 2 available USB ports, but the system does not seem to recognize it. Then I run devfsadm, which runs sucessfully. I can now see a symblic link in /dev/dsk displayed as follows:

     mass-storage0 -> ../../devices/pci@8,700000/usb@5,3/storage@3:devctl

I have no idea how to read this. If I cold just find the device, I think I could mount it, and then access is. Yes?

Any ideas on what to do next?

Thanks,

pdouglas
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Commented:
I managed when I was looking at this Q: https://www.experts-exchange.com/Operating_Systems/Solaris/Q_20873129.html

I added my drive, then looked in /dev for something that had been created that hour, then mounted that following what I read in the 2 URL mentioned above

Commented:
fim32,
great minds etc...

Author

Commented:
I tried the instructions at http://www.netsys.com/cgi-bin/display_article.cgi?1245 and it did not work. When I issue the command:

     mount -F pcfs /dev/rdsk/c4t0d0s2:c /flash

I get the msg:

     mount: mount-point /flash does not exist.

One thing I'm finding very confusing is why I have so many entries for the device. They are(essentially 8 entries for c3t0d0s0  and 8 for c4t0d0s0) as follows when I issue a ls -l:

lrwxrwxrwxr 1 root   root  c3t0d0s0  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:a,raw
lrwxrwxrwxr 1 root   root  c3t0d0s1  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:b,raw
lrwxrwxrwxr 1 root   root  c3t0d0s2  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:c,raw
lrwxrwxrwxr 1 root   root  c3t0d0s3  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:d,raw
lrwxrwxrwxr 1 root   root  c3t0d0s4  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:e,raw
lrwxrwxrwxr 1 root   root  c3t0d0s5  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:f,raw
lrwxrwxrwxr 1 root   root  c3t0d0s6  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:g,raw
lrwxrwxrwxr 1 root   root  c3t0d0s7  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:h,raw
lrwxrwxrwxr 1 root   root  c4t0d0s0  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:a,raw
lrwxrwxrwxr 1 root   root  c4t0d0s1  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:b,raw
lrwxrwxrwxr 1 root   root  c4t0d0s2  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:c,raw
lrwxrwxrwxr 1 root   root  c4t0d0s3  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:d,raw
lrwxrwxrwxr 1 root   root  c4t0d0s4  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:e,raw
lrwxrwxrwxr 1 root   root  c4t0d0s5  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:f,raw
lrwxrwxrwxr 1 root   root  c4t0d0s6  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:g,raw
lrwxrwxrwxr 1 root   root  c4t0d0s7  -> ../../devices/pci@8,700000/usb@5,3/storage@1/disk@0,0:h,raw

Commented:
You need to create a the mountpoint first.
i.e. mkdir /flash

Author

Commented:
Man, this just gets more bizarre by the minute. I created the directory, or so I thought. The mkdir command seemed to work, but no directory shows up. Which brings me to the question, *where* should I create this directory? The fact that *all* the objects I find in the /dev/dsk are simbolic links makes me think that my mkdir command did work, but somehow it placed the /flash directory somewhere else. Weird.

Commented:
/flash should be under / (along with /var, /opt, /usr, /etc)

Author

Commented:
Ah, ok. That's where I'll make it. I managed to get it mounted, but there is another problem: I can transfer data to the flash drive from the Solaris machine, but when I put it on a PC (either Win2k or XP), the PC does not see the data.

Commented:
I've only test XP --> solaris, and I won't get a chance to test Solaris --> XP today.  Try it both ways and let me know

Author

Commented:
Well, I was able to transfer data XP --> solaris --> XP. But unmounting the /flash is a real headache. In fact, this whole thing is much more headache than it's worth. I'm going to see about splitting teh points between you guys, liddler and fim32, since you both provided a lot of input.

Commented:
>> But unmounting the /flash is a real headache
umount /flash
(making sures you've cd'ed out of the /flash directory frst)

Author

Commented:
Yes, I did this, but 2 processes associated with the /flash remain up and running. This results in teh umount command failing. The system reports that the drive is busy. I do a ps to find those PIDs, but kill will not kill them. Strange.

Commented:
kill -9 <pid> should work
but before you do, which processes are they? vold? ksh?
vold - use eject, as vold is managing the drive for you
ksh - some one is in the /flash directory

lsof or fuser will return the pids that are accessing the directory

Author

Commented:
Is it necessary to mount/umount every time I plug and unplug a flash stick into the Solaris machine?

Commented:
Don't forget to navigate out of the /flash directory, or the umount will fail.  This is the most common reason for the umount error.  Also, in the future, if you can not create a /flash directory, just mount it to /mnt.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks, everyone! You've taught me a great deal.  :o)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.