Showing posts with label repair. Show all posts
Showing posts with label repair. Show all posts

Tuesday, 10 February 2015

[ubuntu] HOWTO repair Corrupt Partition? topic






Hello, i'm having this problem since 2 weeks ago. Whenever I open my netbook it will go direct to bios. I tried to format gparted but failed. it says partition is unallocated. Someone please help me. I don't know what to do. Thanks in advance - http://paste.ubuntu.com/10159124/






Sunday, 8 February 2015

GRUB repair topic






Having read about problems to restore GRUB I tried different methods.
Now I want to share the easiest and most secure way that realy works:

Boot from ubuntu install media.
Execute commands in terminal:

Solution for GPT partition table | EFI mode
(X=disk | Y=root partition | Z=EFI partition)

sudo mount /dev/sdXY /mnt
sudo mount /dev/sdXZ /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub

Solution for MSDOS partition table | MBR mode
(X=disk | Y=root partition)

sudo mount /dev/sdXY /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sdX