LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-04-2004, 09:57 AM   #1
wi_slacker
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 14

Rep: Reputation: 0
usb automounting


If I mount -a as root, icons for my flash drive and camera appear on my desktop (gnome 2.4). They are both writeable to regular users becuase I have umask=000 for each in /etc/fstab.

I'd like these icons to appear as soon as the device is plugged in. su-ing to root each time I plug one in is a pain, and unnecessary in my opinion. Is there a way to get around this?
 
Old 05-04-2004, 10:03 AM   #2
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Hey.

you don' thave to type "mount -a" inorder to mount things, nor do you have to be root.

As a normal user, you can mount stuff by typing:

$mount <mount-point>

For example, you might be mounting a camera in /mnt/camera, therefore, you would do:

$mount /mnt/camera

and you can unmount by doing
$umount /mnt/camera

In fstab, just make sure that you have "user" written in the options for those devices. It might not work unless this is specified

Hope this helps.

Hamish
 
Old 05-04-2004, 10:25 AM   #3
wi_slacker
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
yes that does help. Still though, if my gf wants to see the pics she just took w/ the camera, and I tell her she has to "open a shell and mount /mnt/camera", she won't be very impressed.

I'm pretty sure SuSE can automatically mount devices when they are plugged in. That is my goal here.

If I have to, I could write a script to pull the pics off the camera and put them in a folder, but I think the automounter would be much cooler.
 
Old 05-04-2004, 10:43 AM   #4
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 293

Rep: Reputation: 31
it's easy for your gf to do it in gnome
just push the right mouse button, choose disks and you'll see your devices marked in fstab with noauto option. choose the one you want to mount and it's already mounted
 
Old 05-04-2004, 11:09 AM   #5
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Totally.

My girlfriend is slowly becoming geeky-er (not really I word I guess), but I set an alias in command line so that she just has to type "usb" and her usb drive mounts. Also, I added an echo into that so that it says hello to her when it mounts....it makes her appreciate linux even more!!!

Hamish
 
Old 05-04-2004, 11:19 AM   #6
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
See this:
http://www.buberel.org/linux/usb-automounter.php
 
Old 05-05-2004, 12:30 AM   #7
Schrambo
Member
 
Registered: Mar 2004
Location: Western Australia
Distribution: Debian Slackware CentOS
Posts: 102

Rep: Reputation: 15
What about creating a Launcher icon to the Icon Panel in Gnome?

I've done this for my optical drives and USB and works beaut. All you gotta do is put in
Code:
mount <mountpoint>
In the command text line, choose a pretty icon and your set to go. (providing that you have created the /etc/fstab entry. Remember to put "auto" in the usb mount options to make it pop up on her desktop.
 
  


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
automounting usb devices with usbmount works well but i have one problem mechmg93 Debian 9 10-23-2005 07:24 AM
Suse 9.2 automounting USB mp3 player badbunny Linux - Newbie 7 08-17-2005 01:06 AM
usb hdd, automounting in new location every boot regavoga Linux - Hardware 1 02-15-2005 12:17 PM
AutoMounting/AutoPlugging for usb memory stick magnetoza Fedora 2 10-08-2004 02:33 PM
AutoMounting .???...............yes, Again :) hamoksh Linux - Newbie 7 08-15-2003 02:07 PM


All times are GMT -5. The time now is 11:15 AM.

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