Unable to write to disk but disk isn't full The Next CEO of Stack OverflowWrite to disk permissions randomly disabledDisk is full after runing gparted?Ubuntu 11.10 Oneiric Low Disk SpaceFull disk problem though it is notCan't write to diskCdrom is mounted, but where?Full disk encryption - separate home partitionUnable to mount external hard diskIs it possible to add some disk space to ubuntu installed drive?if then what is the way?how do i disable full disk encryption?Unable to fix - unmet dependencies and low file system root space

Is it possible to replace duplicates of a character with one character using tr

Bartok - Syncopation (1): Meaning of notes in between Grand Staff

Make solar eclipses exceedingly rare, but still have new moons

What happened in Rome, when the western empire "fell"?

Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?

Is it convenient to ask the journal's editor for two additional days to complete a review?

How I can get glyphs from a fraktur font and use them as identifiers?

Prepend last line of stdin to entire stdin

Running a General Election and the European Elections together

How to write a definition with variants?

What did we know about the Kessel run before the prequels?

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

How to prove a simple equation?

Is a distribution that is normal, but highly skewed considered Gaussian?

What connection does MS Office have to Netscape Navigator?

The exact meaning of 'Mom made me a sandwich'

Should I tutor a student who I know has cheated on their homework?

A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See

TikZ: How to reverse arrow direction without switching start/end point?

How to check if all elements of 1 list are in the *same quantity* and in any order, in the list2?

Is it professional to write unrelated content in an almost-empty email?

The past simple of "gaslight" – "gaslighted" or "gaslit"?

Would a completely good Muggle be able to use a wand?

Can we say or write : "No, it'sn't"?



Unable to write to disk but disk isn't full



The Next CEO of Stack OverflowWrite to disk permissions randomly disabledDisk is full after runing gparted?Ubuntu 11.10 Oneiric Low Disk SpaceFull disk problem though it is notCan't write to diskCdrom is mounted, but where?Full disk encryption - separate home partitionUnable to mount external hard diskIs it possible to add some disk space to ubuntu installed drive?if then what is the way?how do i disable full disk encryption?Unable to fix - unmet dependencies and low file system root space










5















I can't write to any file, even as root, or do any other operation that requires writing. Neither can any process that needs to write, so they're all failing. df says I've got plenty of room:



Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 30G 14G 15G 48% /
udev 984M 4.0K 984M 1% /dev
tmpfs 399M 668K 399M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 997M 0 997M 0% /run/shm


All of the results I find for "can't write to disk" are about legitimately full disks. I don't even know where to start here. The problem appeared out of nowhere this morning.



PHP's last log entry is "failed: No space left on device (28)". Vim says "Unable to open (file) for writing". Other applications give similar errors.



After deleting ~1gb just to be sure, the problem remains. I've also rebooted. Ubuntu 12.04










share|improve this question
















bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • what is the exact error message?

    – mchid
    Oct 25 '15 at 16:13











  • @mchid it depends on the application. PHP fails with "failed: No space left on device (28)". Trying to write a file with vim says "unable to open swap file, writing impossible", then "can't open file for writing".

    – felwithe
    Oct 25 '15 at 16:15











  • are you using btrfs or something?

    – mchid
    Oct 25 '15 at 16:17






  • 1





    Edit your question and add the output of sudo lsof -nP +L1

    – A.B.
    Oct 25 '15 at 16:32







  • 2





    You should write an answer. Give me a ping for an upvote.

    – A.B.
    Oct 25 '15 at 17:02















5















I can't write to any file, even as root, or do any other operation that requires writing. Neither can any process that needs to write, so they're all failing. df says I've got plenty of room:



Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 30G 14G 15G 48% /
udev 984M 4.0K 984M 1% /dev
tmpfs 399M 668K 399M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 997M 0 997M 0% /run/shm


All of the results I find for "can't write to disk" are about legitimately full disks. I don't even know where to start here. The problem appeared out of nowhere this morning.



PHP's last log entry is "failed: No space left on device (28)". Vim says "Unable to open (file) for writing". Other applications give similar errors.



After deleting ~1gb just to be sure, the problem remains. I've also rebooted. Ubuntu 12.04










share|improve this question
















bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • what is the exact error message?

    – mchid
    Oct 25 '15 at 16:13











  • @mchid it depends on the application. PHP fails with "failed: No space left on device (28)". Trying to write a file with vim says "unable to open swap file, writing impossible", then "can't open file for writing".

    – felwithe
    Oct 25 '15 at 16:15











  • are you using btrfs or something?

    – mchid
    Oct 25 '15 at 16:17






  • 1





    Edit your question and add the output of sudo lsof -nP +L1

    – A.B.
    Oct 25 '15 at 16:32







  • 2





    You should write an answer. Give me a ping for an upvote.

    – A.B.
    Oct 25 '15 at 17:02













5












5








5








I can't write to any file, even as root, or do any other operation that requires writing. Neither can any process that needs to write, so they're all failing. df says I've got plenty of room:



Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 30G 14G 15G 48% /
udev 984M 4.0K 984M 1% /dev
tmpfs 399M 668K 399M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 997M 0 997M 0% /run/shm


All of the results I find for "can't write to disk" are about legitimately full disks. I don't even know where to start here. The problem appeared out of nowhere this morning.



PHP's last log entry is "failed: No space left on device (28)". Vim says "Unable to open (file) for writing". Other applications give similar errors.



After deleting ~1gb just to be sure, the problem remains. I've also rebooted. Ubuntu 12.04










share|improve this question
















I can't write to any file, even as root, or do any other operation that requires writing. Neither can any process that needs to write, so they're all failing. df says I've got plenty of room:



Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 30G 14G 15G 48% /
udev 984M 4.0K 984M 1% /dev
tmpfs 399M 668K 399M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 997M 0 997M 0% /run/shm


All of the results I find for "can't write to disk" are about legitimately full disks. I don't even know where to start here. The problem appeared out of nowhere this morning.



PHP's last log entry is "failed: No space left on device (28)". Vim says "Unable to open (file) for writing". Other applications give similar errors.



After deleting ~1gb just to be sure, the problem remains. I've also rebooted. Ubuntu 12.04







filesystem files disk






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 25 '15 at 17:25









Tim

20.1k1586141




20.1k1586141










asked Oct 25 '15 at 16:01









felwithefelwithe

174514




174514





bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 2 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • what is the exact error message?

    – mchid
    Oct 25 '15 at 16:13











  • @mchid it depends on the application. PHP fails with "failed: No space left on device (28)". Trying to write a file with vim says "unable to open swap file, writing impossible", then "can't open file for writing".

    – felwithe
    Oct 25 '15 at 16:15











  • are you using btrfs or something?

    – mchid
    Oct 25 '15 at 16:17






  • 1





    Edit your question and add the output of sudo lsof -nP +L1

    – A.B.
    Oct 25 '15 at 16:32







  • 2





    You should write an answer. Give me a ping for an upvote.

    – A.B.
    Oct 25 '15 at 17:02

















  • what is the exact error message?

    – mchid
    Oct 25 '15 at 16:13











  • @mchid it depends on the application. PHP fails with "failed: No space left on device (28)". Trying to write a file with vim says "unable to open swap file, writing impossible", then "can't open file for writing".

    – felwithe
    Oct 25 '15 at 16:15











  • are you using btrfs or something?

    – mchid
    Oct 25 '15 at 16:17






  • 1





    Edit your question and add the output of sudo lsof -nP +L1

    – A.B.
    Oct 25 '15 at 16:32







  • 2





    You should write an answer. Give me a ping for an upvote.

    – A.B.
    Oct 25 '15 at 17:02
















what is the exact error message?

– mchid
Oct 25 '15 at 16:13





what is the exact error message?

– mchid
Oct 25 '15 at 16:13













@mchid it depends on the application. PHP fails with "failed: No space left on device (28)". Trying to write a file with vim says "unable to open swap file, writing impossible", then "can't open file for writing".

– felwithe
Oct 25 '15 at 16:15





@mchid it depends on the application. PHP fails with "failed: No space left on device (28)". Trying to write a file with vim says "unable to open swap file, writing impossible", then "can't open file for writing".

– felwithe
Oct 25 '15 at 16:15













are you using btrfs or something?

– mchid
Oct 25 '15 at 16:17





are you using btrfs or something?

– mchid
Oct 25 '15 at 16:17




1




1





Edit your question and add the output of sudo lsof -nP +L1

– A.B.
Oct 25 '15 at 16:32






Edit your question and add the output of sudo lsof -nP +L1

