Nee dat lukt ook niet. Als ik dat allemaal gedaan heb zie je het volgende:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8825172f
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1835 14739606 83 Linux
/dev/sda2 1836 1959 996030 82 Linux swap / Solaris
/dev/sda4 1960 4870 23382607+ 83 Linux
ubuntu@ubuntu:~$ sudo mount /dev/sda4 /mnt
ubuntu@ubuntu:~$ ls /mnt
boot lost+found marianne
ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt/boot
ubuntu@ubuntu:~$ ls /mnt/boot
bin dev home initrd.img.old media proc selinux tmp vmlinuz
boot etc initrd lib mnt root srv usr vmlinuz.old
cdrom grub initrd.img lost+found opt sbin sys var
ubuntu@ubuntu:~$ sudo grub-install /dev/sda --root-directory=/mnt
Due to a bug in xfs_freeze, the following command might produce a segmentation
fault when /mnt/boot/grub is not in an XFS filesystem. This error is harmless and
can be ignored.
xfs_freeze: specified file ["/mnt/boot/grub"] is not on an XFS filesystem
Installation finished. No error reported.
This is the contents of the device map /mnt/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/sda
ubuntu@ubuntu:~$
En dat lijkt dus helemaal nergens naar. Als ik vervolgens opstart, blijft Grub weer met dezelfde BASH melding komen.
Ik word hier helemaal gek van! Ben nu al een paar uur bezig en het schiet niet op!