Operating System - HP-UX
1835067 Members
2140 Online
110073 Solutions
New Discussion

Need help creating device files

 
Pankaj Garg
New Member

Need help creating device files

I would like to create a alternative for device file /dev/tty0p0 to /dev/spaceball. Can someone tell me how can I do it?

Thanks
3 REPLIES 3
Tom Geudens
Honored Contributor

Re: Need help creating device files

Hi,
I don't know if this works for terminals, but we work with simple symbolic links for tapedrives. Might do :
root/sv00128#ll /dev/robot*
lrwxr-xr-x 1 root sys 13 Apr 3 2001 /dev/robotdass_drv0 -> /dev/rmt/3mnb
lrwxr-xr-x 1 root sys 13 Apr 3 2001 /dev/robotdass_drv1 -> /dev/rmt/2mnb
lrwxr-xr-x 1 root sys 13 Apr 12 15:32 /dev/robotwilg_drv0 -> /dev/rmt/4mnb
lrwxr-xr-x 1 root sys 22 Mar 28 11:22 /dev/robotwilg_drv1 -> /dev/rmt/c16t3d0BESTnb
lrwxr-xr-x 1 root sys 14 Apr 12 15:32 /dev/robotwilg_drv3 -> /dev/rmt/11mnb

Creation is as follows
ln -s /dev/rmt/11mnb /dev/robotwilg_drv3

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
Tore_1
Regular Advisor

Re: Need help creating device files

symbolic link?

ln -s /dev/tty0p0 /dev/spaceball.
Carlos Fernandez Riera
Honored Contributor

Re: Need help creating device files

hardlink ?

ln tty0p0 spaceball


New special file ?

mknod /dev/spaceball c 1 0x000000

unsupported