Re: Grub2 fails to install to the MBR of /dev/sdb [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/13/2012 08:17 PM, Itamar Reis Peixoto wrote:

On Jan 13, 2012 10:29 PM, "Lester M Petrie" <lmpetrie@xxxxxxxxxxxxx
<mailto:lmpetrie@xxxxxxxxxxxxx>> wrote:
............................>
cp -a /boot /root
umount /boot

Fdisk cfdisk parted gparted etc

After created mount it again and

Cp -a /root/boot /

Grub install now

And youre done


OK, what I did, and a couple of steps that I should have done

#cp -a /boot /root

#umount /boot

#gparted
> delete /dev/sdb3 (/boot, physically 1st partiton on disk)
> create a new /dev/sdb3 (starts at 1Mib by default)
> turn on boot flag for new partition
> quit

#cp -a /root/boot /

#grub2-install /dev/sdb

At this point there are 2 more steps I should have done

#grub2-mkconfig -o /boot/grub2/grub.cfg

edit /etc/fstab to replace the UUID for mounting /boot

Somewhere in what I did or had to do in rescue mode messed up the SELinux labeling, and one of the reboots relabeled. Overall it should have been about a 10 minute procedure, but it took me about an hour. If the partition that had to be shrunk was not boot, but something larger, backing it up and restoring it might be more difficult and time consuming.

--
Lester M Petrie
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux