The easiest method to add the swap line to fstab is with YaST Partitioner. Just click on Hard Disks, then highlight the partition you have allocated to swap, then click on Edit. On the next screen select Format Partition and "swap" for the file system from the pull-down. Then below click on Mount Partition and from the pull-down select "swap" as the mount point. Finish. The line in fstab will look like:
On Sun, 18 Jul 2010 22:06:20 +0600, dwgallien
wrote: From the terminal, the "swapon" command as root. To make permanent, add a line to /etc/fstab.
This is happening:
linux-rik8:/home/Nirjhor # swapon
Usage: swapon -a [-e] [-v] [-f] enable all swaps from /etc/fstab swapon [-p priority] [-v] [-f] <special> enable given swap swapon -s display swap usage summary swapon -h display help swapon -V display version
The <special> parameter: {-L label | LABEL=label} LABEL of device to be used {-U uuid | UUID=uuid} UUID of device to be used <device> name of device to be used <file> name of file to be used
And /etc/fstab contains this. Can you tell me what to add?:
/dev/disk/by-id/ata-SAMSUNG_HD502HJ_S20BJ90SB02264-part2 / ext4 acl,user_xattr 1 1 /dev/disk/by-id/ata-SAMSUNG_HD502HJ_S20BJ90SB02264-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-SAMSUNG_HD502HJ_S20BJ90SB02264-part5 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-SAMSUNG_HD502HJ_S20BJ90SB02264-part6 /windows/E ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-SAMSUNG_HD502HJ_S20BJ90SB02264-part7 /windows/F ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 /dev/disk/by-id/ata-SAMSUNG_HD502HJ_S20BJ90SB02264-part8 /windows/G ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org