Can't delete pagefile

G

Guest

Hello,

I am trying to delete pagefile.sys from my XP installation on c:\, having
moved the pagefile to a different partition and having set 'no paging file'
on drive c:\ and rebooted.
In a CMD window:

C:\>dir /a:s
Volume in drive C is XP Pro I
Volume Serial Number is 9C84-B0D0

Directory of C:\

22/05/2007 13:31 417 boot.ini
22/05/2007 19:47 1,341,706,240 hiberfil.sys
16/05/2007 12:34 0 IO.SYS
16/05/2007 12:34 0 MSDOS.SYS
04/08/2004 13:00 47,564 NTDETECT.COM
04/08/2004 13:00 250,032 ntldr
22/05/2007 17:32 2,013,265,920 pagefile.sys
22/05/2007 15:49 <DIR> RECYCLER
16/05/2007 12:38 <DIR> System Volume Information
7 File(s) 3,355,270,173 bytes
2 Dir(s) 1,353,760,768 bytes free

C:\>del pagefile.sys
Could Not Find C:\pagefile.sys

C:\>

Please can someone tell me what I'm not doing right in trying to delete ?

thankyou.
 
T

Tom Porterfield

Mani said:
Hello,

I am trying to delete pagefile.sys from my XP installation on c:\, having
moved the pagefile to a different partition and having set 'no paging file'
on drive c:\ and rebooted.
In a CMD window:

C:\>dir /a:s
Volume in drive C is XP Pro I
Volume Serial Number is 9C84-B0D0

Directory of C:\

22/05/2007 13:31 417 boot.ini
22/05/2007 19:47 1,341,706,240 hiberfil.sys
16/05/2007 12:34 0 IO.SYS
16/05/2007 12:34 0 MSDOS.SYS
04/08/2004 13:00 47,564 NTDETECT.COM
04/08/2004 13:00 250,032 ntldr
22/05/2007 17:32 2,013,265,920 pagefile.sys
22/05/2007 15:49 <DIR> RECYCLER
16/05/2007 12:38 <DIR> System Volume Information
7 File(s) 3,355,270,173 bytes
2 Dir(s) 1,353,760,768 bytes free

C:\>del pagefile.sys
Could Not Find C:\pagefile.sys

C:\>

Please can someone tell me what I'm not doing right in trying to delete ?

attrib -s -h pagefile.sys
del pagefile.sys
 
R

Rock

Hello,

I am trying to delete pagefile.sys from my XP installation on c:\, having
moved the pagefile to a different partition and having set 'no paging
file'
on drive c:\ and rebooted.
In a CMD window:

C:\>dir /a:s
Volume in drive C is XP Pro I
Volume Serial Number is 9C84-B0D0

Directory of C:\

22/05/2007 13:31 417 boot.ini
22/05/2007 19:47 1,341,706,240 hiberfil.sys
16/05/2007 12:34 0 IO.SYS
16/05/2007 12:34 0 MSDOS.SYS
04/08/2004 13:00 47,564 NTDETECT.COM
04/08/2004 13:00 250,032 ntldr
22/05/2007 17:32 2,013,265,920 pagefile.sys
22/05/2007 15:49 <DIR> RECYCLER
16/05/2007 12:38 <DIR> System Volume Information
7 File(s) 3,355,270,173 bytes
2 Dir(s) 1,353,760,768 bytes free

C:\>del pagefile.sys
Could Not Find C:\pagefile.sys

C:\>

Please can someone tell me what I'm not doing right in trying to delete ?

You should keep at least a small pagefile on the boot/system volume,
otherwise XP might create a large one. See this link about Virtual Memory
in XP and setting the page file by the late Alex Nichol, MVP.

http://aumha.org/win5/a/xpvm.htm
 

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