[SOLVED]After doing 'resize2fs',free space of all filesystem become 0!

Here is the output of command 'df':
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 20511356 19752988 0 100% /
dev 3983420 0 3983420 0% /dev
run 3986136 704 3985432 1% /run
tmpfs 3986136 0 3986136 0% /dev/shm
tmpfs 3986136 0 3986136 0% /sys/fs/cgroup
tmpfs 3986136 0 3986136 0% /var/tmp
tmpfs 6291456 8 6291448 1% /tmp
/dev/sda2 88283240 83859216 0 100% /home
tmpfs 797228 0 797228 0% /run/user/0
tmpfs 797228 0 797228 0% /run/user/1000
As you can see, the two major partitions / and /home( that is /dev/sda1 and /dev/sda2) are not full, but their 'Available' space is 0, and 'Use%' is 100%!
How could this to happen?
I have just used the 'resize2fs -pM' to shrink the /home, and make some space for an additional /user partition. What happened is just shown above, that's weird.
These partitions are absolutely writable, I can delete files/directories and 'touch files', but cannot write a single bit into them. Here is the /etc/fstab:
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda1
UUID=397e83b2-9f37-4b41-8f82-fe21b97e7f74 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda2
UUID=7fb4c1ea-2df1-4c1d-984b-bb6ad0e39978 /home ext4 rw,relatime,data=ordered 0 2
# /dev/sda3
UUID=4fb831a4-c9b6-48a6-915c-82fb2a00e3e7 none swap defaults 0 0
# tmpfs
tmpfs /tmp tmpfs defaults,mode=1777,size=6G 0 0
tmpfs /var/tmp tmpfs defaults,mode=1777 0 0
# /dev/sda1
UUID=397e83b2-9f37-4b41-8f82-fe21b97e7f74 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda2
UUID=7fb4c1ea-2df1-4c1d-984b-bb6ad0e39978 /home ext4 rw,relatime,data=ordered 0 2
Last edited by victl (2014-12-07 16:55:31)

victl wrote:
Head_on_a_Stick wrote:
From the ext4 ArchWiki page:
By default 5% of a filesystem will be flagged as reserved for root user to avoid fragmentation.
https://wiki.archlinux.org/index.php/ex … ved_blocks
Your filesystem is 96.3% full -- I think the rest of the space is occupied by the reserved blocks.
But I can still install new packages into the partition( which means it's writable). What I can't do is direct write into it(e.g.  Using vi)
Thant you for helping!
So... what? You run pacman as root which means it has extra privileges. You probably run vi as a user that doesn't have that privilege..

Similar Messages

  • Music on my phone does not show all the iTunes artwork, even after doing a backup restore, eliminating all music and restoring

    Music on my phone does not show all the iTunes artwork, even after doing a backup restore, eliminating all music and restoring  I have an iphone5 64 syncing about 8000 songs, so updating all is a time consuming, and now maddening process. Never had a problem before iOS 8. Someone (hello Apple) needs to develop a utility to help manage artwork recovery.

    See earlier post by tt2
    https://discussions.apple.com/message/7217190#7217190

  • Adding a new partition in free space wipes all others?

    geez, I hate writing a question when I think I've already found the answer!!
    But in this case, the answer's so baad, I thought I'd run it by you all before I hit "desperation" mode! Here goes...
    I've got a USB 1TB external that I back up on to. It's in 4 partitions (audio, video, system, archives). The 4 partions are using about 750 Gb total, with 250 Gb free. I wanted to resize the "system" partition, as it was getting pretty full. I found some instructions about; (1.) creating a new, fifth, empty partition out of that 250Gb free space then (2.) "merging" the new partition and the system partition, resulting in a single larger partion for system backups. All other partitions *should* have been left untouched.
    I was a bit wary of it all, but Disk Utility's Help says, "You may be able to create multiple partitions on your disk without losing any data" and then goes on to tell me how to, using the + sign, create a  new partition out of the 250Gb of free space.
    I followed the instructions to the letter but, after "Applying", it did create the new fifth partition, *BUT IT WIPED ALL OF THE DATA OFF OF THE OTHER FOUR PARTITIONS!!*
    I'm in major panic mode, did a bit of searching and, on Indiana Univ. help page, found:
    "Warning: ...when changing the partition scheme in Mac OS X 10.5 and later, partitioning your hard drive with Disk Utility erases all the information on the drive."
    As I see it, a direct conflict to what Apple claims in Disk Utility's Help.
    So, I'm about to pull out and upgrade my data recovery programs - - will just try and get the pix and tunes back, I guess.
    But if anyone has any idea how I can "undo" what's been done, it sure would help!!
    many thanks in advance,
    b myers

    I'm not sure what you did exactly, but having done it you cannot undo it.   You may yet be able  to recover files from the drive using recovery software:
    Basics of File Recovery
    Files in Trash
    If you simply put files in the Trash you can restore them by opening the Trash (left-click on the Trash icon) and drag the files from the Trash to your Desktop or other desired location.  OS X also provides a short-cut to undo the last item moved to the Trash -press COMMAND-Z.
    If you empty the Trash the files are gone. If a program does an immediate delete rather than moving files to the Trash, then the files are gone.  Recovery is possible but you must not allow any additional writes to the hard drive - shut it down. When files are deleted only the directory entries, not the files themselves, is modified. The space occupied by the files has been returned to the system as available for storage, but the files are still on the drive. Writing to the drive will then eventually overwrite the space once occupied by the deleted files in which case the files are lost permanently. Also if you save a file over an existing file of the same name, then the old file is overwritten and cannot be recovered.
    General File Recovery
    If you stop using the drive it's possible to recover deleted files that have not been overwritten by using recovery software such as Data Rescue II, File Salvage or TechTool Pro.  Each of the preceding come on bootable CDs to enable usage without risk of writing more data to the hard drive.  Two free alternatives are Disk Drill and TestDisk.  Look for them and demos at MacUpdate or CNET Downloads.
    The longer the hard drive remains in use and data are written to it, the greater the risk your deleted files will be overwritten.
    Also visit The XLab FAQs and read the FAQ on Data Recovery.
    For future reference:
    To resize the drive do the following:
    1. Open Disk Utility and select the drive entry (mfgr.'s ID and size) from the left side list.
    2. Click on the Partition tab in the DU main window. You should see the graphical sizing window showing the existing partitions. A portion may appear as a blue rectangle representing the used space on a partition.
    3. In the lower right corner of the sizing rectangle for each partition is a resizing gadget. Select it with the mouse and move the bottom of the rectangle upwards until you have reduced the existing partition enough to create the desired new volume's size. The space below the resized partition will appear gray. Click on the Apply button and wait until the process has completed.  (Note: You can only make a partition smaller in order to create new free space.)
    4. Click on the [+] button below the sizing window to add a new partition in the gray space you freed up. Give the new volume a name, if you wish, then click on the Apply button. Wait until the process has completed.
    You should now have a new volume on the drive.

  • Boot, shutdown slow after erasing disk free space

    On the advice of a friend I used Disk Utility to erase free space on my MacBook Pro disk. Used the 'zero' option. At the end of the erase procedure it tried to run a routine to create a 'backup file'. There was a "Skip" button and because it was late at night I skipped it. Still took 10 minutes to complete. Since then it takes almost 2 minutes for the thing to boot and to shutdown - was approx 30 seconds for boot and maybe 10 or 15 for shutdown previously. Once it does boot, it takes even longer to find my wireless network. I tried verifying the disk (it's OK) and repairing permissions, both to no avail. I have no apparent battery issues. Anyone have any other suggestions before I start from scratch? TIA.

    Yes, I tried DiskUtiliy from the CD, didn't work. Eventually gave up, backed everything up and re-installed OS X. After downloading and installing all the updates it now boots and shuts down as expected. I think I'll stay away from the Erase feature...

  • After using "erase free space," hard drive has almost no available capacity

    I decided to clean all the files off my iMac as I wasn't using it as my primary computer anymore. After deleting the files, I used Disk Utility and used "erase free space" with the 7x option. I also emptied the Trash folder.
    When I checked the HD, I found:
    Capacity: 297.77 GB
    Available: 4.68 GB
    Used: 293.09 GB
    This makes no sense to me, since there is very little on the computer (some applications). Also, before I started, I know there was about 260 GB available.
    I'd appreciate some advice on how to "free up" the available space that I know must be there.
    Thanks!

    Hi, sounds like the secure erase didn't finish maybe & left a big invisible file on there.
    How much free space is on the HD, where has all the space gone?
    OmniDiskSweeper is likely the easiest/best, and is now free...
    http://www.omnigroup.com/applications/omnidisksweeper/download/

  • Does Erase Free Space Degrade Hard Drive?

    I've noticed with my macbook that erasing free space takes bloody ages, 2 hours for 1 pass, 18 for 7 pass, 3 days for 35 pass.
    This seems like an awful long time to have your laptop sitting on and open let alone your disc spinning and writing. Does this process degrade, slow down or have any seriously harmful side-effects to your hard drive?

    My question is simply, 3 days of nonstop writing to zero out free space from insecure trash empties (some people might have important goverment docs, I don't know) seems like long enough to burn out your drive in one single process, no?
    No, not unless the drive is already perilously close to failure when you begin the process.
    And with their awkward sleep with lid closed standard feature, you have to leave the laptop sitting open and running... 3 days, surely that'll cause some problems?
    Are you concerned that running the computer with its display open is hazardous to its health? Nothing could be farther from the truth. It cools itself more efficiently with the display open than with the display closed. Apart from that, having the lid open or closed makes no difference at all.
    Out of curiosity, what do you consider "awkward" about having the computer go to sleep when you close the display?
    I agree with Michael that if one were to do a 35-pass erase of free space every week, or even every month, it would become a significant factor in the longevity of the drive. But doing it a small handful of times over the life of the drive — say perhaps once a year — would account for only an insignificant portion of the drive's total use/operation.

  • Time Capsule full after a "Erase Free Space" using Disk Utility

    Hello,
    I am facing some issues related to my Time Capsule.
    Reviewing my past, I had a lot of backups on this, using Time Machine and it always worked pretty well. But after deleting some backups manually to reclaim disk space, this was not exactly freeing it.
    Searching in the forum here, I saw that I could mount the backup sparsebundle image and map it into the Disk Utility. This always worked greatly too both for disk checking and reclaiming the space back.
    The problem starts on the last Friday when I performed the operation again, but it started using the whole free space that I had and did not give it back.
    Studying the case I found that it creates a temporary folder to store the file it creates to write the byte 0 on the disk. This file actually resides in the sparsebundle image and therefore I can see the file with 200GB, for example, in the Finder, this is a split in bands (8MB) just like the backup is. After the disk gets full, the Disk Utility should delete the file properly and give me back the space safely.
    Right now my Time Capsule has 0 byte free and I can't do anything on it beyond redo the the Erase Free Space operation. When I do it, it starts writing the temporary file again and the problem repeats itself.
    I know that if I backup the data and really erase the disk, I'll get it back, but this is not an option for me because I want a smart solution for this.
    The only thing that changed between when it worked and now is the 10.5.6 update that I made and I'd like that it's not the root of the issue.
    Is there any suggestion or general stuff I could do to fix it?
    Did anybody already face the same issue?
    If anyone needs more details to help me out of this, just let me know.
    Thanks and regards,
    Eduardo

    Just another thing to add, I'd like a good solution for this as the redo operation from Disk Utility takes around 2 days and then it just "dies".

  • Lost free space after an "Erase Free Space" procedure

    I just ran the "Erase Free Space" application from the Dick Utility. The erase failed and now I have ZERO free space available. I am now showing that all 111g or used oposed to roughly 50% prior to the Erase Free Space. I have found a few articles trying to explain what to do but, I have been unable to locate the empty temp files that we created during the Erase Free Space, so I have been told. Can anyone help me resolve this solution and restore my free space?
    Thank you,
    Shannon

    WhatSize should be able to find the temporary files
    <http://www.id-design.com/software/whatsize/>
    You could try the Erase Free Space from Disk Utility on the install DVD. It might delete the files when it finishes.

  • HT1199 Macbook 2007 - erase free space took all my free space! help!

    My laptop has been having problems - track pad doesn't always work, runs slow, freezes. I replaced the hard drive on advice and that didn't help. I went to disk utility and verify and repaired disk permissions, that didn't help. I went to the erase tab and I clicked on "erase free space" thinking that would "defragment" free space, like a PC has.  Now all my available memory is gone. Can I get it back? I thought I was freeing up space. Now my apps don't work correctly and I can't reinstall because I don't have enough disk space. HELP! I really appreciate any help or suggestions. I'm a teacher and can't teach without it!

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • What does erase free space do?

    Can somebody explain how can I recover the speace I "freed" in order to stop my Mac to keep recovering delted files? I am just afraid that I used up all my free space and now I wont be able to save anything else anymore. HELP!!!

    karena60 wrote:
    Can somebody explain how can I recover the speace I "freed"
    If you reboot your Mac, it will learn the new drive space and that space is now free.
    Check it under Activity Monitor > Disk Usage
    in order to stop my Mac to keep recovering delted files?
    Your Mac shouldn't be recovering deleted files on it's own, unless you installed some sort of software.
    Once you Empty or Secure Empty Trash, those files in the Trash can are pretty much gone permanently.
    I am just afraid that I used up all my free space and now I wont be able to save anything else anymore.
    That is true, why you open Activity Monitor in your Utilities folder and click on Drive Usage.
    You need to stay under 80% of the drive filled.
    If you need more "space" you need to learn about storage drives to store your data pernamently, TimeMachine or clone backups don't perform pernament storage, they are backup systems of the boot drive.
    Most commonly used backup methods

  • Deleting files does not free space

    Hi!
    I'm confused as to how to free more space on my MBP. It keeps saying that I only have 7 GB  free space (I think there should be plenty more...) and often enough says that the start disk is full and needs more space.
    I have deleted quite a few films and photos, emptied the bin and restarted the computer.. only to discover that I still only have 7GB free. What am I doing wrong?
    The computer is slow, programs keep freezing, the colourfull circle appears and Safari keeps crashing. (I have no idea if these things are related though) Please could you help me? I know it is a stupid newbie question, but I would very much appreciate some help! I tried to find solutions on different forums but have not really understood the answers people with the same problem have been getting.
    Please help?

    Thank you shldr2thewheel and AnaMusic.
    A follow-up question: I ran OmniSweeper and do not understand the answer I got.
    What on earth is that?? What ever it is it takes enormous space but I dont dare to touch it as I really dont know what it is or does. Can I just delete it?
    The second largest post according to the Sweeper is "Caches". Is that just deleteable? Nothing important?
    Thanks a lot!

  • System Won't Reboot Proper After Running "Erase Free Space" in Disk Utility

    Thought I'd run it to see what happened.
    On an 80gb HD with 35gb free, I was told I was running out of free space partway through the erase, program then quit. Kept system going for about two days without problems, then shut it down for a day. When I rebooted a few hours ago, it seemed to take forever to do so, followed by a dim perpetual blue screen which I couldn't brighten via the keyboard. Waited 20 minutes for screen to resolve into my desktop; alas, no such luck. Rebooted a few times, no change.
    17 pB @ 1.33ghz & 1.5gb RAM   Mac OS X (10.4.7)  

    One of the first things I tried: no effect.
    Booted on the MacOS X CD and ran disk utility and it found errors, fixed them, rebooted from the hard drive and now I get a perpetual grey screen with the li'l rotater. Zapping doesn't do anything this time either.

  • External Hard drive shows no space after failed "Delete Free Space" from Disk Utility

    2009 13" MBP running 10.6.8
    I was clearing out a section of my external to clean it of a former client's information. The operation worked fine until it got to the "create temporary files" where it got hung for several hours. Forced quit D.U. and rebooted my machine. Now the external only shows 5MB when it should be closer to 150MB.
    I have run the the following script in Terminal to show hidden files:
    defaults write com.apple.finder AppleShowAllFiles TRUE
    killall Finder
    Not sure what files to delete.
    Should I run:
    sudo rm -f /var/root/Library/Caches/TemporaryItems/*
    Will this delete the temporary items in my external or only my HD?
    Any tips would be greatly appreciated!

    Fixed it! I downloaded WhatSize and found the temporary files. Deleted and retrieved all my space!

  • [SOLVED] Why does nano "ctrl+o" `selects all`?

    I am frequently using nano, but recently when I try to save the file and hit "ctrl+o" all text gets selected instead of saving the file.
    Nevertheless, I can save the file in nano only if I switch my keyboard to Russian layout. Then "ctrl+o" correctly works.
    Using English layout I can invoke `save file` by hitting "ctrl+shift+o" but it all worked perfectly with "ctrl+o" before.
    I have had this nasty behaviour before but forgot what was the reason and how to fix it.
    Does anybody know what's going on?
    Last edited by minerals (2015-03-26 17:00:45)

    Alad wrote:I didn't know you could select all text with a single shortcut... usually people use ctrl+a with ctrl+/ for that. What terminal and window manager do you use? Have you run the keys through xev (from xorg-xev) ?
    Oh, you're right. It is my "lilyterm" that overrides the default nano binding. In lilyterm "ctrl+o" selects all text area. Now, I reassigned the hotkey and nano is back to normal. Thanks!

  • Erase free space erased everything

    On my MacBook with OS X 10.6.8, I tried to erase free space (zero out) on a pretty full 2TB external HDD using Disk Utility (still 100 GB free space).
    I have done this lots of times before to free up a little more space.  When I did it today, the progress message said "unmount volume", then "erasing volume"! The whole process took only 10 seconds. After that, there were 2TB of free space and all my files were missing.
    Does it seem only the partition was erased since the erasing only took 10 secs? The external HDD only had one partition.  Although there is a volume now just no data in it.   What's the best way to recover these files?  Should I use a Knoppix Live CD and disk duplication? (I'm just learning now how to do this)
    I'm trying Prosoft's Data Rescue 3,  and that does not work well I will try Photorec with a live cd.  I'm trying to understand what happened with Disk Utility - normally it would take a while to erase 2tb of data even unsecurely not the 10 sec thing that happened to me

    Tign wrote:
    Thanks Lupunus
    Looks like I erased the volume - so is your above suggestion still the best way to recover the data?
    If there where no writing on the drive since the operation, you will get your data back.
    A good tools is Testdisk -> http://www.cgsecurity.org/wiki/TestDisk
    If you are unsure of your own skills, you may alternatively send the disk to a recovery service like Kroll. But this will ease your wallet by around 1000$
    Take a look in the discussions history here. There was a similar problem a week or two ago and the thread contains a lot of useful information.
    I will look in my own history too. If I find the thread, I'll post the link here.
    Cheers - Lupunus
    Got it --> https://discussions.apple.com/message/16110105#16110105
    Message was edited by: lupunus

Maybe you are looking for

  • FILE WONT OPEN IN PHOTOSHOP CS3... Gives error not compatable with this version

    i have read through several other threads an nothing suggested seems to work when i attempt to open a particular psd it tells me file cannot be opened because it is not compatible with this version of photoshop. it was built in cs3 and worked like 5

  • How to consume the webservice if it returns the data in dataset format

    Dear All, We have a requirement to consume webservice created in .NET platform. In that webservice they are returning data in dataset format. In this case i am not able to create a proxy. It is showing the following information. Cannot generate proxy

  • Cs4 hairline

    Good morning, I have a photo of a lilly in a pond, I would like to give the perception of more depth so I tried a couple of ways to achieve this: a) Duplicate pic, quick selection tool inverse delete, gausian blur on copy, my problem was that the lil

  • No sound while Recording

    Sound is fine while watching TV or listening to the Radio. Jumper is setup going from Line Out  [tv card] -> Line In [sound card] Settings in the software player are as such. http://www.egohost.net/untitled.jpg Anyone have any idea's about this pleas

  • How to use the check box?

    How is the check box to be used? If I have 10,000 songs in my itunes library and have 1,000 of them checked, how can I place all 1,000 checked songs into a new playlist that I have created just for them. They are not located together in my library so