Ignite-UX

HP-UX 10.20 Tape Permission Denied

 
Suresh Sandasani
Occasional Contributor

HP-UX 10.20 Tape Permission Denied

Hello All,

I have an internal DDS tape drive getting the following error when I even check the status.
Can someone help me ?

# mt -t /dev/rmt/0mn status
/dev/rmt/0mn: Permission denied
#

# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
tape 0 10/12/5.0.0 stape CLAIMED DEVICE HP C1533A
/dev/rmt/0m /dev/rmt/0mn /dev/rmt/c1t0d0BEST /dev/rmt/c1t0d0BESTn
/dev/rmt/0mb /dev/rmt/0mnb /dev/rmt/c1t0d0BESTb /dev/rmt/c1t0d0BESTnb
8 REPLIES 8
Alex Glennie
Honored Contributor

Re: HP-UX 10.20 Tape Permission Denied

could the tape be write protected at all ?

what about an alternate tape ?
Victor Fridyev
Honored Contributor

Re: HP-UX 10.20 Tape Permission Denied

Hi,

It seems to me that the tape is catched by some process.
the following steps may be done:
1. ps -ef |grep 0m or
lsof /dev/rmt/0m or lsof /dev/rmt/0mn
2. Reboot the computer
3. Shutdown the computer, switch it off and switch it on.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Jose Mosquera
Honored Contributor

Re: HP-UX 10.20 Tape Permission Denied

Hi,

Pls check device file privilegies, must be like to:
crw-rw-rw- 2 bin bin 205 0x040040 Apr 2 14:22 0mn

Try rebuilding the device file using "insf" command. To detailed info "man insf"

Rgds
Bruno Ganino
Honored Contributor

Re: HP-UX 10.20 Tape Permission Denied

Hello,
check the tape & make sure it's not set to write-protect & try another tape.
Bruno
Torino (Turin) +2H
Bharat Katkar
Honored Contributor

Re: HP-UX 10.20 Tape Permission Denied

Hi,
Check the permission of the /dev/rmt/0m.

# cd /dev/rmt
# ls -al | grep 0

They should be crw-rw-rw-

Regards,
You need to know a lot to actually know how little you know
Suresh Sandasani
Occasional Contributor

Re: HP-UX 10.20 Tape Permission Denied

Thank you all,

Yes the tape was write-protected.

Bruno Ganino
Honored Contributor

Re: HP-UX 10.20 Tape Permission Denied

For assign points read here:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28

Bruno
Torino (Turin) +2H
Bharat Katkar
Honored Contributor

Re: HP-UX 10.20 Tape Permission Denied