LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 09:13 AM   #1
akamikeym
Member
 
Registered: May 2008
Posts: 112

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, 06:10 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
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 06:15 AM.
 
Old 03-31-2010, 10:56 AM   #3
akamikeym
Member
 
Registered: May 2008
Posts: 112

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, 01:12 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Goodbye
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

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