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.

Having recently run through EnableHibernateWithEncryptedSwap, I now get 3 separate 'Disk doesn't contain a valid partition table' when I run sudo fdisk -l:

Disk /dev/mapper/ubuntu--t10194-root doesn't contain a valid partition table  <br/>
Disk /dev/mapper/ubuntu--t10194-swap_1 doesn't contain a valid partition table  <br/>
Disk /dev/mapper/cryptswap1 doesn't contain a valid partition table

Output of sudo swapon --all --verbose:

swapon on /dev/mapper/ubuntu--t10194-swap_1  <br/>
swapon: /dev/mapper/ubuntu--t10194-swap_1: read swap header failed: Invalid argument

How can I get rid of the 3 separate 'doesn't contain a valid partition table' errors?

share|improve this question

1 Answer 1

/dev/mapper/* are usually LVM2 or DM volumes. They mostly don't and shouldn't contain partition tables - you can safely ignore these warnings.

Your swap partition seems to be /dev/mapper/cryptswap1 which again, is an LVM2 or DM volume.

You can verify swap partitions being used by your system by running cat /proc/swaps and if what you expect is there, you can safely ignore those warnings.

PS. what does your /etc/fstab look like?

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.