Question : /dev/rmt/0?  mt rew? What is my tape device?

I have a DDS-3 tape device hooked up on my Sun server (Enterprise 450).  I thought the device was installed as: /dev/rmt/0 but I ran a command:

mt -f /dev/rmt/0 rew

To see if it would rewind the tape, and nothing seems to happen.  No lights come on...and no error message...I just get back to the prompt.

I ran:

# tar tvf /dev/rmt/0
tar: tape read error

Again...no activity on the tape drive trying to list the contents.

I also ran:

# ufsrestore i /dev/rmt/0
Media read error: I/O error

Trying to get into interactive mode...

Anway...how do I determine the device is installed  as /dev/rmt/0?  Any troubleshooting help would be appreciated.

Answer : /dev/rmt/0?  mt rew? What is my tape device?

If the tape device is connected to the scsi bus,
SCSI id 4 is equal to /dev/rmt/0 and scsi ID 5 is /dev/rmt/1

Usually the minor device number indicates which device you are writing to along with some other bits to specify options such as density and error checking.

Random Solutions  
 
programming4us programming4us