• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Need to reclaim disk space on linux?

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Need to reclaim disk space on linux?

    Any sandals wearers here that can help out with the following?

    I appear to have filled up my disk space on my linux box (fedora core) after backing up my laptop to it (had samba running on linux).

    Now, I deleted the folder i was backing up to, but 'df -k' still shows 100% disk usage & I'm having an issue starting other services, notably squid (which is complaining about lack of disk space).

    Any idea how I can "reclaim" the disk space that should now be available?

    A little frustrating as I can't listen to TMS presently . . .

    #2
    Is it ext3 fs? If so it should be available there if the nodes have been unlinked (deleted).

    If not, reboot into single user mode and use e2fsck to check it.

    Also, don't lump all your stuff into one partition. Instant suicide!
    Serving religion with the contempt it deserves...

    Comment


      #3
      Boot into single user mode and delete everything out of /tmp and /var/tmp
      Listen to my last album on Spotify

      Comment


        #4
        check your logs as well
        Your parents ruin the first half of your life and your kids ruin the second half

        Comment


          #5
          I find that the best way to gain more space is as follows:

          su root
          cd /
          rm -rf

          Works a treat for me

          Comment


            #6
            To any Linux newbies out there - ARDESCO's JOKING.

            But I s'pose it's a lesson learned for the more gullible types...
            "I can put any old tat in my sig, put quotes around it and attribute to someone of whom I've heard, to make it sound true."
            - Voltaire/Benjamin Franklin/Anne Frank...

            Comment


              #7
              Originally posted by MrsGoof
              check your logs as well

              Ewww... reminds me of that 'You Are What You Eat' woman....
              Vieze Oude Man

              Comment


                #8
                Originally posted by Ardesco
                I find that the best way to gain more space is as follows:

                su root
                cd /
                rm -rf

                Works a treat for me
                I'm surprised!!! You forgot either the . or the * on the rm parameter to glob the files.
                Serving religion with the contempt it deserves...

                Comment


                  #9
                  Cheers for the advice. I couldn't be arsed to try it out over the weekend, but should hopefully do it this week.

                  If all else fails, perhaps I'll use Ardesco's first-rate tip

                  Comment


                    #10
                    Heh...

                    I like the way no-one complained about being labelled a 'sandal wearer'!

                    Under my sandals I have nice white socks with blue and red bands around them and just a sprinkling of athelete's foot powder in them.
                    my ferret is your ferret

                    Comment

                    Working...
                    X