Sponsored Content
Full Discussion: /dev/rmt/0cn
Top Forums UNIX for Dummies Questions & Answers /dev/rmt/0cn Post 10076 by Perderabo on Wednesday 7th of November 2001 11:12:39 AM
Old 11-07-2001
Most tape drivers these days will ignore your request to set the drive to the wrong density when reading. Instead, they sense the tape's density and will silently change the density to whatever is correct. But if you work on an old 9-track tape drive you may find that the driver has no easy way to sense density and the tape will seem to be unreadable.

Many people will dump several filesystems on the same tape by specifying the no rewind bit. After the first dump, the tape is left positioned ready to write a second dump. If you wanted to restore a file from that second dump, you would first need to "mt fsf" to get there. You better specify the no rewind when you do. Then for the restore, you could use an auto-rewind special file. I almost always will use the no-rewind option. I can always do an explicit rewind when I want.
 

10 More Discussions You Might Find Interesting

1. Solaris

/dev/rmt empty

hi all , i have just installed solris 9 on a sun 280R ,and i have appleid the recommended patches . after the installation i have found that /dev/rmt/ directory is empty , i thought that was normal , so i attached my DDS4 external tape drive and treid : devfsadm -C devfsadm -v reboot --... (1 Reply)
Discussion started by: ppass
1 Replies

2. UNIX for Dummies Questions & Answers

"/dev/rmt/0: No such device or address" when using mt command

/dev/rmt/0: No such device or address I get this when I do a "mt -f /dev/rmt/0 rewind" This is on a Solaris 7 system. I tried devfsadm -c tape and drvconfig ; tape and both didn't work. Help please....... :confused: (4 Replies)
Discussion started by: shorty
4 Replies

3. AIX

dev/rmt 0.1 block size is 0; variable; must be 1024 fixed.

Hi. After the shutdown for SWIFT Alliance Server, tape backup process will be done. Unfortunately, I encountered this error message when I performed the database tape backup. The error was "/dev/rmt 0.1 block size is 0; variable; must be 1024 fixed. Consider reconfiguration through 'chdev'... (2 Replies)
Discussion started by: MariaLuisa
2 Replies

4. Solaris

Empty /dev/rmt

Hi Guys, I a newbie in Unix environment. I need a help to detect my external SCSI tape drive. I tried with command drvconfig;devlinks;tapes.. but when I go to /dev/rmt/, the directory is still empty. I also tried with add_drv -v st but I'm getting this message # add_drv -v st exit... (8 Replies)
Discussion started by: akuslive
8 Replies

5. AIX

How to prevent /dev/rmt* re-assignments

Hi all, Sometimes, when I reboot my AIX server, my tape drive /dev/rmt# assignments change. This creates some tedious TSM work prior to and after a reboot of the server. Is there a way to ensure that the /dev/rmt# assignments come up the same every time? Thanks (5 Replies)
Discussion started by: jwholey
5 Replies

6. Solaris

/dev/rmt is empty - Trying to make Tape Drive Functional

I have an HP Proliant DL380 with Intel Processors that I recently loaded Solaris 10 with latest patches on it. I'm trying to do a ufsdump to an HP DAT 40 tape drive via SCSI, but I can't get it to do anything because /dev/rmt is empty. I've tried the following with luck: touch /reconfigure,... (7 Replies)
Discussion started by: cvaughn
7 Replies

7. Hardware

/dev/rmt/0mn: write protected or reserved

# mt stat HP DDS-4 DAT (Sun) tape drive: sense key(0x0)= No Additional Sense residual= 0 retries= 0 file no= 0 block no= 0 mt -f /dev/rmt/0mn erase /dev/rmt/0mn: write protected or reserved. Getting error while ufsdump .... --- Dumping / to /dev/rmt/0mn --- DUMP: Date... (1 Reply)
Discussion started by: vickyingle5
1 Replies

8. Solaris

/dev/rmt/0mn: write protected or reserved

# mt stat HP DDS-4 DAT (Sun) tape drive: sense key(0x0)= No Additional Sense residual= 0 retries= 0 file no= 0 block no= 0 mt -f /dev/rmt/0mn erase /dev/rmt/0mn: write protected or reserved. Getting error while ufsdump .... --- Dumping / to /dev/rmt/0mn --- DUMP: Date... (5 Replies)
Discussion started by: vickyingle5
5 Replies

9. AIX

/dev/rmt devices are missing

