- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- major and minor numbers in Linux
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
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
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
тАО07-26-2001 10:37 PM
тАО07-26-2001 10:37 PM
In HP-UX major number of a device file represents the device driver in the kernel and from the minor number one can extracts the hw path of the device.
What do major and minor numbers in Linux mean? What information they can bring for us?
Thanks,
Rumen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2001 04:14 AM
тАО07-27-2001 04:14 AM
SolutionThe major number is the slot in the devsw tables in the kernel that the driver occupies. The two tables b_devsw and c_devsw are the block and character device switch tables. Block device file major numbers are actually an index into the b_devsw table, and similarly, character device major numbers are index into the c_devsw table.
The minor numbers, by definition, are defined by the driver itself. Check the man pages for the particular device driver to find out what the minor numbers mean. Typically they indicate a unique subdevice, such as a bus, id, and lun for scsi devices. Some devices, such as ptys, the devices are simply numbered 1, 2, 3, 4, etc. They can mean anything the device driver writer desires.
Have fun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2001 01:48 PM
тАО07-27-2001 01:48 PM
Re: major and minor numbers in Linux
Just an additional information : in Linux, you can find the list of minor numbers and their meanings in the kernel documentation. If installed in your system, check /usr/src/linux/Documentation/devices.txt. Otherwise :
http://www.linuxhq.com/kernel/v2.4/doc/devices.txt.html
Good luck.
Kodjo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2001 09:27 AM
тАО07-30-2001 09:27 AM
Re: major and minor numbers in Linux
Kodjo, I now about devices.txt document. It is very useful in case of recreating lost device files. In this document one can find major and minor numbers for almost every device file, but can not find the answer of my question.
Regards,
Rumen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-23-2004 02:07 AM
тАО09-23-2004 02:07 AM