Chroot changes the root directory of your commands. As you want the installation to happen on your harddisc and not on the live cd.
Let us say, your first harddisc is sda, sda1 is the boot sector, windows is sda2 and ubuntu sda3. Then you do: sudo mount /dev/sda3 /mnt # Mount Ubuntu sudo mount /dev/sda1 /mnt/boot # Mount your Boot Partition sudo mount -o bind /dev /mnt/dev # Give access to some important files sudo mount -o bind /sys /mnt/sys sudo mount -t proc /proc /mnt/proc sudo cp /mnt/proc/mounts /mnt/etc/mtab sudo chroot /mnt /bin/bash # Chroot into the /mnt system sudo apt-get install grub2 # Should not be nessecarry, but do it anyway sudo grub-install /dev/sda # This should now install grub into the MBR (try sda1 if it is not working) If there are any errors try: sudo grub-install --recheck /dev/sdX Then update grub for your system sudo update-grub Leave the system: exit Hope, it is clear like this, and is working. Haven’t been in need to do this for some time. Janosch Am 18.06.2010 09:24, schrieb Reinier Battenberg: > Hi Janos, > > could you eleborate a bit more on > > chroot into your > Ubuntu filesystem and reinstall grub. > > i sort of lost you there, do you mean to open a shell and do > > sudo apt-get install grub > > or something more funky? > -- Janosch Maier <[email protected]> -- http://phynformatik.de This E-Mais is signed via GnuPG <http://gnupg.org/>. My public key: 0xEB21B1DE
signature.asc
Description: OpenPGP digital signature
_______________________________________________ LUG mailing list [email protected] http://kym.net/mailman/listinfo/lug LUG is generously hosted by INFOCOM http://www.infocom.co.ug/ All Archives can be found at http://www.mail-archive.com/[email protected]/ The above comments and data are owned by whoever posted them (including attachments if any). The List's Host is not responsible for them in any way. ---------------------------------------
