File permission error while trying to run NTBACKUP

  • Thread starter Thread starter NetTech
  • Start date Start date
N

NetTech

Whenever I try to run an NTBACKUP job, it backs up C: and D: drives fine,
however it always fails on S: drive with the following error - "S: is not a
valid drive or you do not have access to it"

When I browse My Computer, S: IS a valid drive, and I DO have access to it.
It has about 6-7 folders in it and I can open, browse and write to each
folder in it. I also verified that I have full permissions to the foler.

I've pasted below the NTBACKUP LOG and also the EVENT LOG

Thanks for any help,


-----------------------------NTBACKUP LOG------------------------------
Backup Status
Operation: Backup
Active backup destination: File
Media name: "##########.bkf created 7/6/2007 at 1:46 PM"

Volume shadow copy creation: Attempt 1.
Backup (via shadow copy) of "S: SQL Data and Web"
Backup set #1 on media #1
Backup description: "Set created Fri 07/06/2007 at 13:46:17.47"
Media name: "##########.bkf created 7/6/2007 at 1:46 PM"

Backup Type: Normal

Backup started on 7/6/2007 at 2:03 PM.

Error: The device reported an error on a request to write data to media.
Error reported: Unknown error.
There may be a hardware or media problem.
Please check the system event log for relevant failures.
The operation was ended.
Backup completed on 7/6/2007 at 2:11 PM.
Directories: 1
Files: 2
Bytes: 93,351,998
Time: 7 minutes and 35 seconds

Error: S: is not a valid drive, or you do not have access.


----------------------

The operation did not successfully complete.

----------------------
-----------------------------NTBACKUP LOG------------------------------

--------------------------------EVENT LOG--------------------------------
Event Type: Error
Event Source: NTBackup
Event Category: None
Event ID: 8001
Date: 7/6/2007
Time: 2:11:24 PM
User: N/A
Computer: VLA
Description:
End Backup of 'S:' 'Warnings or errors were encountered.'

Verify: On
Mode: Replace
Type: Normal

Consult the backup report for more details.


For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
--------------------------------EVENT LOG--------------------------------
 
Although you don't say so, I suspect that you're running ntbackup
as a scheduled job. Scheduled jobs run in their own environment
and just because you have drive S: in your own session does not
mean that drive S: exists for the scheduled task.

You should use UNC coding for scheduled jobs instead of drive letters.

"NetTech" <NetTech@discussions.microsoft.com> wrote in message
news:B302CC29-3C61-4450-A7AD-E539279414FD@microsoft.com...
> Whenever I try to run an NTBACKUP job, it backs up C: and D: drives fine,
> however it always fails on S: drive with the following error - "S: is not
> a
> valid drive or you do not have access to it"
>
> When I browse My Computer, S: IS a valid drive, and I DO have access to
> it.
> It has about 6-7 folders in it and I can open, browse and write to each
> folder in it. I also verified that I have full permissions to the foler.
>
> I've pasted below the NTBACKUP LOG and also the EVENT LOG
>
> Thanks for any help,
>
>
 
Pegasus, thank you for the quick reply. The job was running as a scheduled
job, but during my troubleshooting I ran it as a manual job and got the same
results. The S: drive is actaully a partition and not a share, therefore I'm
not able to use a UNC path.

"Pegasus (MVP)" wrote:

> Although you don't say so, I suspect that you're running ntbackup
> as a scheduled job. Scheduled jobs run in their own environment
> and just because you have drive S: in your own session does not
> mean that drive S: exists for the scheduled task.
>
> You should use UNC coding for scheduled jobs instead of drive letters.
>
> "NetTech" <NetTech@discussions.microsoft.com> wrote in message
> news:B302CC29-3C61-4450-A7AD-E539279414FD@microsoft.com...
> > Whenever I try to run an NTBACKUP job, it backs up C: and D: drives fine,
> > however it always fails on S: drive with the following error - "S: is not
> > a
> > valid drive or you do not have access to it"
> >
> > When I browse My Computer, S: IS a valid drive, and I DO have access to
> > it.
> > It has about 6-7 folders in it and I can open, browse and write to each
> > folder in it. I also verified that I have full permissions to the foler.
> >
> > I've pasted below the NTBACKUP LOG and also the EVENT LOG
> >
> > Thanks for any help,
> >
> >

>
>
>
 
When running this backup job (either manually or under
the Task Scheduler), embed it in this batch file like so:

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
dir S:\ 1>>c:\test.log 2>>&1
dir C:\ > c:\test.txt
copy /y c:\test.txt S:\ 1>>c:\test.log 2>>&1
ntbackup /.. /.. /..
echo %date% %time% End of task >> c:\test.log

Now run this batch file, then examine c:\test.log in
detail. I suspect that everything will become clear.


"NetTech" <NetTech@discussions.microsoft.com> wrote in message
news:F0BA13F6-6F0B-4537-95E6-46954C45F62B@microsoft.com...
> Pegasus, thank you for the quick reply. The job was running as a
> scheduled
> job, but during my troubleshooting I ran it as a manual job and got the
> same
> results. The S: drive is actaully a partition and not a share, therefore
> I'm
> not able to use a UNC path.
>
> "Pegasus (MVP)" wrote:
>
>> Although you don't say so, I suspect that you're running ntbackup
>> as a scheduled job. Scheduled jobs run in their own environment
>> and just because you have drive S: in your own session does not
>> mean that drive S: exists for the scheduled task.
>>
>> You should use UNC coding for scheduled jobs instead of drive letters.
>>
>> "NetTech" <NetTech@discussions.microsoft.com> wrote in message
>> news:B302CC29-3C61-4450-A7AD-E539279414FD@microsoft.com...
>> > Whenever I try to run an NTBACKUP job, it backs up C: and D: drives
>> > fine,
>> > however it always fails on S: drive with the following error - "S: is
>> > not
>> > a
>> > valid drive or you do not have access to it"
>> >
>> > When I browse My Computer, S: IS a valid drive, and I DO have access to
>> > it.
>> > It has about 6-7 folders in it and I can open, browse and write to each
>> > folder in it. I also verified that I have full permissions to the
>> > foler.
>> >
>> > I've pasted below the NTBACKUP LOG and also the EVENT LOG
>> >
>> > Thanks for any help,
>> >
>> >

>>
>>
>>
 
Back
Top