Cara Mengembalikan Grub yang Hilang, FileSystem yang Rusak dengan Boot-Repair
sekian
Reinstall / Recover GRUB from Ubuntu live CD / USB
This is the common problem which is faced, when you try for dual boot. Easily Recover / Re-Install Grub in Ubuntu using Boot-Repair from live cd / usb. Boot Repair is the simple graphical tool used to repair, restore or reinstall the grub bootloader on Ubuntu. Now this tools has been updated with some new features in advanced option, using boot- repair you can also restore the MBR on Windows.
Advertisements
On dual boot once you update your Ubuntu OS, Windows / Fedora will not be listed on your grub. After installing Windows / Fedora your Ubuntu will not boot anymore and its grub may be wiped out. To restore it follow the steps below
To Reinstall Grub
You need to have Ubuntu Live CD or Live USB. Normal session can be used to repair the grub. Boot using your Ubuntu Live CD or Live USB, while booting choose Try Ubuntu.
Advertisements
Once booted then open a terminal, and run the following command one by one to install the boot repair.
To add boot-repair to the repository
sudo add-apt-repository ppa:yannubuntu/boot-repair
To Update your repository
sudo apt-get update
To install boot-repair
sudo apt-get install -y boot-repair
Once Installation complete run boot-repair on terminal by typing the following command or select it by System->Aministration->Boot Repair.
boot-repair
NOTE: Update the Boot Repair if its newer version is available.
It will scan the System for few seconds and will show you the options Recommended repair and Create a BootInfo summary. By clicking the Recommended Repair it will start repair the grub. Check the screen shots below.
Once done click ok and restart your system, your grub should work now. If not run the boot-repair again using live cd / usb. Then follow the steps below.
Select the Advanced options, In Main options tab check whether the following options are selected or not. If not select it, the options are Reinstall Grub and unhide boot menu for 10 seconds. Check the screen shot below
Then select the GRUB locations tab and check the following options are selected or not. The options are OS to boot by default and place grub into, In “OS to boot by default” option choose the OS which you want to be default on boot. Then select the drive where you need to reinstall the grub in “place grub into” option and click apply. Check the screen shots below
Click ok and restart your System. To restore MBR Click Here.
Hope this will be helpful for you!!!
Tambahan :
Apabila kalian tidak mempunyai koneksi internet, kalian bisa menggunakan cara manual seperti berikut.
1. Pertama-tama booting-lah menggunakan LiveCD/LiveUSB Ubuntu.
2. Setelah masuk, bukalah terminal kemudian ketikkan perintah berikut :
Perhatikan baik-baik dimana letak partisi sistem Ubuntu kalian. Biasanya akan ditandai dengan lambang *pada bagian Boot. Pada contoh kali ini, partisi saya berada pada /dev/sda6 (lihat yang saya tandai merah diatas).
3. Setelah mendapatkan letak partisinya, sekarang barulah kalian ketikkan perintah-perintah berikut untuk menginstal GRUB nya :
nb: yang saya tandai merah, kalian ganti dengan nomor partisi kalian masing-masing.
Pastikan tidak ada pesan error ya!
4. Jika sudah sekarang coba restart komputer kalian, jika berhasil maka seharusnya tampilan GRUB sudah muncul kembali.
Tambahan :
Apabila kalian tidak mempunyai koneksi internet, kalian bisa menggunakan cara manual seperti berikut.
1. Pertama-tama booting-lah menggunakan LiveCD/LiveUSB Ubuntu.
2. Setelah masuk, bukalah terminal kemudian ketikkan perintah berikut :
$ sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa7554158
Device Boot Start End Blocks Id System
/dev/sda1 597489664 625141759 13826048 83 Linux
/dev/sda4 187 597488437 298744125+ 5 Extended
/dev/sda5 189 4096574 2048193 82 Linux swap / Solaris
/dev/sda6 * 4098048 33392969 14647461 83 Linux
/dev/sda7 33394688 597488437 282046875 83 Linux
Perhatikan baik-baik dimana letak partisi sistem Ubuntu kalian. Biasanya akan ditandai dengan lambang *pada bagian Boot. Pada contoh kali ini, partisi saya berada pada /dev/sda6 (lihat yang saya tandai merah diatas).
3. Setelah mendapatkan letak partisinya, sekarang barulah kalian ketikkan perintah-perintah berikut untuk menginstal GRUB nya :
$ sudo mount /dev/sda6 /mnt
$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /proc /mnt/proc
$ sudo mount --bind /sys /mnt/sys
$ sudo chroot /mnt
# update-grub
# grub-install /dev/sda
# grub-install --recheck /dev/sda
# exit
$ sudo umount /mnt/dev
$ sudo umount /mnt/proc
$ sudo umount /mnt/sys
$ sudo umount /mnt
nb: yang saya tandai merah, kalian ganti dengan nomor partisi kalian masing-masing.
Pastikan tidak ada pesan error ya!
4. Jika sudah sekarang coba restart komputer kalian, jika berhasil maka seharusnya tampilan GRUB sudah muncul kembali.
Semoga bermanfaat kawan :)
Tidak ada komentar:
Posting Komentar