LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2010, 08:07 AM   #1
ravigovind29
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Rep: Reputation: 0
Post how to mount usb pen drive


hi

this is ravi i want to know how to mount the usb pen drive
in redhat linux box this redhat 3 version


regards
ravi
 
Old 09-29-2010, 08:24 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
Quote:
Originally Posted by ravigovind29 View Post
hi

this is ravi i want to know how to mount the usb pen drive
in redhat linux box this redhat 3 version


regards
ravi
Did you try mount command ?

mount device_name mount_point

Code:
# mount /dev/sdb1 /media/usb
Regards,
 
Old 09-29-2010, 08:34 AM   #3
mardi
LQ Newbie
 
Registered: Sep 2010
Location: Indonesia
Distribution: RedHat
Posts: 16

Rep: Reputation: 3
Hi Ravi,

First of all, you had to know which device is going to asign for your pen drive. type this code after your plug-in your pen drive.
Quote:
dmesg | tail
Then, you'll see the device of your pen drive is asign for. for example the device is asign for /dev/sdb.
Next, you have to decide which partition that you want to mount. if there're just one partition so it's should be /dev/sdb1.
And then, make a directory for your mount point. for example you'll mount to /mnt/penDrive.
Quote:
mkdir -p /mnt/penDrive
The last thing before you run mount point, you have to know what kind of file system was used on your pen drive. for example, we assume the file system is FAT (16/32).

so, type this one to mount a pen drive to /mnt/penDrive where the file system is FAT.
Quote:
mount -t vfat /dev/sdb1 /mnt/penDrive
Hope this information give you a view about your problem

Regards,
Mardi V. Tamma
 
1 members found this post helpful.
Old 09-29-2010, 09:00 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,340
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
I describe what how I mounted my podplayer (which, as far as Linux is concerned, is just another USB mass storage device) here. There's some stuff in the post that won't apply to a memory stick, but the basics do:

1. Use dmesg to identify how Linux sees it.

2. Create a mount directory for it under /mnt or /media (Media seems to be favored these days).

3. Enter it in fstab.
 
Old 09-29-2010, 09:23 PM   #5
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
Open a terminal
first check what device your pendrive is assigned.
#fdisk -l

This command will display almost all the necessary information.

For example on my system I have two harddisks and after inserting a pendrive. It displays the following.

basheer@basheer-desktop:~$fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x008b008b

Device Boot Start End Blocks Id System
/dev/sda1 1 1824 14651248+ 7 HPFS/NTFS
/dev/sda2 1825 3648 14651280 83 Linux
/dev/sda3 3649 5472 14651280 83 Linux
/dev/sda4 * 5473 9729 34194322 5 Extended
/dev/sda5 5473 7296 14651248+ 83 Linux
/dev/sda6 7297 8512 9767488+ 83 Linux
/dev/sda7 8513 9424 7325608+ 7 HPFS/NTFS
/dev/sda8 9425 9729 2449881 82 Linux swap / Solaris

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002dc72

Device Boot Start End Blocks Id System
/dev/sdb1 1 2432 19535008+ 7 HPFS/NTFS
/dev/sdb2 2433 6079 29294527+ 83 Linux
/dev/sdb3 6080 8511 19535040 83 Linux
/dev/sdb4 * 8512 19457 87923714+ 5 Extended
/dev/sdb5 8512 12158 29294496 83 Linux
/dev/sdb6 12159 14590 19535008+ 83 Linux
/dev/sdb7 14591 17022 19535008+ 83 Linux
/dev/sdb8 17023 18846 14651248+ 7 HPFS/NTFS
/dev/sdb9 18847 19457 4907826 82 Linux swap / Solaris

Disk /dev/sdc: 8032 MB, 8032092160 bytes
248 heads, 62 sectors/track, 1020 cylinders
Units = cylinders of 15376 * 512 = 7872512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xde8e7bb0

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 510 3920849 6 FAT16
/dev/sdc2 511 1020 3920880 83 Linux
basheer@basheer-desktop:~$

Where /dev/sdc1 and /devsdc2 are the partitions on the pendrive.

you can mount the pendrive as

mount -t vfat /dev/sdc1 /mnt (for FAT16)

or

mount -t ext3 /dev/sdc2 /mnt (for ext3)

Hope this works.
 
Old 10-04-2010, 07:37 AM   #6
ravigovind29
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Original Poster
Rep: Reputation: 0
hi guys

i tried dmseg | tail command
but i am getting the following warning message

Warning USB mass storage data integrity not assured


# dmseg | tail

Initializing USB mass storage device

usb c: registered new driver usb storage


starting times 0 : 0
vendor Jetflash model : Transcend 4 GB
Warning USB mass storage data integrity not assured
USB Mass storage device found at 2

#fdisk -l
disk /dev/hda 40.0 GB 4060403712 bytes.
45 heads, 63 sector/head, 4870 cylinders
device boot start end system
/dev/hda1 win95 fat
/dev/hda2 win95 extd
/dev/hda5 win95 fat32
/dev/hda6 linux
/dev/hda7 linux
/dev/hda8 linux swap
/dev/hda9 linux
/dev/hda10 win95 fat32


the above message i got when i tried

so i am not able to mount the pen drive pls tell me the other option

i am using redhat enterprises 3 version
 
Old 10-04-2010, 07:49 AM   #7
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Which command you used to mount the USB drive?Please let us know.Also let us know the error you get(if any).

Bye the way we can't see USB listed in fdisk -l
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mount usb pen drive prashsharma Linux - Server 2 07-22-2007 12:49 AM
can't mount usb pen drive with hotplug dori Slackware 8 03-02-2007 03:22 AM
mount Kingston USB 2.0 pen drive muru Fedora 2 02-16-2006 08:02 AM
Difficulty to mount USB Pen Drive fatra2 Linux - Hardware 5 09-10-2004 02:58 AM
howto mount usb pen drive? name_in_use450 Linux - Hardware 2 08-24-2004 08:23 AM


All times are GMT -5. The time now is 02:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration