Click to See Complete Forum and Search --> : how do i create a device?


Joćo Figueira
01-26-2002, 11:50 AM
Hello all

I have made a boot disk for my Red Hat Linux which created /dev/fd0 and /dev/hda3 (my ext2 partition). I would like to also add /dev/hda1 (my windows partition).

How do I create that device on the floppy?

thank you.
Joćo Figueira

slapNUT
01-26-2002, 09:23 PM
I believe man mknod will help.

With the floppy mounted you would cd to /dev
pwd to make sure you are in /mnt/fd0/dev
Then do this:

mknod hda1 b 3 1

Then you might need to chown it to root:disk.