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

Posted on 2003-02-27
Medium Priority
Last Modified: 2013-12-27
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.

Question by:ramble
  • 2
  • 2

Author Comment

ID: 8037230
Well...I was able to successfully execute the commands that I posted...I simply used a different tape.  Which leads me to a new set of questions:

Can someone give me some basic commands, such as:

erasing a tape or formatting a tape.

I still would like to know how to find out what /dev/ a device is associate with.  -Thanks

Accepted Solution

killerwhack earned 400 total points
ID: 8037353
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.


Expert Comment

ID: 8037368
setenv TAPE /dev/rmt/0

mt erase           erase the tape
mt rewind          rewind the tape
mt fsf 1           forward one file
mt offline         eject tape

Author Comment

ID: 10893461

Just Ignore the last comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question