fdisk and labels

Aldo Foot lunixer at gmail.com
Tue Oct 21 17:29:18 UTC 2008


On Mon, Oct 20, 2008 at 6:38 AM, Trapper <trapper at ledduk.net> wrote:
> Well, mount -l gives me output but mount -l | grep dev | egrep -v
> 'tmpfs|pts' | awk '{print $1"\t" $3"\t" $5"\t" $6"\t" $7}' gives me
> nothing at all.

The one-liner reads info from mounted partitions only.
You may need to adjust the order of the output columns in the print section.
Awk picks up whatever you tell it to get from the mount -l output.

The script you found is pretty nice though, because it gets a partition's
info whether is mounted or not.

~af




More information about the fedora-list mailing list