Scandisk at each startup ???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

What is the way of forcing a scandisk at each system startup ?

regards
Serge
 
Hello

Try this...

Create a file, C:\Y.TXT that contains: Y
Create a file C:\CHKBOOT.BAT that contains:

chkdsk C: /F <c:\y.txt or chkdsk C: /F /R <c:\y.txt
exit

If you have a D drive, just add another line, etc..

If you always logon to the server, just put C:\CHKBOOT.BAT in your StartUp
group or execute it in a batch file during system boot.


Cheers Marcel
 
Thanks for your reply

Still one question, where do I place that file to run at each boot process. ?
I need to execute that scan in a similar way it does when it founds a
trouble on disk automatically, it means at the early boot sequence.

I am runing Windows 2000 professioannal.
At first I was trhinking we can configure startup paramter as command line
for Boot.ini like /SCAN or something else.

But in my case I do not have any boot.ini as I have only one operating
system runing.

Is there way to run directly this scan from a boot paramatert fro the
loader instead of batch file ?
 
Hy,
as far as i know, there is no /scan option for boot.ini .

But, if you are running Professional, you will logon eachtime after the
boot! This is not always done on server computers...

You just copy the chkboot.bat and y.txt into winntfolder and create a
chkboot-shortcut in your autostart! Whenever you logon, you will execute
automatically the batch in the back. Next reboot will scan! by the way. The
Y-file is needed for the Yes answer! juhuu

Cheers Marce

l
 
You do have a boot.ini file...it's hidden.

You can't call for a chkdsk too early in the startup process since issuing the
chkdsk command on a fixed disk requires you be a member of the Administrators
group...which requires a login.
 
Yes I know but how windows then is doing when it says that check disk cannot
be execute now and ask you if you want to schedule it at next startup ? If
you answer yes, then before any login and independant to any user level, the
scan strart automatically from the initial boot process and this is what I
would like to get.

IN fact the idea is that as an administrator, I set the system in a way that
it will execute the scan every 2 days or 4 days. Then whatever the suer level
is the boot sequence will start the scan....

I do this becasue our customer do not necessarly have administrator
priviledege and maintenance personne do not regulary run a check disk or
defrag operation, so in that way I will force it in a reasonable time interval

Is there a way to do that ?

Serge
 
HI adrei,

I am runin Windows 2000 professional not server ...
any other idea?
 
SysTray said:
Hello

Try this...

Create a file, C:\Y.TXT that contains: Y
Create a file C:\CHKBOOT.BAT that contains:

chkdsk C: /F <c:\y.txt or chkdsk C: /F /R <c:\y.txt
exit

If you have a D drive, just add another line, etc..

If you always logon to the server, just put C:\CHKBOOT.BAT in your StartUp
group or execute it in a batch file during system boot.


Cheers Marcel

No, no, no. If he wants to do a chkdsk on his active (boot) partition at
startup, he'll need to set it up just prior to shutdown. If your batch file
is placed in the startup folder it will schedule chkdsk for the NEXT reboot.
A batch file such as yours in conjunction with shutdown.exe or
psshutdown.exe used to shut down the machine would work. Ask Pegasus - he
does this stuff in his sleep.
 

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

Back
Top