Ubuntu 7.10 “gutsy” caveat: beware EVMS!

A small PSA: If you are upgrading Ubuntu to 7.10 “gutsy”, check to see if you have the “evms” package installed. If you do, and you have no knowledge of installing it and don’t know what it is, then you probably should remove it. The consequences of keeping it are a spew of system messages:

device-mapper: dm-linear: Device lookup failed
device-mapper: error adding target to table

Even worse, you may be unable to mount any partitions aside from /! That’s what happened to me. :-(

There are lots of people having these device-mapper errors. Some explanation is given in the “Volume activation” section of the EVMS FAQ.

If you run into the problem where you reboot and no longer have a /var partition, you should try preventing evms from starting at boot and rebooting. For example, you can do this:

mv /etc/rcS.d/S27evms /root
reboot

If your system doesn’t want to reboot, check for processes hung up on shutting down (I had to kill off something related to Alsa). If everything comes up fine, clean and purge:

mv /root/S27evms /etc/rcS.d
aptitude purge evms

Everything should be happy at this point. You can also clean up the junk that ended up in /var when your /var partition couldn’t be mounted. Just mount / to another place, clean and unmount. Thanks to Ross Cohen for telling me about multimount1.

  1. “Since Linux 2.4 a single filesystem can be visible at multiple mount points” –mount(2) man page.

2 Responses to “Ubuntu 7.10 “gutsy” caveat: beware EVMS!”

  1. mati says:

    you saved my life. Literally. Could you imagine what my dad would have done to me, if I wouldn’t have been able to fix this problem? The disc I couldnt mount contained 5 years of records for my dads company…

  2. brainsik says:

    @mati: Sounds like a good reminder to backup those files. ;-)

Leave a Reply