Saturday, 29 April 2017

Create swap on USD drive for Linux

 - Unmount the USB drive
$ sudo umount /media/sdb1

- To watch the disk label as we have used here sdb1 yours might be different,
use the following and make sure which one is your pen drive with the consideration of size,
and sdb1 is just used here for exampling and explaining -

$ sudo fdisk -l

- Create swap on you pen drive by-
$ sudo mkswap /dev/sdb1

- Turn it on by:
$ sudo swapon -p 32767 /dev/sdb1

- To check its working use
$ cat /proc/swaps

No comments:

Post a Comment