Talk:TIP automount swap
From Gentoo Linux Wiki
Just as a hint: It will only find partitions marked as Swap-Partitions by fdisk - Partition Type (hex): 82
--Stargazer 09:12, 15 February 2006 (GMT)
[edit] Updated
- changed the grep-pipe-cut to a single awk command (also note that the original cut would fail if the swap is on /dev/hda10, cut -d" " -f1 would have been better in the first place, and awk is better :))
- the script can now detect several swap partitions (LVM anyone?) and reports a smaller message if none is found (my swap is mostly untouched, so there is nothing all that bad in not having any swap partitions, it should only be simply reported, IMHO)
Synss 05:42, 28 November 2006 (UTC)
[edit] Update: LVM2 support
added by making use of
file -sL $DEVICE
instead of
fdisk -l
Synss 10:39, 28 December 2006 (UTC)
