LinuxQuestions.org
Visit Jeremy's Blog.
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 04-28-2013, 04:14 AM   #1
pstein
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Rep: Reputation: 0
How (where) to mount and access USB Stick?


Assume I have an already running Linux system.

Now I plug in physically an USB stick.

Is this USB stick AUTOMATICALLY detected (and mounted) or do I have to manually mount it?

If it is automatically detected and mounted:

Where is it exactly mounted?

Is /dev/... the place?

Is the default mount point equal in the most common Linux distros (Ubuntu, CentOS, Mint,...) or are there variations?

Thank you
Peter
 
Old 04-28-2013, 04:33 AM   #2
Tralce
Member
 
Registered: Nov 2006
Location: Maine
Distribution: Debian, Ubuntu, Gentoo
Posts: 109

Rep: Reputation: 15
It very much depends on what distribution you're using in this assumption. If it's one of the more user friendly ones, like Ubuntu, it will automatically mount in /media/yourusername/nameofthedrive.

Much more common are distros where you must do it manually. Largely you can mount these wherever you want, but most users cheese to mount them under /mnt. Try using "fdisk -l" to find the block device of the drive (usually /dev/sdxx) and then try "mount /dev/sdxx /mnt"
 
Old 04-28-2013, 08:43 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,913

Rep: Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999Reputation: 1999
I have found that most modern distros with desktop environments will mount USB drives automatically or at least, in the case of XFCE, mount them when they're selected in the file manager.
In Debian, and I think a few other distros, they tend to be mounted as something like /media/DataTraveller where "DataTraveller" is the label on the drive rather than /media/username as Ubuntu and Mint now seem to do.
 
Old 04-28-2013, 11:33 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by pstein View Post
Assume I have an already running Linux system.

Now I plug in physically an USB stick.

Is this USB stick AUTOMATICALLY detected (and mounted) or do I have to manually mount it?

If it is automatically detected and mounted:

Where is it exactly mounted?

Is /dev/... the place?

Is the default mount point equal in the most common Linux distros (Ubuntu, CentOS, Mint,...) or are there variations?

Thank you
Peter
also assuming you are running a modern distro running a modern GUI, then yes it will automagically mount the USB drive as long as you are in the GUI at the time you connect the USB drive to the system. That is a lot of assumptions, not a good place to come from.

The mount point as stated above for automagically mounted devices is /media/user_name/foo in most modern distros.

You can manually mount the USB device via CLI were ever you choose.

as for Ubuntu, CentOS, Mint, etc... you have two listed that are forks of Debian and one that was a direct fork of RHE, but now is a cross between RHE and Fedora. Yes the default automagically mounted mount point is /media/...
 
Old 04-28-2013, 08:35 PM   #5
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 628

Rep: Reputation: 144Reputation: 144
just for the record fedora has to be different and media is mounted under /run/media/username. CentOS is still old school and uses /media
 
Old 04-28-2013, 10:17 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by timl View Post
just for the record fedora has to be different and media is mounted under /run/media/username. CentOS is still old school and uses /media
then that is new since F17, the last fedora I personally used as a workstation. my daughter is running F18, but ive never automagically mounted a USB device on her laptop .
 
Old 04-29-2013, 02:55 AM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
In Debian the default mount folder is /media but the mounting is never automatic. Typically the Device Notifier pops up when you plug something in and you click on the device displayed if you want to mount it.
/dev/ indicates the location of the physical device. This is used to tell several devices apart but /dev is definitely not the mount point where is these devices can be accessed. Running the mount on the command line will give you a picture of what's going on on your own system. A typical entry looks like this:
Code:
/dev/sdc1 on /media/backups type ext2 (rw,relatime,errors=continue,user_xattr,acl)
jdk
 
  


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
How to stop USB stick to mount automatically and mount it manually. gardenair Linux - Hardware 1 01-26-2011 11:04 PM
[SOLVED] cannot mount USB stick ken poy Linux - Newbie 1 09-09-2010 02:59 PM
How Do mount USB stick connected to pcmcia-usb-adapter Raamisaha Linux - Newbie 3 02-11-2008 11:46 AM
Mount USB Stick tronayne Slackware 3 11-04-2007 10:41 PM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 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