How to access "Pen drive" in RHEL/CentOS 6 or linux type Operating systems



**************************************************************************

1.first of all insert your device {Pen drive}.

2.check your device name {Pen drive} by dmesg command.


[yogesh@PC ~]$ dmesg | tail
sd 2:0:0:0: Attached scsi generic sg3 type 0
sd 2:0:0:0: [sdc] 7823296 512-byte logical blocks: (4.00 GB/3.72 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 65 44 09 30
sd 2:0:0:0: [sdc] Assuming drive cache: write through
sd 2:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1          <-----------{this is your device name (Pen drive) }
sd 2:0:0:0: [sdc] Assuming drive cache: write through
sd 2:0:0:0: [sdc] Attached SCSI removable disk
SELinux: initialized (dev sdc1, type vfat), uses genfs_contexts




3.Now mount your device {Pen drive} by mount command. you have to be root to execute this command, so switch to user root by "su -" command.
 
[yogesh@PC ~]$ mount /dev/sdc
sdc   sdc1 
[yogesh@PC ~]$ mount /dev/sdc1 /mnt/
mount: only root can do that
[yogesh@PC ~]$ su -
Password:
[root@PC ~]# mount /dev/sdc1 /mnt/

[root@PC ~]# ll /mnt/
total 330952
-rwxr-xr-x. 1 root root 338890534 Mar 17 06:38 VMware-Workstation-Full-8.0.2-591240.x86_64.bundle
drwxr-xr-x. 2 root root      4096 Jan  5 22:25 VMware.Workstation
[root@PC ~]#


****************************************************************************


0 comments:

Post a Comment

Note: only a member of this blog may post a comment.