LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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



Reply
 
Search this Thread
Old 07-24-2005, 03:34 PM   #1
cerealdaemon
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92

Rep: Reputation: 15
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?
 
Old 07-24-2005, 03:39 PM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
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
 
Old 07-24-2005, 04:09 PM   #3
cerealdaemon
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92

Original Poster
Rep: Reputation: 15
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
 
Old 07-24-2005, 04:15 PM   #4
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Rep: Reputation: 30
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
 
Old 07-24-2005, 05:43 PM   #5
cerealdaemon
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5 (Bordeaux), Kubuntu Dapper Drake
Posts: 92

Original Poster
Rep: Reputation: 15
I'm just wondering if I can get a single physical device be seen as multiple devices by the operating system
 
Old 07-26-2005, 12:55 AM   #6
tylerl
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora
Posts: 4

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
assigning ip's to multiple NIC's in a Fedora Core 4 box vinnypie Linux - Networking 4 11-23-2005 04:21 PM
single ext3 journal device multiple journaled file systems? reelwylde Linux - General 4 09-08-2005 04:00 PM
assigning multiple ip's to nic ? pingu_penguin Linux - Networking 2 05-14-2005 10:00 PM
multiple luns assigning on FastT600 jtafilagi Linux - Hardware 4 02-11-2005 09:48 AM
Assigning ip to network device Jestrik Linux - Networking 9 01-09-2004 04:11 PM


All times are GMT -5. The time now is 05:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration