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 14th August 2011, 06:52 PM
gowen85 Offline
Registered User
 
Join Date: Aug 2011
Posts: 1
macossafari
udev rule, sata host seems to change

Hi All,

I am quite new to Linux and have been trying to scour the internet for days for the answer to this question.

I am trying to create a udev rule for a specific sata port on my motherboard, so that when a disk is inserted (regardless of what it is) into a hot swap tray, it will be mounted in the same place. I have three of these drives and would like each to create a symbolic link to drive1, drive2 and drive3 respectively.

I have used udevadm to discover the kernel value for the scsi host, but this appears to change from time to time when the system is rebooted. However older versions of linux appear to keep this number (e.g. 5:0:0:0) a constant.

This is a bit annoying as if it changes I need to update the rules with the new kernels value.

I was wondering if there was a way to either:

a) stop this from happening
b) use a different value in the rule which will identify the port

I have seen something about the command scsi_id, but I am not sure whether this will work for a port...

Many Thanks
Reply With Quote
Reply

Tags
change, host, rule, sata, udev

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
[SOLVED] Using UDEV rule to run a script atavus Programming & Packaging 2 23rd February 2010 08:30 PM
udev rule (iPod) daviddoria Using Fedora 7 14th December 2008 05:06 PM
Set autosuspend via udev rule or hal policy? logularjason Hardware & Laptops 0 14th January 2008 07:55 AM


Current GMT-time: 06:21 (Wednesday, 19-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