[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: fdisk and labels



On Mon, Oct 20, 2008 at 6:38 AM, Trapper <trapper 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]