Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-24-2005, 02:34 PM
|
#1
|
|
Member
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92
Rep:
|
assigning multiple device aliases to single drive
I've got two different cd drives, one is a regular cdrw, the other is a dvd/cdrw. I'm curious if in the rc.local file, if I add
ln -s hdc /dev/cdrom
ln -s hdc /dev/cdrw
if the multiple aliases for the same device will disrupt and functioning?
I'd be doing the same to the dvd/cdrw if it were ok to do.
ln -s hdd /dev/cdrw2
ln -s hdd /dev/dvd
ln -s hdd /dev/cdrom2
Any thoughts?
|
|
|
|
07-24-2005, 02:39 PM
|
#2
|
|
Senior Member
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468
Rep:
|
Don't know if that would work but seems like your asking for trouble... Why not just re-mount the drives /hdc /hdd to different mount points depending on what's in the dirve at the time...
KC
|
|
|
|
07-24-2005, 03:09 PM
|
#3
|
|
Member
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92
Original Poster
Rep:
|
thats what I usually do, but its kinda a pain in the butt to have to do that all the time when I put a new media in
There has to be an automatic way to do it
|
|
|
|
07-24-2005, 03:15 PM
|
#4
|
|
Member
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 885
Rep:
|
I donīt understand how it would cause problems linking the same device like that. The only thing is it might confuse you!  I must admit I donīt quite understand what your trying to acomplish 
|
|
|
|
07-24-2005, 04:43 PM
|
#5
|
|
Member
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92
Original Poster
Rep:
|
I'm just wondering if I can get a single physical device be seen as multiple devices by the operating system
|
|
|
|
07-25-2005, 11:55 PM
|
#6
|
|
LQ Newbie
Registered: Apr 2004
Distribution: Fedora
Posts: 4
Rep:
|
Works just fine. Despite what others may tell you, it's actually fairly common practice. If you don't believe me, run "find /dev -type l" to see all the symbolic links in you /dev directory. If you're running a mainstream distro, you'll probably see a few.
If you wanted to, you could also copy /dev/hdd to /dev/cdrom with the same effect, but it could get confusing that way. Symlinks are the preferred method of aliasing devices.
Note that you don't have to alias the device *every time you boot* unless your /dev directory is stored on a ramdisk (like udev). Linking it once will do.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:48 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|