I recently installed Ubuntu 10.04 on my MacBook. I have it running smoothly on here, but when I used the same disk to install Ubuntu on a friend's Dell Laptop it isn't working correctly.
After the installation process finished, he logged in and everything ran just fine. However when he shut the computer down and later turned it back on, he can't log on. He's using the same login information as before but he keeps getting an authorization failure. I've had him try using his short username and the full name but neither will work.
Is this a hardware problem because of his computer or did something go wrong with the installation?
Whatever the cause, resetting the password will most likely fix the problem.
You can reset your password using Live CD:
Boot from your Ubuntu Live CD, choosing “Try Ubuntu without any change to your computer” from the boot menu.
Once the system boots, open up a new Terminal and then type in the following command:
This command is used to tell what device name the hard drive is using, which in most cases should be /dev/sda1, but could be different on your system.
Note the device name having * under Boot column.
Now you’ll need to create a directory to mount the hard drive on.
Now mount the hard drive in the /media/dir folder.
Now chroot to the mounting point of your disk
Now you should be able to use the
passwd
command to change your user account’s passwordUnmount the disk and reboot.