Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Quote:
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/sda5_crypt / ext4 relatime,errors=remount-ro 0 1
/dev/mapper/sda7_crypt /backup ext4 relatime 0 2
# /boot was on /dev/sda1 during installation
UUID=9143ef04-c761-4b31-a7d2-684bec057db6 /boot ext4 relatime 0 2
/dev/mapper/sdb5_crypt /home ext4 relatime 0 2
/dev/mapper/sda6_crypt /opt ext4 relatime 0 2
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/mapper/cswap none swap sw 0 0
Quote:
cat /etc/initramfs-tools/conf.d/resume
cat: /etc/initramfs-tools/conf.d/resume: No such file or directory
Disk /dev/sda: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x16001600
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1019 8185086 83 Linux
/dev/sda2 1020 19457 148103235 5 Extended
/dev/sda5 1020 1528 4088511 82 Linux swap / Solaris
/dev/sda6 1529 19457 144014661 83 Linux
As far as I know, swap is not encrypted. It uses another file system, unique to a swap partition.
Free command can show some swap information as see in prior post.
Also if your fstab a device with "swap" it indicates it is starting a swap device at start up.
You can see details of swap by typing "cat /proc/swap".
I've never heard of encrypted swap and would imagine it would slow things down quite a bit if it existed. Swap is an adjunct to memory. For most purposes swap is only used to preallocate "virtual" memory (the combination of real memory and swap) to processes as you start them.
These days you don't really "swap" out you "page" out and the pages are going to swap. This occurs as pages age/become less used and ideally won't really be needed again. It is faster to page back in from swap than to go get it from original location again but just barely - both require a disk read which is incredibly slow compared to memory. You want swap to allow for the preallocation and the page outs but you don't want to be doing excessive page ins.
Last edited by MensaWater; 04-10-2009 at 09:36 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.