– A.B.
Oct 25 '15 at 16:32





2




2





You should write an answer. Give me a ping for an upvote.

– A.B.
Oct 25 '15 at 17:02





You should write an answer. Give me a ping for an upvote.

– A.B.
Oct 25 '15 at 17:02










1 Answer
1






active

oldest

votes


















0














Answered in edit by OP:




Edit: It turned out that I was out of inodes even though I wasn't out of disk space. Problem was solved here:



You are out of inodes. It's likely that you have a directory somewhere with
many very small files.





What are inodes?




Ext4 has a theoretical limit of 4 billion files, which is restricted by the size of inode number it uses to identify each file (ext4 uses 32-bit inode numbers). However, as John says, Ext4 allocates inode tables statically, so the actual limit is set when the file system is created.




Source






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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%2faskubuntu.com%2fquestions%2f689774%2funable-to-write-to-disk-but-disk-isnt-full%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Answered in edit by OP:




    Edit: It turned out that I was out of inodes even though I wasn't out of disk space. Problem was solved here:



    You are out of inodes. It's likely that you have a directory somewhere with
    many very small files.





    What are inodes?




    Ext4 has a theoretical limit of 4 billion files, which is restricted by the size of inode number it uses to identify each file (ext4 uses 32-bit inode numbers). However, as John says, Ext4 allocates inode tables statically, so the actual limit is set when the file system is created.




    Source






    share|improve this answer





























      0














      Answered in edit by OP:




      Edit: It turned out that I was out of inodes even though I wasn't out of disk space. Problem was solved here:



      You are out of inodes. It's likely that you have a directory somewhere with
      many very small files.





      What are inodes?




      Ext4 has a theoretical limit of 4 billion files, which is restricted by the size of inode number it uses to identify each file (ext4 uses 32-bit inode numbers). However, as John says, Ext4 allocates inode tables statically, so the actual limit is set when the file system is created.




      Source






      share|improve this answer



























        0












        0








        0







        Answered in edit by OP:




        Edit: It turned out that I was out of inodes even though I wasn't out of disk space. Problem was solved here:



        You are out of inodes. It's likely that you have a directory somewhere with
        many very small files.





        What are inodes?




        Ext4 has a theoretical limit of 4 billion files, which is restricted by the size of inode number it uses to identify each file (ext4 uses 32-bit inode numbers). However, as John says, Ext4 allocates inode tables statically, so the actual limit is set when the file system is created.




        Source






        share|improve this answer















        Answered in edit by OP:




        Edit: It turned out that I was out of inodes even though I wasn't out of disk space. Problem was solved here:



        You are out of inodes. It's likely that you have a directory somewhere with
        many very small files.





        What are inodes?




        Ext4 has a theoretical limit of 4 billion files, which is restricted by the size of inode number it uses to identify each file (ext4 uses 32-bit inode numbers). However, as John says, Ext4 allocates inode tables statically, so the actual limit is set when the file system is created.




        Source







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 13 '17 at 12:23









        Community

        1




        1










        answered Oct 25 '15 at 17:28









        TimTim

        20.1k1586141




        20.1k1586141



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f689774%2funable-to-write-to-disk-but-disk-isnt-full%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

            Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

            Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

            Where is the suspend/hibernate button in GNOME Shell? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)No suspend option in UI on Bionic BeaverHow can I set sleep mode in ubuntu18.04 LTS and what is the short cut key to do so?17.10 suspend not availableUbuntu 18.04 LTS missing sleep optionUbuntu 18.04 LTS - missing suspend option when power button is pressedHow to put Thinkpad X1 Extreme to sleep in Ubuntu 18.10?Suspend Button in interactive power button menu18.04 - Keep programs running after logging outway to disable Hibernate from within gconf-editor so button disappears?How can I hibernate from GNOME Shell?How can I hibernate/suspend from the command line and do so at a specific timeNo permission to suspend/hibernate after upgrading to 12.10MATE - Missing Suspend and Hibernate buttons, pressing power button shutdowns system immediatelyUbuntu 14.04: Suspend, Hibernate and Suspend-hybrid in the menu?Change “power-button-action” comand for “hibernate” option in GNOME 3.18Shutdown / Power off button does always go to suspend on 17.10Hibernate after suspend stopped working in 17.10Why doesn't the keyboard screenshot button work on Ubuntu with GNOME shell?