- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to link /dev/cdrom to /dev/dsk/c3t2d0. So I c...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:42 AM
01-09-2003 11:42 AM
I just cant remember how to do this and I know it's any easy linking or command.
Please assist.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:50 AM
01-09-2003 11:50 AM
Re: How to link /dev/cdrom to /dev/dsk/c3t2d0. So I can use mount /dev/cdrom /cdrom
e.g.
brw-r----- 1 bin sys 31 0x022000 date /dev/dsk/c2t2d0
Now, use the mknod command to create a block device with the same major/minor device number tuple.
mknod /dev/cdrom b 31 0x022000
You might also want to create the raw (character) device node as well. Do as ls -l of /dev/rdsk/c2t2d0 and again nore the device numbers.
mknod /dev/rcdrom c 188 0x022000 (or whatever the appropriate major/minor values are)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:51 AM
01-09-2003 11:51 AM
Re: How to link /dev/cdrom to /dev/dsk/c3t2d0. So I can use mount /dev/cdrom /cdrom
# ln -s /dev/dsk/c3t2d0 /dev/dsk/cdrom
I also do:
# ln -s /dev/rdsk/c3t2d0 /dev/rdsk/cdrom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:54 AM
01-09-2003 11:54 AM
Re: How to link /dev/cdrom to /dev/dsk/c3t2d0. So I can use mount /dev/cdrom /cdrom
I agree with Clay. I'd make /dev/dsk/cdrom by doing the 'mknod' instead of the symlink.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:55 AM
01-09-2003 11:55 AM
Re: How to link /dev/cdrom to /dev/dsk/c3t2d0. So I can use mount /dev/cdrom /cdrom
ln -s realfile linked_file
ln [options] [filename] [linkname]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 11:55 AM
01-09-2003 11:55 AM
Re: How to link /dev/cdrom to /dev/dsk/c3t2d0. So I can use mount /dev/cdrom /cdrom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2003 02:30 AM
01-10-2003 02:30 AM
Re: How to link /dev/cdrom to /dev/dsk/c3t2d0. So I can use mount /dev/cdrom /cdrom
Hard links are also used for other device files, like /dev/rmt/0m and since all /dev files are on the same filesystem, a soft/symbolic link is not needed.
Clay and John, *why* do you prefer mknod? IMO it can only lead to problems when one for example changes (remove/re-add) one device file and forgets to change the other(s).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2003 06:04 AM
01-10-2003 06:04 AM
Re: How to link /dev/cdrom to /dev/dsk/c3t2d0. So I can use mount /dev/cdrom /cdrom
My point was simply that given the choice between creating a symlink or using mknod to create the device file, I would choose mknod.
I agree with you that a hard link would work as well, but wouldn't you still face a problem if the device changes, even with a hard link?
JP