Skip to content

The output is similar the Unix mount and df commands.

Usage

ps_disk_partitions(all = FALSE)

Arguments

all

Whether to list virtual devices as well. If FALSE, on Linux it will still list overlay and grpcfuse file systems, to provide some useful information in Docker containers.

Value

A data frame with columns device, mountpoint, fstype and options.

See also

Other disk functions: ps_disk_io_counters(), ps_disk_usage()

Examples

ps_disk_partitions(all = TRUE)
#> # A data frame: 29 × 4
#>    device     mountpoint           fstype     options                     
#>    <chr>      <chr>                <chr>      <chr>                       
#>  1 /dev/root  /                    ext4       rw,relatime,discard,errors=…
#>  2 devtmpfs   /dev                 devtmpfs   rw,nosuid,noexec,relatime,s…
#>  3 proc       /proc                proc       rw,nosuid,nodev,noexec,rela…
#>  4 sysfs      /sys                 sysfs      rw,nosuid,nodev,noexec,rela…
#>  5 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,rela…
#>  6 tmpfs      /dev/shm             tmpfs      rw,nosuid,nodev,inode64     
#>  7 devpts     /dev/pts             devpts     rw,nosuid,noexec,relatime,g…
#>  8 tmpfs      /run                 tmpfs      rw,nosuid,nodev,size=327292…
#>  9 tmpfs      /run/lock            tmpfs      rw,nosuid,nodev,noexec,rela…
#> 10 cgroup2    /sys/fs/cgroup       cgroup2    rw,nosuid,nodev,noexec,rela…
#> # ℹ 19 more rows
ps_disk_partitions()
#> # A data frame: 6 × 4
#>   device     mountpoint        fstype   options                           
#> * <chr>      <chr>             <chr>    <chr>                             
#> 1 /dev/root  /                 ext4     rw,relatime,discard,errors=remoun…
#> 2 /dev/loop0 /snap/core20/2379 squashfs ro,nodev,relatime,errors=continue…
#> 3 /dev/loop1 /snap/lxd/29351   squashfs ro,nodev,relatime,errors=continue…
#> 4 /dev/loop2 /snap/snapd/21759 squashfs ro,nodev,relatime,errors=continue…
#> 5 /dev/sdb15 /boot/efi         vfat     rw,relatime,fmask=0077,dmask=0077…
#> 6 /dev/sda1  /mnt              ext4     rw,relatime