BACKGROUND
I was upgrading to a new release of Ubuntu and switched the computer off half way through. I thought I'd fixed it, but the next time I turned it on the installation never completed the boot process, failing to connect to screen or input devices properly. I guess the symptoms may vary, but the solution may be pretty standard.
SOLUTION
- Make a bootable USB iso, and boot from it.
- Attach wired network connection
- Press CTRL-ALT-F1
- sudo fdisk -l /dev/sda and find your Linux partition - let's say it's /dev/sda5
- mount /dev/sda5 /mnt
- # mount the special filesystems:
- mount -o bind /proc /mnt/proc
- mount -o bind /dev /mnt/dev
- mount -o bind /sys /mnt/sys
- mount -o bind /dev/pts /mnt/dev/pts
- cp /mnt/etc/resolv.conf /mnt/etc/resolv.conf-original
- cp /etc/resolv.conf /mnt/etc/resolv.conf
- apt-get update
- apt-get dist-upgrade
Points to note.
- If ifconfig complains about missing /dev/net ... you haven't done (10)
- If copying the resolv.conf didn't work (name resolution is failing), exit from chroot, make sure the network is working with that wired connection, and copy the resolv.conf across again
No comments:
Post a Comment