Ask Your Question
0

fedora 22 with win 8.1 overrwritten grub2

asked 2015-10-26 11:40:13 -0500

DARK_SIDE gravatar image

updated 2015-10-31 21:08:41 -0500

mether gravatar image

hello, i have an odd issue.

i installed other distro on my second hard disk (main disk wasnt installed). soon after i installed 2nd distro i booted it, and it worked fine.
next i booted from drive with fedora and windows, and no grub was there- it was overwritten by windows. now im booting fedora from super grub pendrive, or from grub at second disk, but i want to use old, first grub(with second-windows dont boot).
my question is how to reinstall grub? i tried options that i foud on the internet but didnt worked.(for example. grub2-install /dev/sda; /dev/sda6(lvm partition with fedora)
as soon as i get home ill post some more info- like output of fdisk -l, or other if asked.

EDIT:

outupt of grub2-install /dev/sda:

Installing for i386-pc platform. grub2-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible. grub2-install: error: embedding is not possible, but this is required for cross-disk install.

fdisk -l:

[root@localhost liveuser]# fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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
Disklabel type: gpt
Disk identifier: F428C1C4-82E7-4066-842E-91B701C87D78


Device Start End Sectors Size Type
/dev/sda1 2048 2050047 2048000 1000M Windows recovery environment
/dev/sda2 2050048 2582527 532480 260M EFI System
/dev/sda3 2582528 4630527 2048000 1000M unknown
/dev/sda4 4630528 4892671 262144 128M Microsoft reserved
/dev/sda5 4892672 1333225471 1328332800 633.4G Microsoft basic data
/dev/sda6 1333225472 1857513471 524288000 250G Linux LVM
/dev/sda7 1857513472 1858435071 921600 450M Windows recovery environment
/dev/sda8 1858435072 1859151871 716800 350M Windows recovery environment
/dev/sda9 1859151872 1911580671 52428800 25G Microsoft basic data
/dev/sda10 1911580672 1953523711 41943040 20G Windows recovery environment


Disk /dev/sdb: 7.3 GiB, 7849115648 bytes, 15330304 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
Disklabel type: dos
Disk identifier: 0x7cde4ae3


Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 0 2795519 2795520 1.3G 0 Empty
/dev/sdb2 172 10307 10136 5M ef EFI (FAT-12/16/32)
/dev/sdb3 10388 50963 40576 19.8M 0 Empty



Disk /dev/loop0: 12 KiB, 12288 bytes, 24 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 /dev/loop1: 1.8 MiB, 1875968 bytes, 3664 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 /dev/loop2: 1.3 GiB, 1353179136 bytes, 2642928 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 /dev/loop3: 6 GiB, 6442450944 bytes, 12582912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector ...



(more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-10-26 20:51:50 -0500

lsatenstein gravatar image

You need to install the mbr entry that points to the /boot of Fedora22

To do that, use the livecd or the usb the command is grub2-install /dev/sda

It is not grub2-mkinstall

edit flag offensive delete link more

Comments

yes, i edited it, i didnt type mk, it was like you wrote

DARK_SIDE gravatar imageDARK_SIDE ( 2015-10-27 18:36:20 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2015-10-26 11:40:13 -0500

Seen: 235 times

Last updated: Oct 27 '15