Find the answer to your Linux question:
Results 1 to 4 of 4
Hi folks, On creating a loop block device, run; mknod /dev/loop0 b 7 0 mknod /dev/loop1 b 7 1 7 and 0/1 are major and minor number respectively. What does ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778

    mknod comman


    Hi folks,

    On creating a loop block device, run;

    mknod /dev/loop0 b 7 0
    mknod /dev/loop1 b 7 1

    7 and 0/1 are major and minor number respectively. What does it mean major/minor?

    Wlhere can I find the latest version of The Linux Bootdisk Howto? The version I have is;

    v4.5, January 2002
    by Tom Fawcett

    TIA

    BR
    satimis

  2. #2
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Major generally points you to a device driver, the minor numbers allow that driver to address individual devices. For instance, on my system my tty devices are major 4, and each tty has its own minor number. Think of it as an apartment block - you have a (major) building address and each apartment has its own (minor) number.

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Hi scm,

    Tks for your explanation. How to find the major/device driver number e.g. block, tty devices, etc.

    TIA

    BR
    satimis

  4. #4
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    Quote Originally Posted by satimis
    Hi scm,

    Tks for your explanation. How to find the major/device driver number e.g. block, tty devices, etc.

    TIA

    BR
    satimis
    As I posted in your thread on linuxforums.com, it can be checked in the kernel documentation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •