- Hard drive becomes inaccessible after copying a lot of files to it
- Posted by JordanThompson on January 22nd, 2006
Hi there,
I have two 120 GB drives. The first is used for the OS and data files, the
second is for backup. I have a batch file that copies all data files from
the first to the second every night.
I also have two 60 GB drives - one where I keep my work, the other for
backup of drive.
I have an Adaptec IDE controller that I have the extra drive (total of 5
drives including the CD-ROM) in.
After the batch file runs, the drive letter disappears from the explorer
window and I cannot access the second 120GB drive (it becomes inaccessible.)
I can always get to all of my other drives.
If I leave an explorer window open on the 120GB drive, after the batch file
runs, I can explore the drive and all of the files seem to be intact. If I
don't have one open on the drive and try to access it from the Computer
Management/Disk Manager, I get "x:\ is not accessible. Access is denied."
If I give a drive letter again and try to access it from either the explorer
or the manager, I get the same error.
I have tried formatting (quick and normal) as well as moving the drive
around on the IDE bus(es) both on the motherboard as well as on the Adaptec.
I have tried mounting the drive as a NTFS folder as well as a drive letter.
I formatted the drive with NTFS and default allocation unit size.
Here is the batch file I am running:
rem ###############################################
rem # MyDocuments
rem ###############################################
xcopy c:\server\SharedFiles x:\ /E /V /C /H /R /K /O /Y
rem ###############################################
rem # apache
rem ###############################################
mkdir x:\apache
xcopy c:\server\apache x:\apache /E /V /C /H /R /K /O /Y
rem ###############################################
rem # scripts
rem ###############################################
mkdir x:\scripts
xcopy c:\server\scripts x:\ /E /V /C /H /R /K /O /Y
rem ###############################################
rem # MySql
rem ###############################################
mkdir x:\sql
x:
cd x:\sql
rm movies.sql-bak
mv movies.sql movies.sql-bak
mysqldump -uroot -plxndr1t movies > movies.sql
rem ###############################################
rem # Music
rem ###############################################
xcopy m:\ y:\ /E /V /C /H /R /K /O /Y
rem ################################################## ##
rem # MyDocuments
rem ################################################## ##
xcopy c:\server\SharedFiles x:\ /E /V /C /H /R /K /O /Y
rem ################################################## ##
rem # apache
rem ################################################## ##
mkdir x:\apache
xcopy c:\server\apache x:\apache /E /V /C /H /R /K /O /Y
rem ################################################## ##
rem # scripts
rem ################################################## ##
xcopy c:\server\scripts x:\ /E /V /C /H /R /K /O /Y
rem ################################################## ##
rem # MySql
rem ################################################## ##
mkdir x:\sql
x:
cd x:\sql
- Posted by Pegasus \(MVP\) on January 22nd, 2006
"JordanThompson" <JordanThompson@discussions.microsoft.com> wrote in message
news:006B71F6-5F18-4A68-A31A-06C9463E9F46@microsoft.com...
As a first step I would run the backup process with the Adaptec
IDE controller.
- Posted by JordanThompson on January 22nd, 2006
As I tried to mention, I have run the batch file with the drive on the
adaptec controller as well as connected to the the motherboard with the same
results. I have even played with the drive being master and slave.
- Posted by JordanThompson on January 22nd, 2006
OK - possibly solved.
I tried a different allocation unit size, which forced me to reboot before
actually using the drive. This combination seems to allow my batch file to
run without dsconnecting/offending my hard drive. If I continue to have
trouble, I'll post in this thread again.
"JordanThompson" wrote: