468x60 Ads

Tuesday, September 4, 2012

Pin It

Widgets

Mount unmount portable usb DVD/HDD drive in Solaris 10(Sparc server)


Assuming system disabled the automount option.

How to check auto Mount is disable or not:
Check whether  volfs is running or not..
# svcs -a|grep volfs
disabled       Jun_06   svc:/system/filesystem/volfs:default

if it is disabled, enable it for enable auto-mounting option.
# svcadm enable volfs
If the  usb flash is recognize by the system it will be mount and you  can see the
status with
# rmformat

rmformat:The rmformat utility is used to  format,  label,  partition,and  perform  other  miscellaneous  functions  on removable, rewritable media that include floppy drives, and the  PCMCIA memory  and  ata  cards. 



mount, umount: - mount or unmount file systems and remote resources

eg: mount [-F FSType] [generic_options] [-o specific_options] [-O] special
mount_point

bash-3.2# mount -F hsfs -o ro /dev/dsk/c0t0d0s0 /cdrom/unnamed_cdrom
bash-3.2#umount /dev/dsk/c0t0d0s0

[-F FSType]
Used to specify the FSType on which to operate. The FSType must be specified or
must be determinable from /etc/vfstab, or by consulting /etc/default/fs or
/etc/dfs/fstypes.

ro | rw Specify read-only or read-write. The default is rw.
/dev/dsk/c0t0d0s0  : :mount device
/cdrom/unnamed_cdrom :mount location

To find under what names file systems are mounted:  use the
 bash-3.2#df -k


The df utility displays the amount of disk space occupied by mounted  or  unmounted  file systems, the amount of used and available space, and how much of  the  file  system's  total capacity has been used.



-k
 Prints the allocation in kbytes. The output consists  of one  line of information for each specified file system.This information includes  the  file  system  name,  the total  space allocated in the file system, the amount of space allocated to existing files, the total  amount  of space  available  for  the  creation  of  new  files  by unprivileged  users,  and  the  percentage  of  normally.

1 comments:

Unknown said...

I am glad to see this information providing article.
Computer data damage scenario is generally a headache for the individual.
A range of data recovery computer software programs happen to be designed a by the experts, with the intention that a person can certainly simply restore their lost data.
End user should be knowledgeable of the available info restoration resources guaranteeing that he'll deal the info deletion situation in a very correct way.
repair dbx

Post a Comment