Restrict the amount of space a folder can use





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I have a directory I have given write access to everyone and shared it for the LAN (for easy distribution of files within my sharehouse). I want to be able to remove any chance that my drive will fill up unexpectedly (by people copying copious amounts of data).

Is there some security setting I could set on it that will reject any writes if the folder has reached a certain size?



Another idea I thought of would be to make a new partition on the disk, and then share the resultant drive, which would have a fixed size. But that's way too inflexible (waht if I wanted to increase the cap?) and too much hassle (my physical drive is currently fully utilised as a single partition).



Going on from that idea, though, is there a way I can create a virtual drive, and have that map to a directory? Because I'm guessing I could force the size constraint on the virtual volume and share/only write to that.










share|improve this question

























  • See this SO Question stackoverflow.com/questions/532775/…

    – Preet Sangha
    Dec 21 '13 at 4:10











  • thanks for the response. If you could [in an answer] adequately explain how I could use quotas for my above scenario I would much appreciate it

    – Hashbrown
    Dec 21 '13 at 4:16


















1















I have a directory I have given write access to everyone and shared it for the LAN (for easy distribution of files within my sharehouse). I want to be able to remove any chance that my drive will fill up unexpectedly (by people copying copious amounts of data).

Is there some security setting I could set on it that will reject any writes if the folder has reached a certain size?



Another idea I thought of would be to make a new partition on the disk, and then share the resultant drive, which would have a fixed size. But that's way too inflexible (waht if I wanted to increase the cap?) and too much hassle (my physical drive is currently fully utilised as a single partition).



Going on from that idea, though, is there a way I can create a virtual drive, and have that map to a directory? Because I'm guessing I could force the size constraint on the virtual volume and share/only write to that.










share|improve this question

























  • See this SO Question stackoverflow.com/questions/532775/…

    – Preet Sangha
    Dec 21 '13 at 4:10











  • thanks for the response. If you could [in an answer] adequately explain how I could use quotas for my above scenario I would much appreciate it

    – Hashbrown
    Dec 21 '13 at 4:16














1












1








1








I have a directory I have given write access to everyone and shared it for the LAN (for easy distribution of files within my sharehouse). I want to be able to remove any chance that my drive will fill up unexpectedly (by people copying copious amounts of data).

Is there some security setting I could set on it that will reject any writes if the folder has reached a certain size?



Another idea I thought of would be to make a new partition on the disk, and then share the resultant drive, which would have a fixed size. But that's way too inflexible (waht if I wanted to increase the cap?) and too much hassle (my physical drive is currently fully utilised as a single partition).



Going on from that idea, though, is there a way I can create a virtual drive, and have that map to a directory? Because I'm guessing I could force the size constraint on the virtual volume and share/only write to that.










share|improve this question
















I have a directory I have given write access to everyone and shared it for the LAN (for easy distribution of files within my sharehouse). I want to be able to remove any chance that my drive will fill up unexpectedly (by people copying copious amounts of data).

Is there some security setting I could set on it that will reject any writes if the folder has reached a certain size?



Another idea I thought of would be to make a new partition on the disk, and then share the resultant drive, which would have a fixed size. But that's way too inflexible (waht if I wanted to increase the cap?) and too much hassle (my physical drive is currently fully utilised as a single partition).



Going on from that idea, though, is there a way I can create a virtual drive, and have that map to a directory? Because I'm guessing I could force the size constraint on the virtual volume and share/only write to that.







windows-7 network-shares file-management restrictions virtual-disk






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 21 '13 at 4:04







Hashbrown

















asked Dec 21 '13 at 2:24









HashbrownHashbrown

1,18922037




1,18922037













  • See this SO Question stackoverflow.com/questions/532775/…

    – Preet Sangha
    Dec 21 '13 at 4:10











  • thanks for the response. If you could [in an answer] adequately explain how I could use quotas for my above scenario I would much appreciate it

    – Hashbrown
    Dec 21 '13 at 4:16



















  • See this SO Question stackoverflow.com/questions/532775/…

    – Preet Sangha
    Dec 21 '13 at 4:10











  • thanks for the response. If you could [in an answer] adequately explain how I could use quotas for my above scenario I would much appreciate it

    – Hashbrown
    Dec 21 '13 at 4:16

















See this SO Question stackoverflow.com/questions/532775/…

– Preet Sangha
Dec 21 '13 at 4:10





See this SO Question stackoverflow.com/questions/532775/…

– Preet Sangha
Dec 21 '13 at 4:10













thanks for the response. If you could [in an answer] adequately explain how I could use quotas for my above scenario I would much appreciate it

– Hashbrown
Dec 21 '13 at 4:16





thanks for the response. If you could [in an answer] adequately explain how I could use quotas for my above scenario I would much appreciate it

– Hashbrown
Dec 21 '13 at 4:16










2 Answers
2






active

oldest

votes


















0














Using the notions in my answer you can use this tutorial I later found to set up a Virtual Hard Disk. It explains how you can create, initialise and format a VHD from the Computer Management tool.



