ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x527e0fd5
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2327 18691596 c W95 FAT32 (LBA)
/dev/sda2 2328 2434 859477+ 5 Extended
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x23a623a5
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 6708 53881978+ 7 HPFS/NTFS
/dev/sdb2 6709 6830 979965 82 Linux swap / Solaris
/dev/sdb3 6831 19457 101426377+ 83 Linux
ubuntu@ubuntu:~$ sudo mount /dev/sdb3 /mnt
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt /dev/sdb
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'.
(hd0) /dev/sda
(hd1) /dev/sdb
ubuntu@ubuntu:~$
takže zas nic....