Android Century
  • Home
  • Android Zone
    • Android Apps
    • Android Games
    • Apps APk Files
    • Games Apk Files
    • Apps Hack Tricks
  • Reviews
  • Fantasy Zone
    • Entertainment
    • Quotes and Status
    • Life Style
    • Home Made Tips
    • Hair Care
    • Skin Care
    • Fantasy Tips
  • Tricks
    • Free Recharge
    • Free Internet
    • shopping Cashback
    • Recharge Cashback
  • Tech
  • Mobiles
  • Gadgets
  • News
  • How To's
  • Software
Breaking
Loading...

Featured post

How to Take Great Photos With Apple's iPhone X

Recent Posts

Labels

  • Android Apk Files
  • Android Apps
  • Android Games
  • Apps Apk Files
  • Entertainment
  • Fantasy Tips
  • Gadgets
  • Hair Care
  • HomeMade Tips
  • How To's
  • News
  • Quotes
  • Quotes & Status
  • Recharge Cashback
  • Recharge Promo Codes
  • Shopping Cashback
  • Technology
  • skin care
Home / How To's / ‘No Space Left on Device’ Error on Linux Here is how to fix

‘No Space Left on Device’ Error on Linux Here is how to fix

Latest Govt. Jobs 23:39:00 How To's Edit
So your Linux system is telling you that you have no space left on your hard drive, but you know there is actually a lot of free space left. Why? This is one of those few frustratingly vague errors on Linux systems, but there are a few usual culprits.

Check du and df

Before you go any further, it’s a good idea to check that there really is space left on the disk. While the tools in your desktop environment are good, it’s much better to use the direct ones from the command line.
Linux Filesystem du
Begin with du. Point it to the base directory on the drive that’s having the problem. This guide is assuming it’s the partition with root.
sudo du -sh /
Linux Filesystem df
It’ll take some time to go through everything. Now, try with df.
sudo df -h
Add root and the filesystems mounted under it. For example, if you have “/home” on a separate drive, add that in with the reading for root. The total should come out close to what you had with du. If not, that might point toward a deleted file being used by a process.
Of course, the main concern here is whether or not the results of these commands come in under the size of the drive. If it did, there’s obviously something wrong.
Related: Use Agedu to Analyze Hard Disk Space Usage in Linux

Possible Causes

There are a couple of main causes here. If you saw a discrepancy between du and df you can jump down to the first option here. Otherwise, start at the second one.

Deleted File Reserved by Process

Occasionally, a file will be deleted, but a process is still using it. Linux won’t release the storage associated with the file while the process is still running. You just need to find the process and restart it.
Check processes for deleted files
Try to locate the process.
sudo lsof / | grep deleted
The problematic process should be listed, then just restart it.
sudo systemctl restart service_name

Not Enough Inodes

Linux check filesystem inodes
There is a set of metadata on filesystems called “inodes.” Inodes track information about files. A lot of filesystems have a fixed amount of inodes, so it’s very possible to fill the max allocation of inodes without filling the filesystem itself. You can use df to check.
sudo df -i /
Compare the inodes used with the total inodes. If there’s no more available, unfortunately, you can’t get more. Delete some useless or out-of-date files to clear up inodes.

Bad Blocks

The last common problem is bad filesystem blocks. Filesystems get corrupt and hard drives die. Your operating system will most likely see those blocks as usable unless they’re otherwise marked. The best way to find and mark those blocks is by using fsck with the -cc flag. Remember that you can’t use fsck from the same filesystem that you’re testing. You’ll probably need to use a live CD.
sudo fsck -vcck /dev/sda2
Obviously, replace the drive location with the drive that you want to check. Also, keep in mind that this will probably take a long time.
Share on Facebook Share on Twitter Share on Google Plus

RELATED POSTS


How To Get Free Recharge And Money ...

How to Sync Your Contacts Between A...

How to Know a Wi-Fi Network Is Fast...
‘No Space Left on Device’ Error on Linux Here is how to fix  ‘No Space Left on Device’ Error on Linux Here is how to fix Reviewed by Latest Govt. Jobs on 23:39:00 Rating: 5

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom )

Search This Blog

TEST BOOK FOR GOVT ENTRANCE TEST

TEST BOOK FOR GOVT ENTRANCE TEST
Find All Latest book for preparation of SSC,RAILWAYBANK PO,RBI,BANK CLERK,GATE ME,GATE CE are available here in less prices, to check out the books click here

Translate

  • Popular Post
  • Random posts
  • Category

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & Earn Offer:  Hey Guys! Today I make an article about Teen Patti Referral ...
  • KingRoot 4.8.1 (136) APK Latest Version Download
    Download KingRoot Latest Version 4.8.1 In Tools by Developer KingRoot Studio ( 4.x / 5  average ...
  • 11 things you should understand approximately iOS 11
    Apple introduced the following version of its running system for the iPhone and iPad, iOS eleven ...
  • How to Upload Your Music Library to Google Play Music
    Google Play Music offers an unlimited music streaming subscription paired with YouTube Red ...
  • How to Disable Your Mac’s Touchpad When Another Mouse Is Connected
    Laptop trackpads can be annoying. Your palm hits them while you’re typing, moving your cursor ...
  • How to Gain Root Access of An Android Device via KingoRoot Software
    What Does Root Access Mean? Gaining root access of Android is the process of modifying the ...

Random Posts

  • Microsoft adds another string to Office 365’s bow
    Microsoft adds another string to Office 365’s bow
    04.03.2017 - 0 Comments
    Microsoft has announced that Visio Online is now available to commercial customers…
  • New Samsung Galaxy S8 shown off alongside Note 7, S8 Plus
    New Samsung Galaxy S8 shown off alongside Note 7, S8 Plus
    09.03.2017 - 0 Comments
    The Samsung Galaxy S8 leaks don’t stop. With the official launch now just a few weeks away,…
  • Google Pixel 2, Pixel 2 XL owners complain
    Google Pixel 2, Pixel 2 XL owners complain
    21.02.2018 - 0 Comments
    Pixel 2 and Pixel 2 XL owners are reporting multiple issues after Google’s February security…
  • Nintendo Switch UI shown off as one gamer gets console early
    Nintendo Switch UI shown off as one gamer gets console early
    17.02.2017 - 0 Comments
    With the Nintendo Switch launch date a mere two weeks away, it was only a matter of time…
  • How to Get Over Someone You Love
    How to Get Over Someone You Love
    11.03.2016 - 0 Comments
    How to get over someone you love? Getting over somebody you love can appear unthinkable now, yet don’t…

Labels

Android Apk Files Android Apps Android Games Apps Apk Files Apps Hack Tricks Entertainment Free Internet Freecharge Gadgets Games Apk Files How To's Laptops Guide Mobiles Reviews Technology Viral's android zone free recharge

Entertainment

Tricks

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • Researchers trick 'CEO' email scammer into giving up identity
    Businesses ...
  • How to Gain Root Access of An Android Device via KingoRoot Software
    What Does Root ...
  • Tinyowl Freecharge Offer – Get 15% Cashback + extra 25% cashback using Freecharge [Ultimatez Tricks]
    Tinyowl Freecharge ...
  • How to Disable Your Mac’s Touchpad When Another Mouse Is Connected
    Laptop ...
  • Infocus Vision 3 review
    What happens when ...
  • EVGA redesigns its graphics cards following overheating concerns
    Following a ...

Random Posts

  • How to customize your Windows PC with Winaero Tweaker
    How to customize your Windows PC with Winaero Tweaker
    11.02.2017 - 0 Comments
    Anyone who’s been using Windows long enough has probably heard about all the wonderful customizations you…
  • Here How to Maximize Your Linux Laptop’s Battery Life
    Here How to Maximize Your Linux Laptop’s Battery Life
    11.03.2017 - 0 Comments
    Laptop manufacturers spend a lot of time tuning their device drivers for Windows battery life. Linux…
  • How to Tell if You Like Someone: 15 Weird, Unlikely Signs
    How to Tell if You Like Someone: 15 Weird, Unlikely Signs
    07.08.2016 - 0 Comments
    Don’t just count on the butterflies telling you if you like someone! Check out these unlikely signs to help…
  • US faces limits in busting Russian dealers over Yahoo breach
    US faces limits in busting Russian dealers over Yahoo breach
    24.03.2017 - 0 Comments
    In a rare move, the U.S. has indicted two Russian government agents for their suspected involvement in a…
  • Now Apple may release a 5.8-inch OLED screen iPhone this year
    Now Apple may release a 5.8-inch OLED screen iPhone this year
    06.03.2017 - 0 Comments
    Last year we heard various rumors of an iPhone Pro, and while it never actually materialized,…

Most Popular

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J ...
  • Top 5 Best SmartPhones under 7000 Rs (March 2017)
    Looking for the ...
  • Apple, IBM, Cisco are huge because of Indians, do not deny them H-1B visa: RBI Governor Urjit Patel
    ...
  • SAMSUNG GALAXY J7 (2016) Specifications
    SAMSUNG GALAXY J ...
  • BlackBerry Teases Marshmallow Beta Testing for Priv by Next Week
    Blackberry ...
  • LG Q6 Review
    LG Q6 Review
    2017 is ...

Contact Form

Name

Email *

Message *

Offers Zone

Created By Android Century Distributed by Android Century
  • Home
  • About us
  • Contact us
  • Privacy policy
  • Terms of use
  • Advertise here
Subscribe Via Email Subscribe To Android Century By Email And Get Free Updates. ;-)


Your email address is safe with us!