Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th February 2010, 11:14 AM
corvus12 Offline
Registered User
 
Join Date: Feb 2009
Posts: 6
linuxfedorafirefox
static mount points in Fedora 12

How do I get my optical drives to use static mount points in Fedora 12?
Mounting by disk label does not play nicely with Wine.
It used to be that this would be done by using gnome-mount, or editing the HAL configuration,
but it seems that these methods have been obsoleted starting with Fedora 12.
Reply With Quote
  #2  
Old 18th February 2010, 12:50 AM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
windows_xp_2003ie
Hello corvus12,

Consider a custom udev rule. You can use that either to name the device nodes of those drives how you like or, probably better, to create symlinks to their default device nodes. The tutorial Writing udev rules tells how a udev rule basically uses one or more match keys that are unique attributes of the device to positively identify it, and then it uses an assignment key to apply an "action", so-to-speak (such as name the device node or symlink to it). The tutorial will teach you how to get the device's unique attributes for the match keys and how to write your custom rule specifying the assignment key to do what you want to the device. It will also tell where to put your custom rules. At first glance, the tutorial can be both intimidating and dry reading. But after I read it about a dozen times, it gradually made perfect sense to me. Once the subject is understood, the actual writing of a custom udev rule is easy and takes seconds.

P.S.: Where that tutorial uses udevinfo to list the attributes of a device, plan on using udevadm nowadays. See the man page for udevadm for how to list attributes with it.
Reply With Quote
  #3  
Old 18th February 2010, 08:48 AM
corvus12 Offline
Registered User
 
Join Date: Feb 2009
Posts: 6
linuxfedorafirefox
I thought of the udev rule thing first. But then I realized that my problem did not have to do with device node naming, but with where the filesystem gets mounted. My disks come up as /dev/sr0 and /dev/sr1, which is no problem. I want the automounter to mount them as /media/dvdrecorder and /media/cdrom, instead of each as /media/[disk label]. I can't add an entry to fstab, because then the drive gets mounted twice.
Reply With Quote
  #4  
Old 18th February 2010, 12:49 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
windows_xp_2003ie
IMO, it's not necessarily a problem for a device to be mounted twice. But anyway, another thing you could try is to stop the devices from being automatically mounted as /media/[disk label], and use an fstab entry to mount them how you prefer. For that, you could use their default device names if they are internal devices not expected to be named in a varying way.

P.S.: Okay. I found out at least one way to mount the disk placed into an optical drive at something other than /media/[disk label]. The idea I used was to create an fdi file in /etc/hal/fdi/information that stops hal from issuing an automount hint (storage.automount_enabled_hint). But it does not stop hal from continuing to poll the optical drive (storage.media_check_enabled). That results in the disk not being auto-mounted at /media/[disk label], but still allows a disk to be detected upon insertion for an fstab entry to mount the disk at some other mount point. It worked. Maybe there is a more elegant way such as directly modifying the auto-mounted mount point. Or, maybe there is some GUI applet that can do this. I don't know about those things. Some hal expert might know about that and provide information. Anyway, to me, this is just as good as that would be. Just FYI. Details available if you want them.

Last edited by stoat; 19th February 2010 at 11:28 PM.
Reply With Quote
Reply

Tags
fedora 12, gnome-mount, hal, static mount points, wine

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with XP mount points? leonardevens Installation and Live Media 4 17th November 2008 10:36 PM
Network Mount Points YellowWeasel Servers & Networking 3 9th March 2007 06:15 PM
Where are my cd-rom mount points? Infinity Using Fedora 6 30th November 2004 03:04 PM


Current GMT-time: 04:25 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat