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

Notices



Reply
 
Search this Thread
Old 03-30-2010, 10:13 AM   #1
akamikeym
Member
 
Registered: May 2008
Posts: 107

Rep: Reputation: 21
udev rules to mount external hard drive at mount point


Hi,

I've been trying to find out all day how to set a mount point for my external hard drive. From what I've been told udev rules are the way to do it, but I've had 0 success with applying my udev rules.

I've tried every combination I can come up with to match my drive (sticking with trying to just make a symlink for testing purposes with no success.

Anyway here's a link to the output of '/sbin/udevadm info -a -p $(/sbin/udevadm info -q path -n /dev/sdb1)'

http://pastebin.org/128616

and here's one of my attempts (in /etc/udev/rules.d/98-local.rules):

SYSFS{model}=="Basics Desktop ", SYMLINK+="usbdevices/music"

I've been reloading the rules with $sudo /sbin/udevadm control --reload-rules

Which I've been running because I get

$ sudo /etc/init.d/udev restart
* Service udev starting
The udev init-script is written for baselayout-2!
Please do not use it with baselayout-1!.
* ERROR: udev failed to start


This is the only thing I've found that gives me any output to indicate what the problem might be.

thanks for your help for this perplexed Gentoo-er
 
Old 03-31-2010, 07:10 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Have you read any documentation on udev at all ?

Because I've never seen SYSFS{model} mentioned anywhere.

A more correct approach would be something like
Code:
SUBSYSTEMS=="scsi", ATTRS{model}=="Basics Desktop  ", SYMLINK+="usbdevices/music"
which would provide a symlink at /dev/usbdevices/music IF /dev/usbdevices aleady exists.

or

Code:
SUBSYSTEMS=="usb", ATTRS{product}=="Basics Desktop  ", SYMLINK+="usbdevices/music"
http://reactivated.net/writing_udev_rules.html

Last edited by smoker; 03-31-2010 at 07:15 AM.
 
Old 03-31-2010, 11:56 AM   #3
akamikeym
Member
 
Registered: May 2008
Posts: 107

Original Poster
Rep: Reputation: 21
Thanks for the reply

Thanks for the reply, though a little less sarcasm would be appreciated. Yes I have read everything I could get my hands on including Daniel Drake's page and one which suggested that only rules containing SYSFS would work. As I indicated that was just one example of many I've tried.

I have tried both the rules you gave with no success, but I'm suspecting now that perhaps the area I've been falling down on is the reloading of my udev rules. Will investigate further.
 
Old 03-31-2010, 02:12 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Goodbye
 
  


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
External hard drive, how do I mount it? trainee Slackware 12 08-19-2009 12:38 PM
mount point for second hard drive zogthegreat Linux - Hardware 3 08-16-2009 11:14 AM
Can't mount external hard drive a_m0d Linux - Hardware 4 07-08-2009 08:44 PM
Moving a mount point to a new hard drive koremori@yahoo.com Linux - Hardware 2 02-19-2007 02:15 PM
Hard Drive Mount Point Question The Oate Mandriva 6 08-03-2004 09:25 PM


All times are GMT -5. The time now is 03:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration