Announcement

Collapse
No announcement yet.

Does your df look like mine?

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

    Does your df look like mine?

    It seems asking many questions in the same post brings no answer. So, I'll ask a very simple one. 1a) When you issue the df command, does the result look like:

    df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/hda2 4324760 2788604 1316468 68% /
    varrun 127968 140 127828 1% /var/run
    varlock 127968 0 127968 0% /var/lock
    udev 127968 60 127908 1% /dev
    devshm 127968 0 127968 0% /dev/shm
    lrm 127968 34696 93272 28% /lib/modules/2.6.22-14-generic/volatile
    /dev/hda3 3549856 148636 3220892 5% /home

    Specifically, do you also have varrun, varlock, udev, lrm ?

    1b) Does anybody understand why those entries appear as partitions?

    Thanks.

    #2
    Re: Does your df look like mine?

    It is true that a simple question is easier to answer than a complex, multi-part question. Especially at this pay scale ....

    Here's my output:
    Code:
    dibl@cville:~$ df -h
    Filesystem      Size Used Avail Use% Mounted on
    /dev/sda1       6.0G 2.6G 3.5G 44% /
    varrun        2.0G 140K 2.0G  1% /var/run
    varlock        2.0G   0 2.0G  0% /var/lock
    udev         2.0G 148K 2.0G  1% /dev
    devshm        2.0G   0 2.0G  0% /dev/shm
    /dev/sda2       190M  23M 158M 13% /boot
    /dev/sda3       134G  34G 100G 26% /home
    /dev/sde1       190G 167G  24G 88% /media/sda1
    /dev/sdb2       5.1G 2.2G 2.9G 44% /media/sdc2
    /dev/sdb3       5.1G 2.7G 2.4G 53% /media/sdc3
    /dev/sdb4       130G  33G  97G 26% /media/sdc4
    /dev/sdc1       225G 149G  77G 67% /media/sdd1
    /dev/sdc2       235G 212G  23G 91% /media/sdd2
    /dev/sdc3       240G 165G  76G 69% /media/sdd3
    /dev/sdd1       140G 544K 140G  1% /media/sde1

    Does that help? Can you tell I've been mucking around with my hard drives? I don't know what your "lrm" is -- I don't seem to have one.

    Comment


      #3
      Re: Does your df look like mine?

      The df command lists the free space on the disk. It does not specifically list partitions.
      Code:
      sudo fdisk -l
      will only list partitions. df will show important files and partitions, and their free space in percentages.
      Klaatu Barada Nikto

      Comment


        #4
        Re: Does your df look like mine?

        Originally posted by dibl
        It is true that a simple question is easier to answer than a complex, multi-part question. Especially at this pay scale ....


        Here's my outputsnip)

        Does that help?
        Sure does! Except for lrm... and your mucking around, you have the same extra partitions as me. This is very bizarre, first time I ever see this. Usually, mountable partitions are in fstab and those that are effectively mounted are in mtab. df shows what is in mtab

        I don't believe Debian's df has an output like this and the purpose of this tweaking I don't understand.

        Thanks!

        P.s.: It seems I'm not the only one who had to resort to dpkg --configure -a to get out of trouble!

        Comment


          #5
          Re: Does your df look like mine?

          varrun 127968 140 127828 1% /var/run
          varlock 127968 0 127968 0% /var/lock
          udev 127968 60 127908 1% /dev
          devshm 127968 0 127968 0% /dev/shm
          lrm 127968 34696 93272 28% /lib/modules/2.6.22-14-generic/volatile
          These are not partitions; they are directories that exist under root.
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Re: Does your df look like mine?

            Originally posted by Snowhog
            varrun 127968 140 127828 1% /var/run
            varlock 127968 0 127968 0% /var/lock
            udev 127968 60 127908 1% /dev
            devshm 127968 0 127968 0% /dev/shm
            lrm 127968 34696 93272 28% /lib/modules/2.6.22-14-generic/volatile
            These are not partitions; they are directories that exist under root.
            Ok, but how come partitions are listed with a program called disk free? Those directories should normally be part of / . I've never seen them listed by df. Never.

            Comment


              #7
              Re: Does your df look like mine?

              DF(1) User Commands DF(1)

              NAME
              df - report file system disk space usage

              SYNOPSIS
              df [OPTION]... [FILE]...

              DESCRIPTION
              This manual page documents the GNU version of df. df displays the
              amount of disk space available on the file system containing each file
              name argument. If no file name is given, the space available on all
              currently mounted file systems is shown.
              Disk space is shown in 1K
              blocks by default, unless the environment variable POSIXLY_CORRECT is
              set, in which case 512-byte blocks are used.
              Thus, if one types:
              Code:
              df /
              you get:
              paul@laptop:~$ df /
              Filesystem 1K-blocks Used Available Use% Mounted on
              /dev/sda2 8254272 2663444 5171532 34% /
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Re: Does your df look like mine?

                Originally posted by Snowhog
                DF(1) User Commands DF(1)

                NAME
                df - report file system disk space usage

                SYNOPSIS
                df [OPTION]... [FILE]...

                DESCRIPTION
                This manual page documents the GNU version of df. df displays the
                amount of disk space available on the file system containing each file
                name argument. If no file name is given, the space available on all
                currently mounted file systems is shown.
                Disk space is shown in 1K
                blocks by default, unless the environment variable POSIXLY_CORRECT is
                set, in which case 512-byte blocks are used.
                You previously said that /var/run, /var/lock, /dev, /dev/shm and /lib/modules/2.6.22-14-generic/volatile were directories. We agreed on this. Now you say that directories must be listed as filesystems (your italics and underline): the space available on all currently mounted file systems is shown..

                I'm sorry, here, we disagree, this doesn't make much sense, except, maybe, in Live-CD mode. Never, ever seen this in my Linux life. I'll soon give Debian a try to see if it's much harder to install -- multimedia and everything -- than Kubuntu. I'll report back here to tell you if directories are listed as filesystems by df.

                Regards!

                Comment


                  #9
                  Re: Does your df look like mine?

                  Understanding of what the df command does is necessary. Without any arguments (readptions), df reports the disk space usage of all file types. Linux can't use a filesystem unless it is mounted.

                  varrun 127968 140 127828 1% /var/run
                  varlock 127968 0 127968 0% /var/lock
                  udev 127968 60 127908 1% /dev
                  devshm 127968 0 127968 0% /dev/shm
                  lrm 127968 34696 93272 28% /lib/modules/2.6.22-14-generic/volatile

                  are mounted filesystems that the OS is using. You can see this if you add the -T option to the command:
                  Code:
                  df -T
                  which now shows:
                  Code:
                  paul@laptop:~$ df -T
                  Filesystem  Type 1K-blocks   Used Available Use% Mounted on
                  /dev/sda2  ext3  8254272 2662248 5172728 34% /
                  varrun   tmpfs   513024   176  512848 1% /var/run
                  varlock   tmpfs   513024    4  513020 1% /var/lock
                  udev    tmpfs   513024   148  512876 1% /dev
                  devshm   tmpfs   513024    0  513024 0% /dev/shm
                  lrm     tmpfs   513024  34696  478328 7% /lib/modules/2.6.22-14-generic/volatile
                  /dev/sda6  ext3  20641788 2428860 17164288 13% /home
                  /dev/sda1  ext3  8254240 3295264 4707400 42% /media/sda1
                  /dev/sda3  ext3  8254272  149628 7685348 2% /media/sda3
                  /dev/sda5  ext3  20642428 2660400 17982028 13% /media/sda5
                  /dev/sda7  ext3  20641788  176288 19416860 1% /media/sda7
                  You see, that the 'extra' filesystems are tmpfs (temporary filesystem) used by the OS while it is running. If you wanted to exclude these, you can issue the command:
                  Code:
                  df -x tmpfs
                  resulting in
                  Code:
                  paul@laptop:~$ df -x tmpfs
                  Filesystem     1K-blocks   Used Available Use% Mounted on
                  /dev/sda2       8254272 2662344 5172632 34% /
                  /dev/sda6      20641788 2428860 17164288 13% /home
                  /dev/sda1       8254240 3295264 4707400 42% /media/sda1
                  /dev/sda3       8254272  149628 7685348 2% /media/sda3
                  /dev/sda5      20642428 2660400 17982028 13% /media/sda5
                  /dev/sda7      20641788  176288 19416860 1% /media/sda7
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: Does your df look like mine?

                    Originally posted by Snowhog

                    [/code]You see, that the 'extra' filesystems are tmpfs (temporary filesystem) used by the OS while it is running.
                    Yes, but I don't remember that there were that many temporary filesystems on my Slackware system. There was /proc, if I remember well. The other filesystems we see here are more typical of Live-CD systems, i would think.

                    What are the consequences of having an installed system run like a Live-CD, temporary filesystems-wise, I don't know. I know Debian doesn't install from a Live-CD and that Red Hat recommends inastalling from their installation CDs rather than the Live-CD. What are the ins and outs of this question, honestly, I do not know. Do you?

                    Are you aware that there are that many tmpfs in Debian?

                    Comment


                      #11
                      Re: Does your df look like mine?

                      A bit of history: tmpfs for session-only data
                      Windows no longer obstructs my view.
                      Using Kubuntu Linux since March 23, 2007.
                      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                      Comment


                        #12
                        Re: Does your df look like mine?

                        Originally posted by Snowhog
                        A bit of history: tmpfs for session-only data
                        So, it's a security feature, then? I'll have to ask Debian users

                        I don't know, my present installation is not too bad. I could run a badblocks from the Live-CD... Synaptic is installed and I hope it wouldn't cause the problems I had with Adept (you know, those that finally had be solve by an dpkg --configure -a). There are still a few "features" that infuriate me like the cursor moving to the end of Firefox's search window for no reason at all, the window where I was typing a message suddenly shutting down without asking any confirmation after I pressed a combination of unknown keys, this kind of things, but I suppose that examining more closely the configuration could stop those special features behavior.

                        Kubuntu is definitely still on my list. I suppose I will install Debian on another disk than the one Kubuntu is on.

                        Thanks for the link, it was interesting. If you have any more on the matter, I'm a taker. I looked but didn't find much.

                        Comment


                          #13
                          Re: Does your df look like mine?

                          This the df from my mepis (debian etch):
                          ~$ df
                          Dateisystem 1K-Blöcke Benutzt Verfügbar Ben% Eingehängt auf
                          /dev/sda8 15061716 2608560 11688064 19% /
                          tmpfs 517556 0 517556 0% /lib/init/rw
                          udev 10240 148 10092 2% /dev
                          tmpfs 517556 4 517552 1% /dev/shm
                          /dev/sda7 20524524 8738180 10743728 45% /home
                          /dev/sda5 79057168 61501232 17555936 78% /Data
                          /dev/sda6 20834112 6475408 14358704 32% /Vmware
                          /dev/sda11 13456580 3632700 9140316 29% /mnt/sda11
                          Any help?
                          HP Pavilion dv6 core i7 (Main)
                          4 GB Ram
                          Kubuntu 18.10

                          Comment


                            #14
                            Re: Does your df look like mine?

                            Originally posted by Priam
                            There are still a few "features" that infuriate me like the cursor moving to the end of Firefox's search window for no reason at all,...
                            This also happens in Konqueror. I'm running both, Feisty and Gutsy, with Gutsy now being the main OS I boot into. I have no idea why the cursor wants to jump to the end of the search window. I've noticed, that if you have the cursor positioned where you want it, and you type at a specific, steady rate, the cursor wont jump to the end. It shouldn't jump at all, I agree, but it's a minor annoyance, so I don't worry about it.
                            Windows no longer obstructs my view.
                            Using Kubuntu Linux since March 23, 2007.
                            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                            Comment


                              #15
                              Re: Does your df look like mine?

                              Originally posted by Fintan
                              Any help?
                              Are you trying to prove that all Live-CDuse temporary filesystems the same way? If so, help would be to use Debian, I suppose.

                              Comment

                              Working...
                              X