Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

After booting the live system you will to mount the internal HDD (mount /dev/sda1 /mnt/adirectorythatyouwillhavetocreatehere) and have change the root directory of the commands that you are issuing: sudo chroot /mnt/adirectorythatyouwillhavetocreatehere Otherwise, the commands will be applied to your livesystem (that also has a /boot). Did you do that? Try googling more about chroot or type man chroot)

Then you will have to re-generate a new configuration for grub based on your system before running the grub2-install command: sudo grub2-mkconfig -o /boot/grub2/grub.cfg. Then, run grub2-install --boot-directory=/boot /dev/sda Note: your drive may have another device name. Check for it with mount command output.

Here is a bit more information in Fedora's wiki.

After booting the live system you will to mount the internal HDD (mount /dev/sda1 /mnt/adirectorythatyouwillhavetocreatehere) and have change the root directory of the commands that you are issuing: sudo chroot /mnt/adirectorythatyouwillhavetocreatehere Otherwise, the commands will be applied to your livesystem (that also has a /boot). Did you do that? Try googling more about chroot or type man chroot)

Then you will have to re-generate a new configuration for grub based on your system before running the grub2-install command: sudo grub2-mkconfig -o /boot/grub2/grub.cfg. Then, run grub2-install --boot-directory=/boot /dev/sda Note: your drive may have another device name. Check for it with mount command output.

Here is a bit more information in Fedora's wiki.

EDIT: and exit takes you out of the new root environment, back to your live system.

After booting the live system you will to mount the internal HDD (mount /dev/sda1 /mnt/adirectorythatyouwillhavetocreatehere/mnt/adirectory) and have change the root directory of the commands that you are issuing: sudo chroot /mnt/adirectorythatyouwillhavetocreatehere/mnt/adirectory Otherwise, the commands will be applied to your livesystem (that also has a /boot). Did you do that? Try googling more about chroot or type man chroot)

Then you will have to re-generate a new configuration for grub based on your system before running the grub2-install command: sudo grub2-mkconfig -o /boot/grub2/grub.cfg. Then, run grub2-install --boot-directory=/boot --boot-directory=/mnt/adirectory/boot /dev/sda Note: your drive may have another device name. Check for it with mount command output.

Here is a bit more information in Fedora's wiki.

EDIT: and exit takes you out of the new root environment, back to your live system.

EDIT2: See also this Q/A here

After booting the live system you will to mount the internal HDD (mount /dev/sda1 /mnt/adirectory) and have change the root directory of the commands that you are issuing: sudo chroot /mnt/adirectory Otherwise, the commands will be applied to your livesystem (that also has a /boot). Did you do that? Try googling more about chroot or type man chroot)

Then you will have to re-generate a new configuration for grub based on your system before running the grub2-install command: sudo grub2-mkconfig -o /boot/grub2/grub.cfg. Then, run grub2-install --boot-directory=/mnt/adirectory/boot --boot-directory=/mnt/adirectory /dev/sda Note: your drive may have another device name. Check for it with mount command output.

Here is a bit more information in Fedora's wiki.

EDIT: and exit takes you out of the new root environment, back to your live system.

EDIT2: See also this Q/A here

After booting the live system you will The best would be to mount the internal HDD (mount /dev/sda1 /mnt/adirectory) and have change the root directory of the commands that you are issuing: sudo chroot /mnt/adirectory Otherwise, the commands will be applied to your livesystem (that also has a /boot). Did you do that? Try googling more about chroot or type man chroot)

Then you will have to re-generate a new configuration for grub based on your system before running the grub2-install command: sudo grub2-mkconfig -o /boot/grub2/grub.cfg. Then, run grub2-install --boot-directory=/mnt/adirectory /dev/sda Note: your drive may have another device name. Check for it with mount command output.

Here is a bit more information in Fedora's wikifollow these instructions here.

EDIT: and exit takes Another option is that you out of create a live system based on the new root environment, back to LIVE DVD that has an automated rescue system that will recover your live system.grub (and also detect win7 partition).

EDIT2: See also this Q/A here