LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-19-2008, 10:43 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
How to mount the usb


Hi,
In opensolaris 11, the usb is mounted automatically,
I want to use command to mount and umount it, how to do it, I have other FS on my disk Win vfat and linux, can I mount them with command
thanks
bela
 
Old 05-19-2008, 10:47 AM   #2
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
Have you tried rmformat ?
Find your USB disk and mount analogical way as it is done below:
Remember that FAT is PCFS. Im not sure how it is with NTFS support under Solaris.

Code:
bash-3.00# rmformat
Looking for devices...
     1. Volmgt Node: /vol/dev/aliases/cdrom0
        Logical Node: /dev/rdsk/c0t0d0s2
        Physical Node: /pci@1e,600000/ide@d/sd@0,0
        Connected Device: TOSHIBA  DVD-ROM SD-C2612 1011
        Device Type: DVD Reader
     2. Logical Node: /dev/rdsk/c3t0d0s2
        Physical Node: /pci@1e,600000/usb@a/storage@1/disk@0,0
        Connected Device:          TOSHIBA MK4025GA KA10
        Device Type: Removable

mount -F pcfs /dev/dsk/c3t0d0s2:c /mnt/usb/
 
Old 05-19-2008, 10:49 AM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
do a df -h

look at output, see how the USB drive is recognized(if it auto mounts it). Then you can unmount it with either the device or location ie:
umount /dev/sda1
or
umount /mnt/usb

you'll have to change the parts after umount according to what you find in df -h
other commands to help determing how the usb drive is recognized are:
dmesg
dmesg | grep sd
or dmesg | grep sb
depending on how many usb drives or sata drives you have


to mount you need to know the filesystem of the drive and a mount point so in this example you have a usb drive with fat32(vfat) FS

mount -t vfat /dev/sda1 /mnt/usb

man mount
for additional help
 
Old 05-19-2008, 11:40 AM   #4
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Rep: Reputation: 15
Quote:
Originally Posted by ncsuapex View Post
d

mount -t vfat /dev/sda1 /mnt/usb
This is how to mount in Linux.
In Solaris you do it the way czezz indicates:

mount -F pcfs /dev/dsk/c3t0d0s2:c /mnt/usb/

Regs, C
 
Old 05-19-2008, 11:44 AM   #5
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
ahh sorry.. haven't used solaris in a long time.
 
Old 06-05-2008, 09:42 AM   #6
borbas
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: Disabled
But I'm using Linux and has used your advice. Thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make removable USB hdd mount at fixed mount point ctkroeker Linux - General 13 08-11-2009 08:49 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 11:50 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration