LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-10-2011, 01:26 PM   #1
Upendra Pratap Singh
Member
 
Registered: May 2011
Location: India
Distribution: Linux Mint 12 lisa
Posts: 37
Blog Entries: 1

Rep: Reputation: 0
Question using USB Flash drive in Linux


Whenever I insert a CD-ROM into the corresponding CD-ROM drive, my operating system (Linux Mint version 10) is able to read the CD- ROM.

The same thing is not happening in case I am pugging in the USB FlashDrive(pen drive); the operating system is not able to recognise my pen drive.

I have recently installed Linux Mint version 10(about 10 hours ago) and I am not well acquainted with linux.

Please help me with the required technical assistance.


I would also like to know if there are certain settings that we have to make to make the operating system read my pen drive.

Besides, I would also like to know if there is any mechanism in Linux, by virtue of which we can transfer data on to the USB Flash Drive.
 
Old 05-10-2011, 01:40 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi there,

Well if you go in K button at the left hand bottom corner of Linux Mint KDE and click on that you will see options like Favorites, Applications, Computer etc. Click on Computer and it will show couple of options select Home Folder. When you open home folder on the left hand side it will show you all the drives. Check if you see your USB drive in there.

Another option of mounting usb drive is via command line but that will be a bit tricky if you have not worked with Linux before. Anyways here it is.

1. Connect USB to the system.
2. Click on K button at the left hand bottom corner and the first option you will see is Terminal (Kconsole). Click on that and it will open up command line console for you.
3. Type "df -h" without quotes, hit enter and see what are the devices that are currently mounted. It will display the output something like /dev/sdb1 size of the disk /
4. Type "cd /dev/" without quotes and hit enter.
5. Type "ls -l | grep sda" without quotes and hit enter. See what are the devices showing up. Ignore the ones that are already mounted. Look for a device that is not mounted. Say /dev/sda5
6. Type "mount /dev/sdax /media" without quotes and hit enter. Remember the x after sda will be the partition number that you have identified from step 5.
7. Now you have your USB drive mounted.

To copy any file to your USB drive issue the following command:

cp -arv /source_file /media

where source_file will be the file that you are trying to copy and /media is your USB mount point where you want to copy the file.

Once the copy is done you can unmount USB by the following command:

umount /media
 
Old 05-10-2011, 01:54 PM   #3
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,845

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
It sounds like your pen drive is not mounted. These devices look like an exernal hard drive to linux.

Some things to try. Open a terminal, and run the command 'lsusb' ( without the quotes ). You should get a listing of attached USB devices. The pen drive should be listed. Here is what it will look like.

Quote:
lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0461:4d03 Primax Electronics, Ltd Kensington Mouse-in-a-box
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0781:5530 SanDisk Corp.
Bus 001 Device 003: ID 5986:0182 Acer, Inc
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The SanDisk is my pen drive. If it does not show up, then you may have a driver problem. If it shows up, try to mount it.

This takes root user. You need a directory to mount it to. Most distros give you an empty directory called /media for this purpose. The command would be;

'sudo mount /dev/sr0 /media/sr0' ( no quotes ). sr0 is the device, this gets created when you hot plug the stick. It may be a different device on your system. To find out, go to the /dev dir. Type 'sr' and press tab, twice. That will list all occurrences of sr. Success is indicated by no response from the system. Do a cd /media and then a ls command. You should see the files on the stick.

You don't need any special programs for USB sticks. Any file manager will work.

Hope this helps.
 
  


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
Specific Linux for USB Flash Drive Gallifrey Linux - Newbie 5 03-25-2010 04:21 PM
Which Linux Distro is the best for USB Flash Drive? P@trick99 Linux - Newbie 7 10-25-2008 06:20 PM
Linux On Flash USB Drive eng_muhammad Linux - Distributions 7 10-03-2007 11:26 PM
How do I use my USB flash drive on Linux Drague Linux - Hardware 7 01-23-2006 10:27 PM
Using a USB flash drive with Linux membrax Linux - Hardware 76 11-03-2005 11:25 AM


All times are GMT -5. The time now is 11:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration