Ask Your Question
1

Restoring GRUB2 after windows installation with root on LVM

asked 2017-11-23 12:12:46 -0600

iteDarkn gravatar image

I have been stuck for a day now trying to get GRUB2 to work, followed many tutorials sadly almost all of them were based on Ubuntu and keep getting stuck at the very end when I have to fill in the "sudo update-grub # now update grub" command, I know fedora doesn't support it but the equivelant of it does nothing..

I have BIOS, I am using the live cd with Fedora 26. I have seen several suggestions that its easier to do when you use the 4gig DVD ISO instead but I want to learn how to do it this way. Here is I think relevant info about my ssd drive :

fdisk -l :

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 303683583 303681536 144.8G 7 HPFS/NTFS/exFAT
/dev/sda2 303683584 305780735 2097152 1G 83 Linux
/dev/sda3 305780736 488396799 182616064 87.1G 8e Linux LVM




Disk /dev/mapper/fedora-root: 35.1 GiB, 37660655616 bytes, 73555968 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/mapper/fedora-swap: 12 GiB, 12884901888 bytes, 25165824 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/mapper/fedora-home: 40 GiB, 42949672960 bytes, 83886080 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/sdb: 3.8 GiB, 4012900352 bytes, 7837696 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: 0x004f9c01

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 7837695 7835648 3.8G c W95 FAT32 (LBA)


Disk /dev/loop0: 1.3 GiB, 1419264000 bytes, 2772000 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: 6 GiB, 6444548096 bytes, 12587008 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: 512 MiB, 536870912 bytes, 1048576 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/mapper/live-rw: 6 GiB, 6444548096 bytes, 12587008 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/mapper/live-base: 6 GiB, 6444548096 bytes, 12587008 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

pvdisplay :

File descriptor 29 (/dev/rfkill) leaked on pvdisplay invocation. Parent PID 2488: bash 
--- Physical volume --- 
PV Name /dev ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-23 23:17:05 -0600

florian gravatar image

Here are possible steps

  1. Boot a Fedora live system (there is no DVD image, just get the Workstation Live image)
  2. Unlock your LVM volumes (nautilus or Disks or CLI or ...) 2b. mount your Fedora installation
  3. Use the chroot method to access the root file system and
  4. reinstall grub

  5. and 2. should be straightforward and 3. and 4. have been described many times on the internet, including Fedora Wiki and ask.fedora.

Let us know any specific questions.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-11-23 12:12:46 -0600

Seen: 63 times

Last updated: Nov 23 '17