Re: Upgrading Windows on a Linux laptop

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

 



Am 11.05.2014 23:52, schrieb Timothy Murphy:
Klaus-Peter Schrage wrote:

http://fedoraproject.org/wiki/GRUB_2#Updating_GRUB_2_configuration_on_BIOS_systems

I'm not sure if I completely understood the advice in this URL,
or rather you would apply it, as you say, with a Live CD.

As I understand it, I boot my Live Fedora USB stick,
open a terminal window and type
   grub2-mkconfig -o /boot/grub2/grub.cfg

I presume this is after mounting the /boot partition on my machine,
so perhaps this should be (?)
   grub2-mkconfig -o /mnt/boot/grub2/grub.cfg

Then I say
   grub2-install /dev/sda
or should this be
   grub2-install --directory=/mnt /dev/sda
?

Sorry for having been a bit unspecific.
So I try to recall what I did after an installation of Windows 7 to the place (/dev/sda1) where XP had resided before (you can't upgrade from XP to 7, it has to be a fresh install). This installation resulted in a loss of the grub2 boot menue, because the windows installer had overritten the mbr. So:
1. Booted from a Fedora Live medium (in fact, a USB stick)
2. Chose "Troubleshooting", went directly to a console (not mounting
   anything on /mnt/sysimage, no chrooting)
3. As I had a seperate boot-partition on /dev/sda2, I gave:
	mount /dev/sda2 /boot
4. 	grub2-install /dev/sda
   (I didn't do grub2-mkconfig at this stage, that would not work
   properly, because the config files in /etc were not available).
5. Reboot

This gave me back the grub2 prompt with the option to boot into Fedora. I don't remember, if there was the an entry to boot into win7 ('Windows 7 (loader) (on /dev/sda1)', probably not, but now, from a running Fedora system, you can update the grub2 configuration by:
	grub2-mkconfig -o /boot/grub2/grub.cfg

HTH

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
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