sudo grub-install --root-directory ?
Asked by
YannUbuntu
Dear all,
If I boot on a live-CD, then enter in a terminal the following commands:
sudo mount /dev/sda1 /mnt
sudo grub-install --root-
sudo umount /mnt
..does it install Grub-pc in /dev/sda1 ? even if Grub was already installed in /dev/sda1 ?
Furthermore, are the 3 above commands equivalent to the below ones ?
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount -t proc /proc /mnt/proc
sudo chroot /mnt
sudo grub-install /dev/sda
exit
sudo umount /mnt/dev /mnt/proc /mnt/sys
sudo umount /mnt
Thanks in advance for your answers.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu grub2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask YannUbuntu for more information if necessary.
To post a message you must log in.