The simplest way to fix this problem was using a live CD and the following commands:
1) boot into live CD
2) create a directory to mount the old linux on your hdd
sudo mkdir /mnt/temp3) mount it
sudo mount /dev/sda1 /mnt/tempfor i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt/temp$i; done4) copy the resolve.conf into the original ubuntu so that the apt-get will work in future commands
sudo cp /etc/resolv.conf /mnt/temp/etc/resolv.conf5) change the root directory to the newly created mount point
sudo chroot /mnt/temp6) now check if the kernel is already on your system. If not just install it
apt-get install linux6.1) do some cleaning in your system
apt-get autoclean7) if this still not works try to reinstall grub
apt-get clean
apt-get update
apt-get upgrade
apt-get install -f
dpkg --configure -a
apt-get purge grub grub-pc grub-common8) umount the whole stuff
apt-get install grub-common grub-pc
update-grub
for i in /dev/pts /dev /proc /sys / ; do sudo umount /mnt/temp$i ; done9) restart the system
Now it should boot into the actual linux kernel and your system is back!
No comments:
Post a Comment