This method of installation uses the chroot command to gain access to the broken system's files. Once the chroot command is issued, the LiveCD treats the broken system's / as its own.
Commands run in a chroot environment will affect the broken systems filesystems and not those of the LiveCD.
sudo fdisk -l
df -Th. Look for the correct disk size and ext3 or ext4 format.
sudo mount /dev/sdXX /mnt # Example: sudo mount /dev/sda1 /mnt
sudo mount /dev/sdYY /mnt/boot
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
update-grub
grub-install /dev/sdX
sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt/boot
sudo umount /mnt/usr
sudo umount /mnt
sudo reboot
| Attribute(s): | Public | |||
| Created: | 02.02.2012 11:53 | Total Views: | 307 | |
| Last Changed: | 05.04.2013 12:57 | Total Changes: | 4 |
Δt = 0.065574884414673s