Hello, I attached a tape drive to one of my partitions but i cannot find the device. I run the command lsdev|grep rmt but i dont get anything in return. When i run lsslot -c slot i can see the slot number and the device that belongs to the tape drive but i cannot find any rmt files in /dev.... (6 Replies)
Discussion started by: omonoiatis9
6 Replies

10. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies
MT(1L)																	    MT(1L)

NAME
mt - control magnetic tape drive operation SYNOPSIS
mt [-V] [-f device] [--file=device] [--rsh-command=command] [--version] operation [count] DESCRIPTION
This manual page documents the GNU version of mt. mt performs the given operation, which must be one of the tape operations listed below, on a tape drive. The default tape device to operate on is taken from the file /usr/include/sys/mtio.h when mt is compiled. It can be overridden by giving a device file name in the environment variable TAPE or by a command line option (see below), which also overrides the environment variable. The device must be either a character special file or a remote tape drive. To use a tape drive on another machine as the archive, use a filename that starts with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's `~/.rhosts' file). The available operations are listed below. Unique abbreviations are accepted. Not all operations are available on all systems, or work on all types of tape drives. Some operations optionally take a repeat count, which can be given after the operation name and defaults to 1. eof, weof Write count EOF marks at current position. fsf Forward space count files. The tape is positioned on the first block of the next file. bsf Backward space count files. The tape is positioned on the first block of the next file. fsr Forward space count records. bsr Backward space count records. bsfm Backward space count file marks. The tape is positioned on the beginning-of-the-tape side of the file mark. fsfm Forward space count file marks. The tape is positioned on the beginning-of-the-tape side of the file mark. asf Absolute space to file number count. Equivalent to rewind followed by fsf count. eom Space to the end of the recorded media on the tape (for appending files onto tapes). rewind Rewind the tape. offline, rewoffl Rewind the tape and, if applicable, unload the tape. status Print status information about the tape unit. retension Rewind the tape, then wind it to the end of the reel, then rewind it again. erase Erase the tape. fss (SCSI tapes) Forward space count setmarks. bss (SCSI tapes) Backward space count setmarks. wset (SCSI tapes) Write count setmarks at current position (only SCSI tape). eod, seod Space to end of valid data. Used on streamer tape drives to append data to the logical and of tape. setblk (SCSI tapes) Set the block size of the drive to count bytes per record. setdensity (SCSI tapes) Set the tape density code to count. The proper codes to use with each drive should be looked up from the drive docu- mentation. drvbuffer (SCSI tapes) Set the tape drive buffer code to number. The proper value for unbuffered operation is zero and "normal" buffered operation one. The meanings of other values can be found in the drive documentation or, in case of a SCSI-2 drive, from the SCSI-2 standard. stoptions (SCSI tapes) Set the driver options bits to count for the device. The bits can be set by oring the following values: 1 to enable write buffering, 2 to enable asynchronous writes, 4 to enable read ahead, 8 to enable debugging output (if it has been compiled to the driver). stwrthreshold (SCSI tapes) The write threshold for the tape device is set to count kilobytes. The value must be smaller than or equal to the driver buffer size. seek (SCSI tapes) Seek to the count block on the tape. This operation is available on some Tandberg and Wangtek streamers and some SCSI-2 tape drives. tell (SCSI tapes) Tell the current block on tape. This operation is available on some Tandberg and Wangtek streamers and some SCSI-2 tape drives. densities (SCSI tapes) Write explanation of some common density codes to standard output. datcompression (some SCSI-2 DAT tapes) Inquire or set the compression status (on/off). If the count is one the compression status is printed. If the count is zero, compression is disabled. Otherwise, compression is enabled. The command uses the SCSI ioctl to read and write the Data Compression Characteristics mode page(15). ONLY ROOT CAN USE THIS COMMAND. mt exits with a status of 0 if the operation succeeded, 1 if the operation or device name given was invalid, or 2 if the operation failed. OPTIONS -f, --file=device Use device as the file name of the tape drive to operate on. To use a tape drive on another machine, use a filename that starts with `HOSTNAME:'. The hostname can be preceded by a username and an `@' to access the remote tape drive as that user, if you have permission to do so (typically an entry in that user's `~/.rhosts' file). --rsh-command=command Notifies mt that it should use command to communicate with remote devices instead of /usr/bin/ssh or /usr/bin/rsh. -V, --version Print the version number of mt. MT(1L)
All times are GMT -4. The time now is 02:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy