Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Pagefile remains in drive after set to no paging file  (Read 107160 times)

0 Members and 1 Guest are viewing this topic.

Michael

    Topic Starter


    Adviser
  • Thanked: 1
    • Experience: Experienced
    • OS: Windows 7
    Pagefile remains in drive after set to no paging file
    « on: July 27, 2021, 08:00:50 AM »
    I set my pagefile to be System managed on E: drive, but there are still a 13.4 GB pagefile.sys on C: and another 7.96 GB pagefile.sys on E:.

    How can I get rid of the pagefile on C: drive to clear up space?

    Thanks.


    Allan

    • Moderator

    • Mastermind
    • Thanked: 1260
    • Experience: Guru
    • OS: Windows 10
    Re: Pagefile remains in drive after set to no paging file
    « Reply #1 on: July 27, 2021, 09:11:37 AM »
    Click on C: drive, put a tick in "No paging file", click on SET

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Pagefile remains in drive after set to no paging file
    « Reply #2 on: July 27, 2021, 05:00:24 PM »
    Also by that clip your settings are not what you think they are...
    " Anyone who goes to a psychiatrist should have his head examined. "

    Michael

      Topic Starter


      Adviser
    • Thanked: 1
      • Experience: Experienced
      • OS: Windows 7
      Re: Pagefile remains in drive after set to no paging file
      « Reply #3 on: July 27, 2021, 08:24:39 PM »
      Click on C: drive, put a tick in "No paging file", click on SET
      Did that. And just done again to confirm. Restarted. The pagefile in C still remains there.

      Michael

        Topic Starter


        Adviser
      • Thanked: 1
        • Experience: Experienced
        • OS: Windows 7
        Re: Pagefile remains in drive after set to no paging file
        « Reply #4 on: July 27, 2021, 08:29:05 PM »
        Also by that clip your settings are not what you think they are...
        Then what or how should it be? I've set "No paging file" for all other drives except E:.

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: Pagefile remains in drive after set to no paging file
        « Reply #5 on: July 27, 2021, 09:47:50 PM »
        From what I recall, Windows doesn't delete the pagefile.sys file(s) automatically. After you set the new paging file settings, you need to reboot (paging file changes do not take effect until you reboot!), then you have to delete it yourself.
        I was trying to dereference Null Pointers before it was cool.

        Michael

          Topic Starter


          Adviser
        • Thanked: 1
          • Experience: Experienced
          • OS: Windows 7
          Re: Pagefile remains in drive after set to no paging file
          « Reply #6 on: July 27, 2021, 09:56:53 PM »
          From what I recall, Windows doesn't delete the pagefile.sys file(s) automatically. After you set the new paging file settings, you need to reboot (paging file changes do not take effect until you reboot!), then you have to delete it yourself.
          I've tried to google this before posting the thread. From what I read, when "No paging file" is set, the page file created before should be gone after reboot. And when that doesn't happen, some said it's ok to delete it manually, some said no as it may mess thing up. So I'm not sure if it's actually safe to delete the one in C:.

          Allan

          • Moderator

          • Mastermind
          • Thanked: 1260
          • Experience: Guru
          • OS: Windows 10
          Re: Pagefile remains in drive after set to no paging file
          « Reply #7 on: July 28, 2021, 05:23:57 AM »
          There will always be a small pagefile on c: drive regardless of your settings, but it should not be that large if you have set it for "none". And yes, you can try to delete it yourself - it won't do any damage though you may not be able to do it. Again, if after a reboot it's small, leave it be.

          Michael

            Topic Starter


            Adviser
          • Thanked: 1
            • Experience: Experienced
            • OS: Windows 7
            Re: Pagefile remains in drive after set to no paging file
            « Reply #8 on: July 28, 2021, 07:28:59 AM »
            OK so I've deleted the page file in C and reboot. There is no new page file created in C, leaving the only page file in E.

            We'll see if all go well.

            Cheers.

            Allan

            • Moderator

            • Mastermind
            • Thanked: 1260
            • Experience: Guru
            • OS: Windows 10
            Re: Pagefile remains in drive after set to no paging file
            « Reply #9 on: July 28, 2021, 08:26:30 AM »
            There is likely a swapfile on c: (which, in my opinion, is nothing more than a small pagefile with a specific purpose). Regardless, it will be very small (it's required by the OS).