Инсталиране на grub след инсталиране на Windows

Проблема е, че след като беше инсталиран Windows на двуоперационна система (т.е. GNU/Linux + Windows), windows премахва съществуващият grub. За целта ще го инсталираме на ново и всичко ще се оправи 🙂

Зареждане на някаква Live дистрибуция

с fdisk се вижда какви дялове има и какво има на тях:

fdisk -l

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xabababab

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   204802047   102297600    7  HPFS/NTFS/exFAT
/dev/sda3       204802048   208996351     2097152    6  FAT16
/dev/sda4       208996352  1465145343   628074496   83  Linux
За да се инсталира grub се изпълнява следното:

mount /dev/sda4 /mnt/
mount –bind /proc /mnt/proc
mount –bind /dev /mnt/dev
mount –bind /sys /mnt/sys
chroot  /mnt/
grub-install /dev/sda

За да не се случват тези грешки се изпълняват инструкциите по- горе 🙂

грешка 1: grub-probe: error: failed to get canonical path of /cow.

грешка 2: /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).

Категория:

Logged in as {{omniform_current_user_display_name}}. Edit your profile. Log out? Required fields are marked *

Your email address will not be published. Required fields are marked *

Comments are closed.

You must be logged in to post a comment.