Announcement

Collapse
No announcement yet.

Problem with the hard drive waiting to come out?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem with the hard drive waiting to come out?

    Hello all!

    I've had a weird issue with my hard drive after installation. I noticed that the root partition was significantly more filled than in 12.04. Meaning 69% used up with now with 14.04, while I believe it less than half before upgrade. That is a 20GB partition, so the difference is not justified. While upgrading I had some issues and had to use recovery mode, dpkg and noticed the tex packages being downloaded every time. I came to the conclusion that the tex packages might somehow have been installed multiple times (correct me if this assumption is wrong) hence the extra disk usage. Ironically, latex (texmaker actually) does not function properly as before upgrade, that's the reason I started digging...

    I started browsing the root directory to see if I can find where the tex packages are installed and perhaps see if something looks weird. I did find something weird, but not as expected. The /proc directory registers a size of 128TiB (does that stand for terabyte?). The OS is installed on a 128GB ssd. See attached screenshot. A quick search brought to my attention that the /proc directory is a virtual filesytem about what's running. Ok, but is such a size justified?

    Apart form this, is there another way to check if something is taking more disk space that it is supposed to?

    Thanks in advance!

    Edit: I already used apt-get clean, autoclean, autoremove and bleachbit. Still searching...
    Attached Files
    Last edited by zahtar; Jun 17, 2014, 08:27 AM. Reason: update on the disk usage clearing attempts

    #2
    Free disk space

    Tools: https://www.kubuntuforums.net/showth...ce-Regenerated


    At here:

    :~$ df -h -T
    Filesystem Type Size Used Avail Use% Mounted on
    /dev/sda9 ext4 9.5G 4.6G 4.4G 52% /
    Graphical (Filelight):



    =>
    The root usage at here is about 4.6-4.7 GB
    The biggest is the /usr/ 3.0 GB
    and there /usr/lib 1.3 GB
    and so on...

    About the /proc & properties: At here it is telling 140 TB ...

    A KDE bug report: https://bugs.kde.org/show_bug.cgi?id=298133
    Last edited by Rog132; Jun 17, 2014, 10:14 AM.
    A good place to start: Topic: Top 20 Kubuntu FAQs & Answers
    Searching FAQ's: Google Search 'FAQ from Kubuntuforums'

    Comment


      #3
      hello, thank you for your reply!

      I now have lots of information without knowing how to use it

      I ran the
      Code:
      df -h
      and
      Code:
      df -h -T
      which give me a percentage I already knew. I installed and ran agedu wich gives me a html report saying 0b, 0% files...

      Scanned root only with filelight (excluded \home and other disks) and the largest folders are: usr (6.3GB), lib (3.4GB), var (1.1GB), boot(668.4MB) with a total of 11.5GB. This tells me how much is used and where, but I can't understand if these numbers are ok. Usr is for installed programs, right? I see by zooming out that texlive-doc texmf-dist etc take up around 1,3 gb which I have the impression is ok.

      As my knowledge of the system is mostly superficial, I should rephrase my question:
      a) Is it possible for a package to be installed multiple times therefore taking more space?
      b) If yes, is there a way to find out which and fix it?

      thanks

      Comment


        #4
        a) Is it possible for a package to be installed multiple times therefore taking more space?
        No, the Debian (Ubuntu is a Debian based) package management should prevent this - example:

        Trying to (re)install the Dolphin:
        :~$ sudo apt-get install dolphin
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        dolphin is already the newest version.
        0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
        The apt-get has an option '--reinstall' but this will overwrite the existing files.

        If you change the package name and then try to install the package the dpkg(*) will show error:
        dpkg: error processing archive /var/cache/apt/archives/something.deb
        trying to overwrite 'file' , which is also in package somethingelse

        By my knowledge:
        - Only way to install an application multiple times through the Debian package management is to package an application with different file paths and with different package names.



        (*) The dpkg has an option to force thing but that is a special case...

        man dpkg:
        --force-things, --no-force-things, --refuse-things

        Force or refuse (no-force and refuse mean the same thing) to do some things...
        Last edited by Rog132; Jun 17, 2014, 01:53 PM.
        A good place to start: Topic: Top 20 Kubuntu FAQs & Answers
        Searching FAQ's: Google Search 'FAQ from Kubuntuforums'

        Comment


          #5
          ok so it seems that the space is reserved in a reasonable way. I see usr+lib is the biggest part in both your and my installation (mine has a bigger deviation due to the var directory).

          Is it possible to clear the var directory? If it has unnecessary logs etc why not empty it? My root partition is 67% full and I wouldn't like it to increase more. I am not installing programs all the time, but I had the impression that 20GB for the root partition would be more than enough... Let me know what you think of this.

          Thanks again!

          EDIT: After this advice and my research I concluded that the disk usage is indicated correctly. I mark the thread as answered, as I am not looking for any more information regarding this. Thank you for your time!
          Last edited by zahtar; Jun 20, 2014, 05:21 PM.

          Comment


            #6
            Ok, I managed to empty a nice amount of space! The whole thing was old kernels. As the installation was around 1,5 year old (ran 12.04 LTS) there were quite a few older kernels. Getting rid of them was quite easy, so here goes! Prepare by opening Konsole and:

            Code:
            sudo apt-get update
            sudo apt-get upgrade
            reboot, and now you are sure you are using the latest available kernel. Open Konsole again, and:
            Code:
            uname -r
            This command shows which is your current kernel. Be extra careful with this one, YOU MUST NOT DELETE IT!!!!
            Code:
            dpkg --list | grep linux-image
            to see a list of the kernels installed in the past, which now occupy space (around 140MB each). Leave Konsole open to keep an eye on these results.

            Keep the last 3 kernels including your current. You can dispose of the older via Muon Package Manager. Start Muon and search for
            Code:
            linux-image
            You will get a lot of results, scroll to find the kernels. Their names will be as in the list that you got from Konsole. Select those you don't need and Right Click -> Mark for purge

            BE CAREFUL NOT TO SELECT THE MOST CURRENT KERNEL!!! (the one you are currently using, this will make your machine unbootable, I don't know if it can be repaired, so be extra careful with this!!!)

            Preview changes (make sure you delete the old stuff, not the last!) -> Apply Changes

            Back to Konsole,
            Code:
            sudo upgrade-grub2
            check free space, smile, reboot, done!

            My root partition used to have 11.5GB reserved, not is has 8.1GB
            (Sorry for bumping, this is too long for an edit and I believe it deserves to be a new post)
            Last edited by zahtar; Jun 21, 2014, 01:59 AM.

            Comment

            Working...
            X