Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

eject removeable medias

1 view
Skip to first unread message

Rhudi

unread,
May 28, 1996, 3:00:00 AM5/28/96
to

for tape drives that support it, I use 'mt -f /dev/st0 offline'

----------
From: Thomas Bange (Kurs)[SMTP:hm...@plato.uni-paderborn.de]
Sent: Tuesday, May 28, 1996 9:26 AM
To: linux...@vger.rutgers.edu
Subject: eject removeable medias

Hi,

I've a question about the SCSI-Driver for Linux:

Is it possible to eject removeable medias like Magneto-Optical Discs or Tapes
with a SCSI-Command ??
I have not found any other EJECT-Command than the CD-ROM-EJECT Command.


Rhudi

unread,
May 28, 1996, 3:00:00 AM5/28/96
to

um, I didn't start this question. But, I'm more than happy to forward your answer to the list.

----------
From: POE[SMTP:p...@glo.be]
Sent: Tuesday, May 28, 1996 20:38 PM
To: 'Rhudi'
Subject: RE: eject removeable medias

YES!
Look in the source.
UNMOUNT-MOUNT procedures and the SCSI FAQ.

----------
From: Rhudi[SMTP:rh...@ioa.com]
Sent: dinsdag 28 mei 1996 17:11
To: 'Thomas Bange (Kurs)'; linux...@vger.rutgers.edu
Subject: RE: eject removeable medias

Michael Weller

unread,
May 29, 1996, 3:00:00 AM5/29/96
to

On Tue, 28 May 1996, Rhudi wrote:

> for tape drives that support it, I use 'mt -f /dev/st0 offline'

[...]


> From: Thomas Bange (Kurs)[SMTP:hm...@plato.uni-paderborn.de]

[...]


> I've a question about the SCSI-Driver for Linux:
>
> Is it possible to eject removeable medias like Magneto-Optical Discs or Tapes
> with a SCSI-Command ??
>
> I have not found any other EJECT-Command than the CD-ROM-EJECT Command.

Actually there is no need to. There is a well standardized SCSI eject
command to do that. You can easily pass it through the generic scsi
device interface and through all other scsi devices of linux.

There are tools like eject or load-unload on a ftp server close to you that
perform this operation. These use the generic scsi interface for reasons
I don't fully know (I know from my patches to scsiinfo that it is
perfectly possible to send any scsi command through a scsi disk, tape or
cd device). A reason could be that the kernel will not allow you to open the
device of an ejected mod or cdrom which makes issuing a load command
impossible.

I use (un)load in tiny mount/umount cd and mod scripts which makes handling
them easier (well.. not really, but it is nice).

Michael.

(eow...@exp-math.uni-essen.de or eow...@pollux.exp-math.uni-essen.de
Please do not use my vm or de0hrz1a accounts anymore. In case of real
problems reaching me try mat...@aixrs1.hrz.uni-essen.de instead.)

0 new messages