Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have lvm2 volume with two logical partitions, root and swap. My fstab looks like this:

...
/dev/mapper/lvm-swap none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0

and crypttab:

...
cryptswap1 /dev/dm-0 /dev/urandom swap,cipher=aes-cbc-essiv:sha256

and lvdisplay:

dm-0 /dev/lvm/swap
dm-2 /dev/lvm/root

I understand that I have encrypted swap in my lvm-swap partition, am I right? But isn't this line in fstab unnecessary?:

/dev/mapper/lvm-swap none            swap    sw              0       0

It looks like my Ubuntu tries to mount two swap -partitions from same lvm -partition? Can I remove the line /dev/mapper/lvm-swap none swap sw 0 0 from fstab?

My swapon -s shows:

Filename                Type        Size    Used    Priority
/dev/mapper/cryptswap1                  partition   5074940 156 -1
share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.