On my triple-boot PC:
SuLinux:~ # fdisk -l
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6260518e
Device Boot Start End Blocks Id System
/dev/sda1 1917 13665 94373842+ 7 HPFS/NTFS
/dev/sda2 1 1916 15390238+ c W95 FAT32 (LBA)
/dev/sda3 * 13666 30401 134431920 f W95 Ext'd (LBA)
/dev/sda5 13666 13927 2104483+ 82 Linux swap / Solaris
/dev/sda6 13928 16538 20972826 83 Linux
/dev/sda7 16539 26482 79875148+ 83 Linux
/dev/sda8 26483 30234 30137908+ 83 Linux
/dev/sda9 30235 30401 1341396 82 Linux swap / Solaris
Partition table entries are not in disk order
SuLinux:~ #
sda 5, 6 & 7 are openSUSE 11.3, sda 8 & 9 are Ubuntu 9.10 (Karmic Koala), and (of course), sda 1 & 2 are Windows/XP.
When I installed 11.3 over 11.2, the installer (apparently) decided to use both sda5 and sda9 for swap partitions.
SuLinux:~ # swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 2104476 6104 -1
/dev/sda9 partition 1341392 0 -2
SuLinux:~ #
Ubuntu seems to use only sda9 (according to its /etc/fstab. If I were to modify the openSUSE /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/disk/by-id/ata-WDC_WD2500BEVE-00WZT0_WD-WX11A10N3227-part6 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-WDC_WD2500BEVE-00WZT0_WD-WX11A10N3227-part7 /home ext4 defaults 1 2
/dev/disk/by-id/ata-WDC_WD2500BEVE-00WZT0_WD-WX11A10N3227-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8
/dev/disk/by-id/ata-WDC_WD2500BEVE-00WZT0_WD-WX11A10N3227-part2 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/disk/by-id/ata-WDC_WD2500BEVE-00WZT0_WD-WX11A10N3227-part5 swap swap defaults 0 0
/dev/disk/by-id/ata-WDC_WD2500BEVE-00WZT0_WD-WX11A10N3227-part9 swap swap defaults 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
commenting out ("#") the “part9” entry, I assume that sda9 will not be used for swap.
Will the above procedure accomplish this objective, without crippling openSUSE ? The second swap partition has never shown any activity (on SUSE). I understand (from Using shared swap files) that a single swap partition may be shared. Since these areas are relatively small, It is not inconvenient to maintain separate swap partitions.
Comments are appreciated.