Hard drive becomes inaccessible after copying a lot of files to it

G

Guest

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
 
P

Pegasus \(MVP\)

JordanThompson said:
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

As a first step I would run the backup process with the Adaptec
IDE controller.
 
G

Guest

As a first step I would run the backup process with the Adaptec
IDE controller.

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.
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top