Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, I was wondering if I can remove the following mount points that are shown from the "df -h" command. Current display from the "df-h" Filesystem Size Used Avail ...
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    4

    Remove some mount points from df

    Hi All,

    I was wondering if I can remove the following mount points that are shown from the "df -h" command.

    Current display from the "df-h"
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda2 9.4G 2.5G 6.5G 28% /
    udev 497M 260K 497M 1% /dev
    none 497M 1.2M 496M 1% /dev/shm
    none 497M 84K 497M 1% /var/run
    none 497M 0 497M 0% /var/lock
    none 497M 0 497M 0% /lib/init/rw
    /dev/sda1 92M 35M 52M 41% /boot

    Want to remove:
    udev 497M 260K 497M 1% /dev
    none 497M 1.2M 496M 1% /dev/shm
    none 497M 84K 497M 1% /var/run
    none 497M 0 497M 0% /var/lock
    none 497M 0 497M 0% /lib/init/rw

    I just want to see the following, even after a reboot:
    /dev/sda2 9.4G 2.5G 6.5G 28% /
    /dev/sda1 92M 35M 52M 41% /boot

    Thanks.

  2. #2
    Just Joined!
    Join Date
    Feb 2010
    Location
    Biloxi, MS
    Posts
    1
    Quote Originally Posted by racerong View Post
    Hi All,

    I was wondering if I can remove the following mount points that are shown from the "df -h" command.

    Current display from the "df-h"
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda2 9.4G 2.5G 6.5G 28% /
    udev 497M 260K 497M 1% /dev
    none 497M 1.2M 496M 1% /dev/shm
    none 497M 84K 497M 1% /var/run
    none 497M 0 497M 0% /var/lock
    none 497M 0 497M 0% /lib/init/rw
    /dev/sda1 92M 35M 52M 41% /boot

    Want to remove:
    udev 497M 260K 497M 1% /dev
    none 497M 1.2M 496M 1% /dev/shm
    none 497M 84K 497M 1% /var/run
    none 497M 0 497M 0% /var/lock
    none 497M 0 497M 0% /lib/init/rw

    I just want to see the following, even after a reboot:
    /dev/sda2 9.4G 2.5G 6.5G 28% /
    /dev/sda1 92M 35M 52M 41% /boot

    Thanks.
    How about in .bashrc:

    alias dfh='df -h |grep -i -e sda2 -e sda1'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...