LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-13-2009, 12:21 PM   #1
nemesis9
LQ Newbie
 
Registered: Jul 2009
Location: Arizona
Distribution: Redhat Fedora
Posts: 20

Rep: Reputation: 1
How to get Redhat to automount USB like Fedora


On Fedora, when you insert a USB stick it automounts to some directory in /media.

We are using RHEL 5 as a desktop workstation and want the same behavior, but it doesn't appear to do this out of the box.

What needs to be done to get this to work?

Thanks
 
Old 08-13-2009, 12:30 PM   #2
ThinkFree
Member
 
Registered: Jan 2009
Location: India
Distribution: Fedora, Arch, OpenSolaris
Posts: 112

Rep: Reputation: 20
Add this in /etc/fstab file
Quote:
/dev/sdb1 /media/usb/ auto defaults,auto,user 0 0
You need to create /media/usb directory first.
 
Old 08-13-2009, 02:45 PM   #3
nemesis9
LQ Newbie
 
Registered: Jul 2009
Location: Arizona
Distribution: Redhat Fedora
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ThinkFree View Post
Add this in /etc/fstab file
/dev/sdb1 /media/usb/ auto defaults,auto,user 0 0
You need to create /media/usb directory first.
I don't think Fedora does it that way. fstab will work, but you need to create entries for all ports, since one might insert two sticks, one in /dev/sdb1, and another in /dev/sdc1.
Isn't there a solution using dbus or udev or something?
 
Old 08-13-2009, 04:36 PM   #4
nemesis9
LQ Newbie
 
Registered: Jul 2009
Location: Arizona
Distribution: Redhat Fedora
Posts: 20

Original Poster
Rep: Reputation: 1
gnome_volume_manager

So the gnome people say make sure hald is running, ok I got that. Process 3114 is hald. Also hald-addon-storage is polling /dev/sdb which is where I am hotplugging my USB sticks.

Then, go into Preferences and select "Removable Drives and Media Preferences", so I do that, and I select to "Mount removable drives when hot-plugged". Check.

Then I hot plug a USB stick and voila, NOTHING HAPPENS.
So, what is wrong.
The problem with Linux is that there are 3 million ways to do everything and none of them work.
 
Old 08-13-2009, 05:03 PM   #5
nemesis9
LQ Newbie
 
Registered: Jul 2009
Location: Arizona
Distribution: Redhat Fedora
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by nemesis9 View Post
So the gnome people say make sure hald is running, ok I got that. Process 3114 is hald. Also hald-addon-storage is polling /dev/sdb which is where I am hotplugging my USB sticks.

Then, go into Preferences and select "Removable Drives and Media Preferences", so I do that, and I select to "Mount removable drives when hot-plugged". Check.

Then I hot plug a USB stick and voila, NOTHING HAPPENS.
So, what is wrong.
The problem with Linux is that there are 3 million ways to do everything and none of them work.
Apparently some dbus policy is denying access, if I get this corrected I might get somewhere.
 
Old 08-13-2009, 05:08 PM   #6
nemesis9
LQ Newbie
 
Registered: Jul 2009
Location: Arizona
Distribution: Redhat Fedora
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by nemesis9 View Post
Apparently some dbus policy is denying access, if I get this corrected I might get somewhere.
OK, so I edited /etc/dbus-1/system.d/hal.conf and set the default policy

<allow send_interface="org.freedesktop.Hal.Device.Volume"/>

It was set to "deny" before. Now it works like Fedora, except it doesn't launch Nautilus, which is good cuz I don't need Nautilus.

Thanks for your patience.
 
Old 08-13-2009, 05:47 PM   #7
nemesis9
LQ Newbie
 
Registered: Jul 2009
Location: Arizona
Distribution: Redhat Fedora
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by nemesis9 View Post
OK, so I edited /etc/dbus-1/system.d/hal.conf and set the default policy

<allow send_interface="org.freedesktop.Hal.Device.Volume"/>

It was set to "deny" before. Now it works like Fedora, except it doesn't launch Nautilus, which is good cuz I don't need Nautilus.

Thanks for your patience.
Ok, that's all fine and dandy, but now I would like this to work outside of any Window Manager. When I run the system from a console, there is no automounting taking place. How do I get that to work? In other words, what is the piece that Gnome is bringing to the table that is missing from the console?
 
Old 08-14-2009, 03:18 PM   #8
nemesis9
LQ Newbie
 
Registered: Jul 2009
Location: Arizona
Distribution: Redhat Fedora
Posts: 20

Original Poster
Rep: Reputation: 1
Seems to work now

Don't what I did, but it seems to be working from the console as well
 
  


Reply



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 Automount: /media/USB Disk morxy Linux - Hardware 3 10-20-2006 08:08 AM
automount NTFS in Redhat 8.0 manub Linux - Newbie 31 03-31-2005 01:57 PM
Fedora Core 3 / USB Pen Drive Automount clickster Fedora 2 12-31-2004 06:16 AM
Setting up Automount on Redhat 9 miqorz Red Hat 6 03-23-2004 06:24 PM
Redhat 9 CD Automount 1jamie Linux - Software 2 08-28-2003 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:02 AM.

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
Open Source Consulting | Domain Registration