Fedora Linux Support Community & Resources Center
  #1  
Old 1st December 2009, 07:46 PM
sajadfedorafrum Offline
Registered User
 
Join Date: Oct 2009
Posts: 188
linuxfedorafirefox
drive names

in the name of god
hello everybody
how i can change the name or id of my drives?
thanks in advance.
valhamdolelah.
Reply With Quote
  #2  
Old 1st December 2009, 08:46 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfedorafirefox
Hello sajadfedorafrum,

Nowadays, drive enumeration can sometimes be a little unpredictable. Especially with removable devices. It's probably one of the reasons for using UUIDs instead of device names in boot loader config files. Anyway, one way to exert your will over this matter is with custom udev rules. Here is a tutorial which, at first glance, may be intimidating. But after I read it a few dozen times, it began to make sense to me. 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.
Writing udev rules
P.S.: Depending on exactly what you are doing, partition labels may be a simpler thing to do. I use them for the partitions on my external drives and deal with them by their labels without even looking at what their device names happen to be.

Last edited by stoat; 1st December 2009 at 09:13 PM.
Reply With Quote
Reply

Tags
drive, names

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
Fedora 9 - Problem with pen drive and capital letter file names wuemura Using Fedora 5 16th August 2009 03:36 PM
rc names phe Using Fedora 5 5th July 2008 09:13 PM
User names and @ names phree Servers & Networking 4 25th July 2007 09:31 AM
add 3rd hard drive changes device names in fdisk kha Hardware & Laptops 4 25th April 2006 08:24 PM
Hard Drive Partition Names Stealth Using Fedora 4 29th December 2005 02:16 PM


Current GMT-time: 16:13 (Tuesday, 21-05-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