Re: mount command output not including swap partition

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

 



On Sat, Jan 08, 2011 at 11:17:14PM +0000, Jon Grant wrote:
> I am not sure if I recall correctly, but I thought swap partitions
> were reported in the "mount" command output.

no, use "swapon -s" or cat /proc/swaps

> I was not able to modify a drive today was the system thought it was
> in use, I found it a swap partition was mounted via "swapon -s" and
> called swapoff.
> 
> Could I ask if swap partitions could be included in the output of
> "mount" please.

I'd like to keep "mount" output backwardly compatible, but nothing
other. If you need information:
 
    - about mountpoints:    findmnt(8)         [since 2.18]
    - about block devices:  lsblk(8)           [since 2.19]
    - about partitions:     partx(8) --show    [since 2.19]

all these utils provide much better interface for humans as well as
for scripts. The traditional mount(8) output is very poor...

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux