ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 4748 7422030 83 Linux
/dev/sda3 4749 4844 771120 82 Linux swap / Solaris
/dev/sda4 4845 30401 205286602+ f W95 Ext'd (LBA)
/dev/sda5 4845 17592 102398278+ 7 HPFS/NTFS
/dev/sda6 17593 27782 81851143+ 7 HPFS/NTFS
/dev/sda7 27783 30401 21037086 83 Linux
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda3 / ext3 defaults,errors=remount-ro 0 1
/dev/sda1 /mnt/C ntfs defaults,nls=utf8,umask=000,gid=46 0 1
/dev/sda5 /mnt/D ntfs defaults,nls=utf8,umask=000,gid=46 0 1
/dev/sda6 /mnt/E ntfs defaults,nls=utf8,umask=000,gid=46 0 1
/dev/sda7 /backup ext3 defaults 0 2
/dev/sda4 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
root@ubuntu:/# grub-install --debug /dev/sda
+ case "$host_os" in
+ bootdir=/boot
+ grubdir=/boot/grub
+ device_map=/boot/grub/device.map
+ set //sbin/grub dummy
+ test -f //sbin/grub
+ :
+ test -f //lib/grub/i386-pc/stage1
+ :
+ test -f //lib/grub/i386-pc/stage2
+ :
+ test -d /boot
+ test -d /boot/grub
+ test no = yes
+ test -f /boot/grub/device.map
+ :
++ sed -n '/^([fh]d[0-9]*)/s/\(^(.*)\).*/\1/p' /boot/grub/device.map
++ sort
++ uniq -d
++ sed -n 1p
+ tmp=
+ test -n ''
+ case "$install_device" in
++ resolve_symlink /dev/sda
++ tmp_fname=/dev/sda
++ test -L /dev/sda
++ echo /dev/sda
+ install_device=/dev/sda
++ convert /dev/sda
++ test -e /dev/sda
++ echo '/dev/sda: Not found or not a block device.'
/dev/sda: Not found or not a block device.
++ exit 1
+ install_drive=
+ test x = x
+ exit 1