You just reinstalled Windows on your dual boot computer and it removed Grub, now you can't access to your Linux (Ubuntu in my case)... Here is how to fix that :
Boot on a Linux live CD/DVD or USB Stick
Let's assume my harddisk will be called /dev/sda
Make yourself root :
sudo -s
List your patition to identify the one which contains your Linux system
fdisk -l /dev/sda
Create a folder and mount your Linux on it
mkdir /mnt/mylinux
mount /dev/sda1 /mnt/mylinux (where 1 is the partition number of your linux system I identified before)
Check if you recognize your system :
ls -l /mnt/mylinux
Now we have to bind sys, dev and proc
mount -o bind /dev /mnt/mylinux/dev
mount -o bind /sys /mnt/mylinux/sys
mount -o bind /proc /mnt/mylinux/proc
Chroot to your system by typing
chroot /mnt/mylinux /bin/sh
Reinstall Grub properly
grub-mkconfig > /boot/grub/grub.cfg (menu.lst is you are using old Grub)
grub-install /dev/sda
Done !
Unmount everything and reboot :)
exit
cd /
umount /mnt/mylinux/dev
umount /mnt/mylinux/sys
umount /mnt/mylinux/proc
umount /mnt/mylinux/
sync
reboot
Subscribe to:
Post Comments (Atom)
Popular posts
-
Yesterday I opened my brand new Pioneer VSX-921. The goal was to build a pre-out connector to connect a real amplifier : a Rotel RA-820A. ...
-
ffmpeg -i GOPR0459.MP4 -r 24 -vf "setpts=(10/1)*PTS" -vcodec libx264 -an GOPR0459_10.MP4
-
You want to drive a passive subwoofer or amplify your Hi-Fi system with real Bi-amplification? Then this little trick will explain you how ...
No comments:
Post a Comment