LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-16-2009, 03:06 PM   #1
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Rep: Reputation: 31
how does one manually mount a usb stick


im using xfce. i would like to have it auto mount to /mnt/usbstick.
 
Old 03-16-2009, 03:12 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
Do you want manual or automatic? to do it manually once you insert the usb stick, running dmesg will show you where the usb stick is available as a block device, e.g. /dev/sdb and /dev/sdb1. Then just run "mount /dev/sdb1 /mnt/usbstick" and job should be a good 'un. you can then also add an /etc/fstab entry to simplify things if you wish... "/dev/sdb1 /mnt/usbstick auto defaults 0 0" should do it. then you can just run "mount /mnt/usbstick"
 
Old 03-16-2009, 03:17 PM   #3
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
Manually mount or auto.mount?

manually is easy: open the terminal and do:
mount /dev/usb /mnt/usbstick

auto.mount
There is a boat load of stuff out there!

http://tldp.org/HOWTO/Automount.html

http://www.linuxquestions.org/questi...k-10.0-225455/

Quote:
http://www.debianhelp.org/node/9937
Basically:
1. Write the rule to create a symlink to the device - this way you can always access it as, say, /dev/usbstick rather than /dev/sda, /dev/sdb etc.
2. Write the rule to automatically mount; you can use something like:
RUN+="/bin/mount -t auto /dev/usbstick /media/usbstick"
(you can drop the '-t auto /dev/usbstick' if you have an fstab entry)
 
  


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
usb stick doesn't mount oskar Linux - Hardware 4 09-22-2008 01:22 PM
How Do mount USB stick connected to pcmcia-usb-adapter Raamisaha Linux - Newbie 3 02-11-2008 11:46 AM
how do I mount my usb stick? Kerel2000 SUSE / openSUSE 5 12-31-2006 07:09 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM
Manually mounting a USB stick in Suse 9.1 Celettu Linux - Hardware 4 09-14-2004 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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