Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Device File to Read Partitioned DDS tapes

Status
Not open for further replies.

dhaverstick

Programmer
Oct 20, 2005
7
US
Does anyone know how to create the correct device file that will allow me to read partitioned 4 mm DDS tapes? I'm using HP-UX 10.2 and I'm trying to create the device file /dev/rmt/0mp. I found something on the internet that suggested I try mknod 0mp c 205 0x013002 but I can't get that to work.

Thanks,

Darren
 
Martin,

I've tried several different minor numbers, 0x0130XX, where XX has been different combinations of integers. Sometimes the tape is read (using cpio) and sometimes not. However, the partition read is always partition 0 instead of partition 1. I know this because I have a list of files on each partition and the files read are all on partition 0. On my old HP-UX 10.2 box that I used to write stuff to these tapes, the device file to read partition 1 had a major number of 205 and a minor number of 0x013020. This does not work on my new HP-UX 10.2 box. So I don't know if I'm missing some other pieces to this puzzle or what the deal is. Any help you can give me would be greatly appreciated. The tape drive I'm using is an old SCSI DAT drive (HP C1520B) using the stape driver.

Darren Haverstick
 
I'll have to look up a few things, I don't create "custom" device files everyday !!!

However, you say you only read pertition 0, what you might want to try ...

Remove drive from system and then rsf any device files.

Reinstall device, let the server create the devive files, may need an insf -e to help it.

Insert tape, mt -f /dev/rmt/0mnb fsf 1

This will forward the tape "one patition", the n in the mnb say not to rewind, then see if you can access your files.

Unless I misunderstood something, what the device file for the tape is doesn't matter, but the n is important. If the tape device doesn't get the command "no rewind" after you have read your fist part of the tape, it just rewinds, then when you try and read it again, you just read the same data.

Hope this helps,

Martin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top