![]() | 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.
![]() | 2 | No.2 Revision |
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.
![]() | 3 | No.3 Revision |
After booting the live system you will to mount the internal HDD (mount /dev/sda1
) and have change the root directory of the commands that you are issuing: /mnt/adirectorythatyouwillhavetocreatehere/mnt/adirectorysudo chroot
Otherwise, the commands will be applied to your livesystem (that also has a /boot). Did you do that? Try googling more about /mnt/adirectorythatyouwillhavetocreatehere/mnt/adirectorychroot
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
Note: your drive may have another device name. Check for it with --boot-directory=/boot --boot-directory=/mnt/adirectory/boot /dev/sdamount
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
![]() | 4 | No.4 Revision |
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
Note: your drive may have another device name. Check for it with --boot-directory=/mnt/adirectory/boot --boot-directory=/mnt/adirectory /dev/sdamount
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
![]() | 5 | No.5 Revision |
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 Another option is that you exit
takes 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