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.

My computer shutdown because of critical temperature reached. I was upgrading my Ubuntu 11.04 to 11.10. Now, Ubuntu is not starting up.

share|improve this question
    
Is there some sort of error message when you boot ? –  bodhi.zazen Jan 25 '12 at 16:13

1 Answer 1

up vote 2 down vote accepted

Basically you need to run a LiveCD to boot and use chroot to fix things.

  1. Get yourself a Ubuntu LiveCD
  2. Boot from it
  3. Mount broken partition:

    mount /dev/sdXX /mnt
    
  4. Mount virtual filesystems:

    mount --bind /dev /mnt/dev
    mount --bind /proc /mnt/proc
    mount --bind /sys /mnt/sys
    
  5. chroot to the mounted filesystem:

    mount --bind /usr/ /mnt/usr 
    chroot /mnt
    

Now you are 'inside' your normal partition and all commands you run are from that partition, same goes for the modifications! So you can fix your installation now.

Normally you can continue/fix a failed apt-get using:

apt-get install -f

You might want to rerun:

apt-get dist-upgrade

Depending on your problem (eg apt-get itself is broken due to the interrupted upgrade) you might to run some other commands in your chroot-ed environment as well. If you do not succeed you need to provide more details.

share|improve this answer
    
Thanks. It works. –  hrishikeshp19 Jan 25 '12 at 18:33

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.