/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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

743 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