mkswap and filesystem probing

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

 



Hey,
long story, short sequence of commands:
  $ mkfs.vfat -n maybefat /dev/sdb1
  $ mkfs.vfat 2.11 (12 Mar 2005)

  $ mkswap -L maybeswap /dev/sdb1
  Setting up swapspace version 1, size = 14380 KiB

  $ blkid /dev/sdb1
  /dev/sdb1: SEC_TYPE="msdos" LABEL="maybefat" UUID="491C-C1E8" TYPE="vfat"

  $ mount -t vfat /dev/sdb1 /mnt
  $ umount /mnt

  $ swapon /dev/sdb1
  $ swapoff /dev/sdb1

  $ mount -t vfat /dev/sdb1 /mnt
  $ umount /mnt

You can see, you can save a lot of space by sharing you data and
swap space, you can do both on the same partition. :)

No need to explain what auto-detection/mounting/activation can do with
your data in such cases.

I guess, it's time now for mkswap, to wipe out old signatures. We
tried this with a former maintainer of util-linux, but he claimed:
that was a "feature".

Thanks,
Kay

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" 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