Greetings
when typing the command
df -Th
it returns the following :
df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 20G 13G 5.9G 69% /
devtmpfs devtmpfs 988M 32K 988M 1% /dev
tmpfs tmpfs 1000M 88K 1000M 1% /dev/shm
tmpfs tmpfs 1000M 4.1M 996M 1% /run
tmpfs tmpfs 1000M 0 1000M 0% /sys/fs/cgroup
tmpfs tmpfs 1000M 4.1M 996M 1% /var/run
tmpfs tmpfs 1000M 4.1M 996M 1% /var/lock
/dev/sda3 ext4 126G 9.9G 115G 8% /home
do we assume tmpfs the swap partition which is /dev/sda1 ?? or it is something else, and if yes/no either case, why /dev/sda1 is not displayed?
thanks
jamils
No.
A tmpfs is a virtual filesystem in RAM, something like a “RAM-Disk”.
It contains normal files like any other filesystem, you could even create one and use it for your personal files or something like that (but beware that it gets lost when you reboot/turn off the system).
It’s mainly used for two reasons:
- speed
- as it is in RAM, it is cleaned automatically when you reboot. Those mounted tmpfs’s you see in your df output only contain stuff that is created on runtime, like sockets, pid files, mount points for external media and so on. No need to store that anywhere anyway, and it might even cause problems if it survives reboots.
why /dev/sda1 is not displayed?
Because /dev/sda1 is your swap partition.
swap is not “mounted”, and it contains no filesystem.
To see how much free swap and memory you have, run “free”. (“top” shows it as well in its header line)
On 2014-10-26 14:16, jamilsaif wrote:
> it returns the following :
Try this instead
lsblk --output NAME,KNAME,RM,SIZE,RO,TYPE,FSTYPE,LABEL,PARTLABEL,MOUNTPOINT,UUID,PARTUUID,WWN,MODEL,ALIGNMENT
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)