PDA

Bekijk de volledige versie : mount swap using fstab



sarlacc
22-03-2008, 14:44
Hi,
how can I mount swap using /etc/fstab????? swapon? how?
mount -a


mount: Mounting /dev/discs/disc0/part1 on none failed: No such file or directory
fdisk -l


Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 245 62704 82 Linux swap

fstab


#device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw 1 1

Oleg
22-03-2008, 14:54
Use


swapon -a

sarlacc
22-03-2008, 15:04
swapon /dev/discs/disc0/part1 or (swapon -a) in post-boot file?


And where can I see that it was successful? There is no record in list after 'mount' command.

newbiefan
22-03-2008, 22:56
use command 'free'