Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

System went to sleep, then asked for a password. I have tried every password I have ever used. Does ubuntu require something different. I loaded this two years ago, last summer. I do not remember, how do I get it back?

share|improve this question
Welcome to Ask Ubuntu! Could you be more specific about "System went to sleep"? Did you use the suspend-to-RAM (standby) feature and is it asking for a password in the screenlock? Or do you mean you haven't used this machine for two years and you need password recovery? – gertvdijk Jan 30 '13 at 22:09

I would boot from a System Rescue CD ( and mount your filesystem, chroot into it and then change the password.

This is done like so:

  1. Either run fdisk -l or blkid to identify which disk and partition is your root filesystem. I will assume it is /dev/sda5.

  2. Mount it with mount /dev/sda5 /mnt. Sometimes it might be necessary to specify which filesystem is used, for example mount -t ext4 /dev/sda5 /mnt.

  3. Then chroot into it, chroot /mnt. This is done so that the commands that follow is issued from within the filesystem root of your on-disk installation.

  4. Change the password with passwd chastain or any other user.

Note that there are many ways in which this procedure can go wrong. Refer to the excellent documentation at for how to handle LVM, etc.

share|improve this answer

Your Answer


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.