LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-29-2005, 12:17 PM   #1
grautu
Member
 
Registered: Jul 2005
Posts: 142

Rep: Reputation: 15
To change device name


Hi!
For short How can I modify the xyz part of an IDE device name /dev/xyz?
In details My PC has three optical drives which I've added in turn: a CD recorder (/dev/hdb), a DVD reader (/dev/hdd), and a DVD recorder (/dev/hdc). Each of the 3 Linux distributiuons on my PC (Debian, Slackware and Suse) uses different device names in /etc/fstab, for these optical drives. For instance, my DVD reader is /dev/cdrom in Slackware, is /dev/dvd in Suse, and is /dev/hdd (in Debian). And the madhouse should complete since my DVD recorder is a /dev/cdrom and a /dev/dvd as well etc, etc. All in all: for both to know the renaming technique and to unify all my /etc/fstab files, I want to modify these device names.
Could anybody please explain me how to change an IDE name from /dev/oldname to /dev/newname and such that the system do not cry anyway?
Thanks!
 
Old 10-29-2005, 12:25 PM   #2
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
those devices you mentioned like: /dev/dvd, /dev/cdrom don't actually exist. They are soft links to the actual devices which may be /dev/hdc, /dev/hdb, et cetera. The real devices can't be renamed.

Albeit, you can rename those links however you want or you may create new soft links with the name you want, it doesn't matter if you have several links pointing to the same device. Create soft links with ln -s:

Code:
ln -s <source_file> [dest-name]
check the man page for other options.

hope this had helped somehow and you can get your devices' names unified
 
  


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
how to change the interface name of the wireless device knight-rider Linux - Wireless Networking 2 01-19-2005 05:37 PM
How do I change the permissions to mount a device folken718 Slackware 9 08-14-2004 03:02 AM
Can't change CD Writer Device in xcdroast Lul2x Linux - Software 12 03-23-2004 11:23 PM
How to change default MIDI device? redss Linux - General 0 11-25-2003 09:25 PM
Change Eth Device gamehack Slackware 4 09-01-2003 11:31 AM

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

All times are GMT -5. The time now is 10:30 PM.

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