Re: RANT: Virtual filesystems are getting out of control

2016-05-20 Thread Jochen Spieker
Albin Otterhaell:
> 
> $ lsblk
> 
> should be clean and structured.

Nice! How didn't I know about that? It helps especially with complex
device structures involving LVM and LUKS.

J.
-- 
When I am at nightclubs I enjoy looking at other people and assessing
their imagined problems.
[Agree]   [Disagree]
 


signature.asc
Description: Digital signature


Re: RANT: Virtual filesystems are getting out of control

2016-05-19 Thread Albin Otterhaell
J Mo:
> -->df
> Filesystem   1K-blocks   Used  Available Use% Mounted on
> udev  16441312  0   16441312   0% /dev
> tmpfs  3290364   96683280696   1% /run
> /dev/sda2114287812   44945248   63514008  42% /
> tmpfs 16451804208   16451596   1% /dev/shm
> tmpfs 5120  4   5116   1% /run/lock
> tmpfs 16451804  0   16451804   0% /sys/fs/cgroup
> tmpfs  3290364  03290364   0% /run/user/116
> tmpfs  3290364 123290352   1% /run/user/1000
> 
> One out of eight lines are actually disk filesystems. That is 88%
> garbage I didn't want to see.

I don't know if this is that you seek, but

$ lsblk

should be clean and structured.



Re: RANT: Virtual filesystems are getting out of control

2016-05-19 Thread Cousin Stanley
Håkon Alstadheim wrote:

> alias drives="mount | grep '^/'"

  Another alternative  

  alias drives='df -h -T -x tmpfs -x devtmpfs'


  sk@d3s  02:44 PM  ~
  $ drives

  FilesystemType  Size  Used Avail Use% Mounted on
  /dev/sda1 ext4   31G  6.9G   23G  24% /
  192.168.0.10:/mnt/sda/a14 nfs4   60G   30G   28G  52% /home/sk/Videos
  192.168.0.10:/mnt/sda/a12 nfs4   30G   16G   14G  54% /home/sk/adirs


-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona



Re: RANT: Virtual filesystems are getting out of control

2016-05-18 Thread Lisi Reisz
On Wednesday 18 May 2016 07:52:03 Håkon Alstadheim wrote:
> Den 18. mai 2016 06:51, skrev David Wright:
> > $ mount -t ext3 ; mount -t ext4
>
> Or, to get only real devices listed: mount | grep '^/' .
> Frees you from knowing fstype.
>
> > $ man bash   for info on aliases and shell functions.
> >
> > Cheers,
> > David.
>
> alias drives="mount | grep '^/'"

Thank you, Håkon.  That is absolutely brilliant!!!

Lisi



Re: RANT: Virtual filesystems are getting out of control

2016-05-18 Thread Håkon Alstadheim
Den 18. mai 2016 06:51, skrev David Wright:
> $ mount -t ext3 ; mount -t ext4
Or, to get only real devices listed: mount | grep '^/' .
Frees you from knowing fstype.
>
> $ man bash   for info on aliases and shell functions.
>
> Cheers,
> David.
>
>
alias drives="mount | grep '^/'"



Re: RANT: Virtual filesystems are getting out of control

2016-05-17 Thread David Wright
On Tue 17 May 2016 at 17:18:03 (-0700), J Mo wrote:
> The output from these commands are on a freshly installed system.
> 
> -->df
> Filesystem   1K-blocks   Used  Available Use% Mounted on
> udev  16441312  0   16441312   0% /dev
> tmpfs  3290364   96683280696   1% /run
> /dev/sda2114287812   44945248   63514008  42% /
> tmpfs 16451804208   16451596   1% /dev/shm
> tmpfs 5120  4   5116   1% /run/lock
> tmpfs 16451804  0   16451804   0% /sys/fs/cgroup
> tmpfs  3290364  03290364   0% /run/user/116
> tmpfs  3290364 123290352   1% /run/user/1000
> 
> One out of eight lines are actually disk filesystems. That is 88%
> garbage I didn't want to see.

$ df -t ext3 -t ext4

> -->mount
> sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
> proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
> udev on /dev type devtmpfs
> (rw,nosuid,relatime,size=16441312k,nr_inodes=4110328,mode=755)
> devpts on /dev/pts type devpts
> (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=3290364k,mode=755)
> /dev/sda2 on / type ext4
> (rw,noatime,quota,usrquota,grpquota,errors=remount-ro,data=ordered)
> securityfs on /sys/kernel/security type securityfs
> (rw,nosuid,nodev,noexec,relatime)
> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
> tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
> tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
> cgroup on /sys/fs/cgroup/systemd type cgroup 
> (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
> pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
> cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup
> (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
> cgroup on /sys/fs/cgroup/perf_event type cgroup
> (rw,nosuid,nodev,noexec,relatime,perf_event)
> cgroup on /sys/fs/cgroup/devices type cgroup
> (rw,nosuid,nodev,noexec,relatime,devices)
> cgroup on /sys/fs/cgroup/cpuset type cgroup
> (rw,nosuid,nodev,noexec,relatime,cpuset)
> cgroup on /sys/fs/cgroup/pids type cgroup
> (rw,nosuid,nodev,noexec,relatime,pids)
> cgroup on /sys/fs/cgroup/blkio type cgroup
> (rw,nosuid,nodev,noexec,relatime,blkio)
> cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup
> (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
> cgroup on /sys/fs/cgroup/freezer type cgroup
> (rw,nosuid,nodev,noexec,relatime,freezer)
> systemd-1 on /proc/sys/fs/binfmt_misc type autofs
> (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
> hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
> mqueue on /dev/mqueue type mqueue (rw,relatime)
> debugfs on /sys/kernel/debug type debugfs (rw,relatime)
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
> tmpfs on /run/user/116 type tmpfs
> (rw,nosuid,nodev,relatime,size=3290364k,mode=700,uid=116,gid=120)
> tmpfs on /run/user/1000 type tmpfs
> (rw,nosuid,nodev,relatime,size=3290364k,mode=700,uid=1000,gid=1000)
> 
> 1 line out out 27. That's 96% garbage I didn't want to see.

$ mount -t ext3 ; mount -t ext4

$ man bash   for info on aliases and shell functions.

Cheers,
David.