Unfortunately the VHD is stored as a file, meaning the disk actually has it's own file format and structure. So you can't access the files without going through the mounted disk. It is not a simple high-level map to a real directory on a host disk (which I'm sure there would be software out there for, and would be ideal).



This solution works natively without third party software and is not as inflexible as creating a real partition on another drive.






share|improve this answer































    0














    One way of doing so is to go to the 'properties' of the volume and configure 'Quota management.



    -> my computer
    -> local disk (c:) or whatever volume you are using for the share
    -> Right-Click Properties
    -> quota
    -> quota management






    share|improve this answer
























    • How would this work in my case where the user is everyone? I don't want to restrict this user class only to cause issues when I run things to write to other directories in that drive which may utilise this user.

      – Hashbrown
      Dec 21 '13 at 4:52












    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f691420%2frestrict-the-amount-of-space-a-folder-can-use%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Using the notions in my answer you can use this tutorial I later found to set up a Virtual Hard Disk. It explains how you can create, initialise and format a VHD from the Computer Management tool.



    Unfortunately the VHD is stored as a file, meaning the disk actually has it's own file format and structure. So you can't access the files without going through the mounted disk. It is not a simple high-level map to a real directory on a host disk (which I'm sure there would be software out there for, and would be ideal).



    This solution works natively without third party software and is not as inflexible as creating a real partition on another drive.






    share|improve this answer




























      0














      Using the notions in my answer you can use this tutorial I later found to set up a Virtual Hard Disk. It explains how you can create, initialise and format a VHD from the Computer Management tool.



      Unfortunately the VHD is stored as a file, meaning the disk actually has it's own file format and structure. So you can't access the files without going through the mounted disk. It is not a simple high-level map to a real directory on a host disk (which I'm sure there would be software out there for, and would be ideal).



      This solution works natively without third party software and is not as inflexible as creating a real partition on another drive.






      share|improve this answer


























        0












        0








        0







        Using the notions in my answer you can use this tutorial I later found to set up a Virtual Hard Disk. It explains how you can create, initialise and format a VHD from the Computer Management tool.



        Unfortunately the VHD is stored as a file, meaning the disk actually has it's own file format and structure. So you can't access the files without going through the mounted disk. It is not a simple high-level map to a real directory on a host disk (which I'm sure there would be software out there for, and would be ideal).



        This solution works natively without third party software and is not as inflexible as creating a real partition on another drive.






        share|improve this answer













        Using the notions in my answer you can use this tutorial I later found to set up a Virtual Hard Disk. It explains how you can create, initialise and format a VHD from the Computer Management tool.



        Unfortunately the VHD is stored as a file, meaning the disk actually has it's own file format and structure. So you can't access the files without going through the mounted disk. It is not a simple high-level map to a real directory on a host disk (which I'm sure there would be software out there for, and would be ideal).



        This solution works natively without third party software and is not as inflexible as creating a real partition on another drive.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 21 '13 at 4:28









        HashbrownHashbrown

        1,18922037




        1,18922037

























            0














            One way of doing so is to go to the 'properties' of the volume and configure 'Quota management.



            -> my computer
            -> local disk (c:) or whatever volume you are using for the share
            -> Right-Click Properties
            -> quota
            -> quota management






            share|improve this answer
























            • How would this work in my case where the user is everyone? I don't want to restrict this user class only to cause issues when I run things to write to other directories in that drive which may utilise this user.

              – Hashbrown
              Dec 21 '13 at 4:52
















            0














            One way of doing so is to go to the 'properties' of the volume and configure 'Quota management.



            -> my computer
            -> local disk (c:) or whatever volume you are using for the share
            -> Right-Click Properties
            -> quota
            -> quota management






            share|improve this answer
























            • How would this work in my case where the user is everyone? I don't want to restrict this user class only to cause issues when I run things to write to other directories in that drive which may utilise this user.

              – Hashbrown
              Dec 21 '13 at 4:52














            0












            0








            0







            One way of doing so is to go to the 'properties' of the volume and configure 'Quota management.



            -> my computer
            -> local disk (c:) or whatever volume you are using for the share
            -> Right-Click Properties
            -> quota
            -> quota management






            share|improve this answer













            One way of doing so is to go to the 'properties' of the volume and configure 'Quota management.



            -> my computer
            -> local disk (c:) or whatever volume you are using for the share
            -> Right-Click Properties
            -> quota
            -> quota management







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 21 '13 at 4:34









            taahir_tx10taahir_tx10

            1




            1













            • How would this work in my case where the user is everyone? I don't want to restrict this user class only to cause issues when I run things to write to other directories in that drive which may utilise this user.

              – Hashbrown
              Dec 21 '13 at 4:52



















            • How would this work in my case where the user is everyone? I don't want to restrict this user class only to cause issues when I run things to write to other directories in that drive which may utilise this user.

              – Hashbrown
              Dec 21 '13 at 4:52

















            How would this work in my case where the user is everyone? I don't want to restrict this user class only to cause issues when I run things to write to other directories in that drive which may utilise this user.

            – Hashbrown
            Dec 21 '13 at 4:52





            How would this work in my case where the user is everyone? I don't want to restrict this user class only to cause issues when I run things to write to other directories in that drive which may utilise this user.

            – Hashbrown
            Dec 21 '13 at 4:52


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f691420%2frestrict-the-amount-of-space-a-folder-can-use%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Plaza Victoria

            Puebla de Zaragoza

            Musa