sudo mount /dev/sdxy /mnt
....siis esim. /dev/sda5
sudo mount --bind /dev /mnt/dev
sudo chroot /mnt
grub-install /dev/sdx
....siis esim /dev/sda
Ctrl D
sudo umount /mnt/dev
sudo umount /mnt
/\
I
I
Siis tuota en tajua..
Ja tälläisen antaa fdisk -l komennolla:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x98d8b106
Device Boot Start End Blocks Id System
/dev/sda1 * 1 61015 490101963+ 7 HPFS/NTFS
/dev/sda2 71452 77826 51198976 7 HPFS/NTFS
/dev/sda3 61016 71451 83827170 5 Extended
/dev/sda5 61016 71020 80365131 83 Linux
/dev/sda6 71021 71451 3461976 82 Linux swap / Solaris
Partition table entries are not in disk order