Operating System - HP-UX
1753792 Members
7037 Online
108799 Solutions
New Discussion юеВ

Creating a special device file....?

 
SOLVED
Go to solution
Lucien Wolfs
Valued Contributor

Creating a special device file....?

Hi,

A new robotics tapedevice is added. With ioscan -f I see:
unknown -1 0/0/12/0/0.9.26.255.14.8.0 UNCLAIMED UNKNOWN STK L700


Now I should be able to create a special devicefile. Can anybody tell me HOW I can do this.


Thanks !
8 REPLIES 8
Carlos Fernandez Riera
Honored Contributor

Re: Creating a special device file....?

UNCLAIMED and UNKNOWN say that you need to include a new driver into your kernel.

I think it is stape, but noy sure.
unsupported
steven Burgess_2
Honored Contributor

Re: Creating a special device file....?

Hi

here's a note i sent to one of our guys regarding creating device files


The tape devices need to be character device files

to make these use the mknod command

The major and minor numbers can generally be copied by looking at the other device files on that system
or another system

For _6 I looked at the device files are 1m etc and the target file, ie

crw-rw-rw- 2 bin bin 205 0x011000 Apr 26 2000 c1t1d0BEST
crw-rw-rw- 2 bin bin 205 0x011080 Apr 26 2000 c1t1d0BESTb
crw-rw-rw- 2 bin bin 205 0x011040 Apr 26 2000 c1t1d0BESTn
crw-rw-rw- 2 bin bin 205 0x0110c0 Apr 26 2000 c1t1d0BESTnb

You can see at the beginning of the file there is a 'c' for character device

The major number (device driver used by the kernel is 205, the minor number is 0x011000

I saw that the device files for 1m were the same for the targets for 1m ie

crw-rw-rw- 2 bin bin 205 0x011000 Apr 26 2000 1m

crw-rw-rw- 2 bin bin 205 0x011000 Apr 26 2000 c1t1d0BEST

The minor numbers were the same

I then re created the device files for 0m etc using the following

mknod /dev/rmt/0m c 205 0x010000
mknod /dev/rmt/0mb c 205 0x010080
mknod /dev/rmt/0mn c 205 0x010040
mknod /dev/rmt/0mnb c 205 0x0100c0

You can then read the tape header

Hope this info is ok

Regards

Steve
take your time and think things through
Clemens van Everdingen
Honored Contributor

Re: Creating a special device file....?

Hi,

You still have to put stape and schgr driver in the kernel.
Normally if the correct drivers are in the kernel you have to run ioscan and maybe insf to create the special files.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Lucien Wolfs
Valued Contributor

Re: Creating a special device file....?

The stape driver is loaded, the schgr driver not. Is this the only driver needed ?
(Reboot is difficult: not the command, but the users !)
Clemens van Everdingen
Honored Contributor

Re: Creating a special device file....?

Hi,

I think it's the only extra driver needed but I will check a bit more.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Clemens van Everdingen
Honored Contributor
Solution

Re: Creating a special device file....?

Hi,

For some more information see different manuals.
http://www.hp.com/cposupport/manindex/hpsurestor19258_eng_man.html
Especially tape library configuration.
As I read sctl driver is needed as well.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Steven Gillard_2
Honored Contributor

Re: Creating a special device file....?

Have a look at the following document:

http://europe-support2.external.hp.com/cki/bin/doc.pl/sid=e9e6411f07aa729de6/screen=ckiDisplayDocument?docId=200000059736919

It depends on your hardware type - there are a couple of options.

Regards,
Steve
Lucien Wolfs
Valued Contributor

Re: Creating a special device file....?

Thanks,

I'll reboot the system enabling the SCHGR driver.