Link to home
Start Free TrialLog in
Avatar of oinos
oinos

asked on

WinXP: Eject 4mm dat Tape after ntbackup

I tried with   rsm eject /pf"..." /astart
but it doesn't work.
Also modify  HKEY_CURREN_USER\Software\Microsoft\Ntbackup\UserInterfaceat  EjectTapeFlag --> 1   Same story!

Anybody can help me???

Tanks!
Avatar of CrazyOne
CrazyOne
Flag of United States of America image

Try this and see if this corrects the problem

Start > Run gpedit.msc

Local Computer Policy > Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options.

Right-click Allowed to eject removable......... and press Security. Select:
Administrators - Only administrators can eject removable media.
Administrators and Power Users - Administrators and Power users can eject removable media.
Administrators and Interactive Users - Administrators and Interactive (Standard users) can eject removable media.
This is from the Windows Help about the command lines
Eject command
The media to be ejected can be specified by either the physical-media ID (PMID) or the physical media name.

The syntax of the eject command is as follows:

rsm eject /p[g|f]physical_media_id
[/oeject_operation_id]
[/a[start|stop|queue]]
[/b]
where:

physical_media_id specifies the physical media to eject. Either the friendly name or the GUID can be specified.

eject_operation_id specifies the GUID for the particular eject operation. The optional /o switch can be used in conjunction with the /a switch and the stop parameter to terminate a particular eject operation. This can also be used in conjunction with the /a switch and the start parameter to display the GUID of the particular eject operation.

The /a switch is optional, with the default parameter being start. One of the following optional parameters may also be used with the /a switch:

Start starts the eject operation immediately. The media is ejected until a timeout occurs, or unless another eject command is issued with the /a switch and the stop parameter. Such eject commands must also specify the eject operation GUID using the /o switch. The timeout parameter is specified in the library object (for all eject operations) for the library. To set this timeout parameter, you must use the Removable Storage API. Can also be used in conjunction with the /o switch to display the GUID of a particular eject operation.

Stop terminates the eject operation prior to a timeout expiring. The particular eject operation can be determined using the GUID displayed when the start parameter is used with the /a switch and the /o switch.

Queue queues the media for later ejection. This can be used for libraries with multi-slot inject/eject (IE) ports.

The optional /b switch displays only the eject operation GUID for scripting purposes.
----------------------------------------
Ejectatapi command
Ejects media from an ATAPI changer by specifying the changer number. You should manually stop the Ntmssvc service before issuing this command.

The syntax of the ejectatapi command is as follows:

rsm ejectatapi /natapi_changer_number
where:

atapi_changer_number is the numeral found at the end of the string for the device name of the changer. For example, \\.\CdChanger0 has 0 as the ATAPI changer number.
Also see if the permissions are set

Start > Run compmgmt.msc

Right Click on Computer Management (Local) > Storage > Removable Storage and select "Properties" and then click on the "Security Tab".
Avatar of oinos
oinos

ASKER

Sorry CrazyOne but all settings seems ok... perhaps I wrong something in the parameter "physical_media_id" of the "rsm eject /p.." command. I see my tape device as \\.\Tape0 but I also tried the media name (tape label): in both case no success!
Hmmm not sure what to tell you other then something I read looking into this mentioned that the media drive had to support this method of ejecting. In other words the drive has to have some coding in its electronics that understands the command that is being sent. Not sure if that is relevant in your case or not.
Avatar of SysExpert
c:\winnt\system32\ntbackup.exe eject

also
From: AvonWyss   Date: 01/31/2002 12:37PM PST Eject tape eject
               Maybe you've already read this KB article, but it has a sample batch file for automated backup which     also uses "RSM eject":
               http://support.microsoft.com/default.aspx?scid=kb;en-us;Q239892

I hope this helps !
Have you been helped here or is more needed?  Since time has passed since your last comment, an update is appreciated (in case things have changed).  If you've been helped, convert the expert's comment to the Accepted Answer to grade and close it.  If more than one helped you, ask for a point split by posting a zero point question in the Community Support topic area, include this link and details with your request (expert name and point values to each).

This is the Community Support link:
https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

Thanks,
":0)
Asta
Hopefully you've already been helped, and this question remains open today for your next action.  If you've been helped, please convert that expert's comment to the answer to grade and close this.  If more than one helped you resolve this, request a Point Split via a zero point question in the Community Support topic area with details and this question link (URL).  

This may interest you, if not already done, follows.

Windows XP Service Patch 1 (CRITICAL UPDATE) was available using WindowsUpdate recently (huge), more information and links about there here, if you're not already aware.

CD Options here:
http://www.microsoft.com/windowsxp/pro/downloads/servicepacks/sp1/ordercd.asp
Microsoft Windows XP Service Pack 1 Installation and Deployment Guide
http://www.microsoft.com/WindowsXP/pro/downloads/servicepacks/sp1/spdeploy.asp 

Windows XP Service Pack 1 information
http://www.microsoft.com/WindowsXP/pro/downloads/servicepacks/sp1/default.asp
 
Internet Explorer 6 Service Patch 1 (CRITICAL UPDATE) was available from WindowsUpdate yesterday and highly recommended to fix significant problems.  You may wish to check WindowsUpdate directly.  Some more insights about these updates here:

http://www.microsoft.com/windows/ie/default.asp 
http://www.microsoft.com/windows/ie/evaluation/ie6sp1.asp 
The following link shows you the list of fixes included in IE 6 SP1
http://support.microsoft.com/common/canned.aspx?R=d&H=List%20of%20Fixes%20in%20Microsoft%20Internet%20Explorer%206%20SP1&LL=support&Sz=kbIE600sp1fix&Fr=&DU=&SD=GN&LN=EN-US&CND=1&VR=&CAT=&VRL=&SG=&MaxResults=150

If more is needed, please let us know.
Good luck,
":0) Asta
Oinos,
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: PAQ/No Refund

Please leave any comments here within 7 days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thanks,

jonnyz0109
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post a request in Community support (with a link to this page) to refund your points. https://www.experts-exchange.com/Community_Support/
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial