fstab script

hi,

i'm creating a shell script using fstab for my project of last year, i wonder you can help me to know what is the command allow me to get the list of unmounted partitions.
i tried this code but it doesn't work:
comm -23 <(awk '{print $2}' /etc/fstab | sort) <(mount | awk '{print $3}' | sort)

thanks
use "cfdisk -l" if cfdisk is installed on your machine.
for more detail of cfdisk use "man cfdisk" on your system.
I prefer "cfdisk" over "fdisk", you can try "fdisk" as well as per your convenience.
Topic archived. No new replies allowed.