APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

difference between /dev/sr0 and
© May 2019 Anthony Lawrence
/dev/scd0

There isn't necessarily any difference at all.

This sometomes comes up because somebody is having trouble accessing a cd - perhaps for reading, but more likely for burning. One device node doesn't work, so they try another.

If a "ls -l" of the two devices gives the same major/minor numbers (see Understanding Unix Devices), the device IS going to behave identically in the kernel, because the major and minor numbers are all that the kernel gets. It picks the driver based on the first number and passes the second number to that driver.

Sure, some silly piece of software might insist that you use some particular name (some serial software does that) but internally, none of that matters.

And what do the minor numbers mean? Whatever the person who wrote the driver wants them to mean. For Linux, there's a good list at https://www.lanana.org/docs/device-list/devices.txt but without documentation like that or source, a minor number doesn't tell you anything.

That is especially true when looking at different operating systems. You might have noticed that tty devices have a major number of "3" on your Ubuntu Linux.On a SCO Unix system, "5" would be used. Different systems will use different schemes.

Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> difference between /dev/sr0 and /dev/scd0

2 comments


Inexpensive and informative Apple related e-books:

Take Control of Preview

iOS 8: A Take Control Crash Course

Take Control of iCloud, Fifth Edition

Are Your Bits Flipped?

Photos: A Take Control Crash Course




More Articles by © Tony Lawrence






Sat Mar 20 06:52:47 2010: 8244   anonymous

gravatar


when a cd writing process is going on then which of the file is responsible to interact with scsi drier or how does cdrecord work?





Sat Mar 20 11:39:29 2010: 8245   TonyLawrence

gravatar


I'm sorry - I do not understand your question. Can you rephrase?

------------------------


Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





I am not the only person who uses his computer mainly for the purpose of diddling with his computer. (Dave Barry)




Linux posts

Troubleshooting posts


This post tagged:

Kernel

Linux

Optical



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode





SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)
www.SCOsales.com