On Wed, 12 Dec 2001, P K wrote:
> What is the maining of the following command? > > mknod /dev/hdb1 b 22, 1 Your Linux box should come with some documentation called manual pages. You can find out about this "mknod" command with: man mknod Basically, what your command means is: make a special block device file using the major device 22 (which tells the kernel what device driver entry point to use) and minor device node 1 (which is specific to the major 22). It is symbolic -- it helps reference an understandable name with a particular kernel device driver (which may or may not be used for physical hardware). Have a look at /usr/src/linux/include/linux/major.h (or /usr/include/linux/major.h): 22 is IDE1_MAJOR Also look at /usr/src/linux/Documentation/devices.txt for the list of "LINUX ALLOCATED DEVICES". You will see that block major 22 is "Second IDE hard disk/CD-ROM interface". Block minor 1 is the first partition. You should have a variety of real examples in /dev/MAKEDEV. I am not sure why your example names it /dev/hdb1 because usually this is major 3 and minor 65. (Commonly, 22,1 is /dev/hdc1.) If it offends you to be told to use a manual page, please note that you never told this list what details you do know; your question was very vague. Also, please consider using a subject line that accurately identifies the topic of your message. Jeremy C. Reed echo 'G014AE824B0-07CC?/JJFFFI?D64CB>D=3C427=>;>6HI2><J' | tr /-_ :\ Sc-y./ | sed swxw`uname`w _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list