Problem Dual boot windows 7 and karmic

Asked by forent

Im using Ubuntu Karmic and windows 7 32 bit. At first i was installing windows on C: drive, then the linux on L: drive. Windows OS seems look ok but after linux installation, windows is gone, no grub menu, it directly get into linux. Im using grub 2(1.97 beta 4). this is my boot info:

============================= Boot Info Summary: ==============================

 => Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
    in partition #1 for /boot/grub.
 => No boot loader is installed in the MBR of /dev/sdb
sda1: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows Vista/7
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System: Windows 7
    Boot files/dirs: /grub/grub.cfg /bootmgr /Boot/BCD
                       /Windows/System32/winload.exe /grldr
                       /boot/grub/core.img

sda2: _________________________________________________________________________

    File system: Extended Partition
    Boot sector type: -
    Boot sector info:

sda5: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows XP
    Boot sector info: According to the info in the boot sector, sda5 starts
                       at sector 63.
    Operating System:
    Boot files/dirs:

sda6: _________________________________________________________________________

    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System: Ubuntu 9.10
    Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda7: _________________________________________________________________________

    File system: swap
    Boot sector type: -
    Boot sector info:

sda8: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows XP
    Boot sector info: According to the info in the boot sector, sda8 starts
                       at sector 63.
    Operating System:
    Boot files/dirs:

sdb1: _________________________________________________________________________

    File system: vfat
    Boot sector type: Windows XP: Fat32
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0a9e0a9d

Partition Boot Start End Size Id System

/dev/sda1 * 63 83,521,934 83,521,872 7 HPFS/NTFS
/dev/sda2 83,521,935 312,560,639 229,038,705 f W95 Ext d (LBA)
/dev/sda5 102,398,373 204,796,619 102,398,247 7 HPFS/NTFS
/dev/sda6 83,522,061 101,498,669 17,976,609 83 Linux
/dev/sda7 101,498,733 102,398,309 899,577 82 Linux swap / Solaris
/dev/sda8 204,796,683 312,560,639 107,763,957 7 HPFS/NTFS

Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 4002 MB, 4002910208 bytes
32 heads, 63 sectors/track, 3878 cylinders, total 7818184 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x3b0349f2

Partition Boot Start End Size Id System

/dev/sdb1 63 7,818,047 7,817,985 b W95 FAT32

blkid -c /dev/null: ____________________________________________________________

sda1: UUID="60F06026F060049E" TYPE="ntfs"
sda5: UUID="6A603F3E603F1075" LABEL="Master" TYPE="ntfs"
sda6: UUID="2f155892-42f3-4fa3-a0f2-3ee91bf22ae6" TYPE="ext4"
sda7: UUID="f1fcf425-271c-4caa-8dcc-87842b81dbb7" TYPE="swap"
sda8: UUID="58D8C402D8C3DC7E" LABEL="Document" TYPE="ntfs"
sdb1: LABEL="KINGSTON" UUID="AC41-9DA7" TYPE="vfat"

=============================== "mount" output: ===============================

aufs on / type aufs (rw)
none on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
/dev/sr0 on /cdrom type iso9660 (rw)
/dev/loop0 on /rofs type squashfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sda6 on /mnt type ext4 (rw)
/proc on /mnt/proc type none (rw,bind)
/dev on /mnt/dev type none (rw,bind)
/sys on /mnt/sys type none (rw,bind)
/proc on /mnt/proc type none (rw,bind)
/dev on /mnt/dev type none (rw,bind)
/sys on /mnt/sys type none (rw,bind)
/dev/sdb1 on /media/KINGSTON type vfat (rw,nosuid,nodev,uhelper=devkit,uid=999,gid=999,shortname=mixed,dmask=0077,utf8=1,flush)
/dev/sda5 on /media/Master type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)

============================= sda1/grub/grub.cfg: =============================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=================== sda1: Location of files loaded by Grub: ===================

    .0GB: boot/grub/core.img
    .0GB: grub/grub.cfg

=========================== sda6/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 2f155892-42f3-4fa3-a0f2-3ee91bf22ae6
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
 set quiet=1
 insmod ext2
 set root=(hd0,6)
 search --no-floppy --fs-uuid --set 2f155892-42f3-4fa3-a0f2-3ee91bf22ae6
 linux /boot/vmlinuz-2.6.31-17-generic root=UUID=2f155892-42f3-4fa3-a0f2-3ee91bf22ae6 ro quiet splash
 initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
 insmod ext2
 set root=(hd0,6)
 search --no-floppy --fs-uuid --set 2f155892-42f3-4fa3-a0f2-3ee91bf22ae6
 linux /boot/vmlinuz-2.6.31-17-generic root=UUID=2f155892-42f3-4fa3-a0f2-3ee91bf22ae6 ro single
 initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
 set quiet=1
 insmod ext2
 set root=(hd0,6)
 search --no-floppy --fs-uuid --set 2f155892-42f3-4fa3-a0f2-3ee91bf22ae6
 linux /boot/vmlinuz-2.6.31-14-generic root=UUID=2f155892-42f3-4fa3-a0f2-3ee91bf22ae6 ro quiet splash
 initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
 insmod ext2
 set root=(hd0,6)
 search --no-floppy --fs-uuid --set 2f155892-42f3-4fa3-a0f2-3ee91bf22ae6
 linux /boot/vmlinuz-2.6.31-14-generic root=UUID=2f155892-42f3-4fa3-a0f2-3ee91bf22ae6 ro single
 initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
 linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
 linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda6/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda7 during installation
UUID=2f155892-42f3-4fa3-a0f2-3ee91bf22ae6 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda8 during installation
UUID=f1fcf425-271c-4caa-8dcc-87842b81dbb7 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

=================== sda6: Location of files loaded by Grub: ===================

  42.7GB: boot/grub/core.img
  42.7GB: boot/grub/grub.cfg
  42.7GB: boot/initrd.img-2.6.31-14-generic
  42.7GB: boot/initrd.img-2.6.31-17-generic
  42.7GB: boot/vmlinuz-2.6.31-14-generic
  42.7GB: boot/vmlinuz-2.6.31-17-generic
  42.7GB: initrd.img
  42.7GB: initrd.img.old
  42.7GB: vmlinuz
  42.7GB: vmlinuz.old

thanks a bunch before, i really need help..

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
forent
Solved:
Last query:
Last reply:
Revision history for this message
forent (forent) said :
#1

sorry my mistake, this is my true bootinfo:

============================= Boot Info Summary: ==============================

 => Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
    in partition #7 for /boot/grub.
 => Windows is installed in the MBR of /dev/sdc
sda1: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows Vista/7
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System: Windows 7
    Boot files/dirs: /menu.lst /bootmgr /Windows/System32/winload.exe
                       /grldr /boot/grub/core.img

sda2: _________________________________________________________________________

    File system: Extended Partition
    Boot sector type: -
    Boot sector info:

sda5: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows XP
    Boot sector info: According to the info in the boot sector, sda5 starts
                       at sector 63.
    Operating System:
    Boot files/dirs:

sda6: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows XP
    Boot sector info: According to the info in the boot sector, sda6 starts
                       at sector 63.
    Operating System:
    Boot files/dirs:

sda7: _________________________________________________________________________

    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System: Ubuntu 9.10
    Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda8: _________________________________________________________________________

    File system: swap
    Boot sector type: -
    Boot sector info:

sdc1: _________________________________________________________________________

    File system: vfat
    Boot sector type: Fat32
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files/dirs: /menu.lst /grldr /GRLDR

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0a9e0a9d

Partition Boot Start End Size Id System

/dev/sda1 * 63 83,521,934 83,521,872 7 HPFS/NTFS
/dev/sda2 83,521,935 312,560,639 229,038,705 f W95 Ext d (LBA)
/dev/sda5 102,398,373 204,796,619 102,398,247 7 HPFS/NTFS
/dev/sda6 204,796,683 312,560,639 107,763,957 7 HPFS/NTFS
/dev/sda7 83,522,061 101,498,669 17,976,609 83 Linux
/dev/sda8 101,498,733 102,398,309 899,577 82 Linux swap / Solaris

Drive: sdc ___________________ _____________________________________________________

Disk /dev/sdc: 500 MB, 500563968 bytes
255 heads, 63 sectors/track, 60 cylinders, total 977664 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0003cebb

Partition Boot Start End Size Id System

/dev/sdc1 * 63 977,663 977,601 c W95 FAT32 (LBA)

blkid -c /dev/null: ____________________________________________________________

sda1: UUID="60F06026F060049E" TYPE="ntfs"
sda5: UUID="6A603F3E603F1075" LABEL="Master" TYPE="ntfs"
sda6: UUID="58D8C402D8C3DC7E" LABEL="Document" TYPE="ntfs"
sda7: LABEL="Linux" UUID="dd97f370-31e6-46a3-b2f6-30f0256466b0" TYPE="ext4"
sda8: UUID="864220e6-6aa4-4fbd-a2a3-7240d290449e" TYPE="swap"
sdc1: LABEL="RIFKIWIJAYA" UUID="88FC-B128" TYPE="vfat"

=============================== "mount" output: ===============================

/dev/sda7 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/rifkiwijaya/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=rifkiwijaya)
/dev/sdc1 on /media/RIFKIWIJAYA type vfat (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)
/dev/sr1 on /media/Mobile Partner type iso9660 (ro,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
/dev/sda5 on /media/Master type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)

================================ sda1/menu.lst: ================================

timeout 60

default 0

title Boot from Hard Drive

rootnoverify (hd0,0)

chainloader (hd0,0)+1

title --------------------

root

title Start Hiren's BootCD

find --set-root /HBCD/boot.gz

map --mem /HBCD/boot.gz (fd0)

map --hook

chainloader (fd0)+1

rootnoverify (fd0)

map --floppies=1

boot

title Mini Windows Xp

find --set-root /HBCD/XPLOADER.BIN

chainloader /HBCD/XPLOADER.BIN

=================== sda1: Location of files loaded by Grub: ===================

    .0GB: boot/grub/core.img
    .0GB: menu.lst

=========================== sda7/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set dd97f370-31e6-46a3-b2f6-30f0256466b0
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
 set quiet=1
 insmod ext2
 set root=(hd0,7)
 search --no-floppy --fs-uuid --set dd97f370-31e6-46a3-b2f6-30f0256466b0
 linux /boot/vmlinuz-2.6.31-14-generic root=UUID=dd97f370-31e6-46a3-b2f6-30f0256466b0 ro quiet splash
 initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
 insmod ext2
 set root=(hd0,7)
 search --no-floppy --fs-uuid --set dd97f370-31e6-46a3-b2f6-30f0256466b0
 linux /boot/vmlinuz-2.6.31-14-generic root=UUID=dd97f370-31e6-46a3-b2f6-30f0256466b0 ro single
 initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/11_Windows ###
menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
}
### END /etc/grub.d/11_Windows ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
 linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
 linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda7/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda7 during installation
UUID=dd97f370-31e6-46a3-b2f6-30f0256466b0 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda8 during installation
UUID=864220e6-6aa4-4fbd-a2a3-7240d290449e none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

=================== sda7: Location of files loaded by Grub: ===================

  42.7GB: boot/grub/core.img
  42.7GB: boot/grub/grub.cfg
  42.7GB: boot/initrd.img-2.6.31-14-generic
  42.7GB: boot/vmlinuz-2.6.31-14-generic
  42.7GB: initrd.img
  42.7GB: vmlinuz

================================ sdc1/menu.lst: ================================

timeout 60

default 0

title Boot from Hard Drive

rootnoverify (hd0,0)

chainloader (hd0,0)+1

title --------------------

root

title Start Hiren's BootCD

find --set-root /HBCD/boot.gz

map --mem /HBCD/boot.gz (fd0)

map --hook

chainloader (fd0)+1

rootnoverify (fd0)

map --floppies=1

boot

title Mini Windows Xp

find --set-root /HBCD/XPLOADER.BIN

chainloader /HBCD/XPLOADER.BIN

=================== sdc1: Location of files loaded by Grub: ===================

    .0GB: menu.lst
=======Devices which don't seem to have a corresponding hard drive==============

sdb

Revision history for this message
forent (forent) said :
#2

sorry my mistake, this is my true bootinfo:

============================= Boot Info Summary: ==============================

 => Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
    in partition #7 for /boot/grub.
 => Windows is installed in the MBR of /dev/sdc
sda1: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows Vista/7
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System: Windows 7
    Boot files/dirs: /menu.lst /bootmgr /Windows/System32/winload.exe
                       /grldr /boot/grub/core.img

sda2: _________________________________________________________________________

    File system: Extended Partition
    Boot sector type: -
    Boot sector info:

sda5: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows XP
    Boot sector info: According to the info in the boot sector, sda5 starts
                       at sector 63.
    Operating System:
    Boot files/dirs:

sda6: _________________________________________________________________________

    File system: ntfs
    Boot sector type: Windows XP
    Boot sector info: According to the info in the boot sector, sda6 starts
                       at sector 63.
    Operating System:
    Boot files/dirs:

sda7: _________________________________________________________________________

    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System: Ubuntu 9.10
    Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda8: _________________________________________________________________________

    File system: swap
    Boot sector type: -
    Boot sector info:

sdc1: _________________________________________________________________________

    File system: vfat
    Boot sector type: Fat32
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files/dirs: /menu.lst /grldr /GRLDR

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0a9e0a9d

Partition Boot Start End Size Id System

/dev/sda1 * 63 83,521,934 83,521,872 7 HPFS/NTFS
/dev/sda2 83,521,935 312,560,639 229,038,705 f W95 Ext d (LBA)
/dev/sda5 102,398,373 204,796,619 102,398,247 7 HPFS/NTFS
/dev/sda6 204,796,683 312,560,639 107,763,957 7 HPFS/NTFS
/dev/sda7 83,522,061 101,498,669 17,976,609 83 Linux
/dev/sda8 101,498,733 102,398,309 899,577 82 Linux swap / Solaris

Drive: sdc ___________________ _____________________________________________________

Disk /dev/sdc: 500 MB, 500563968 bytes
255 heads, 63 sectors/track, 60 cylinders, total 977664 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0003cebb

Partition Boot Start End Size Id System

/dev/sdc1 * 63 977,663 977,601 c W95 FAT32 (LBA)

blkid -c /dev/null: ____________________________________________________________

sda1: UUID="60F06026F060049E" TYPE="ntfs"
sda5: UUID="6A603F3E603F1075" LABEL="Master" TYPE="ntfs"
sda6: UUID="58D8C402D8C3DC7E" LABEL="Document" TYPE="ntfs"
sda7: LABEL="Linux" UUID="dd97f370-31e6-46a3-b2f6-30f0256466b0" TYPE="ext4"
sda8: UUID="864220e6-6aa4-4fbd-a2a3-7240d290449e" TYPE="swap"
sdc1: LABEL="RIFKIWIJAYA" UUID="88FC-B128" TYPE="vfat"

=============================== "mount" output: ===============================

/dev/sda7 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/rifkiwijaya/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=rifkiwijaya)
/dev/sdc1 on /media/RIFKIWIJAYA type vfat (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)
/dev/sr1 on /media/Mobile Partner type iso9660 (ro,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
/dev/sda5 on /media/Master type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)

================================ sda1/menu.lst: ================================

timeout 60

default 0

title Boot from Hard Drive

rootnoverify (hd0,0)

chainloader (hd0,0)+1

title --------------------

root

title Start Hiren's BootCD

find --set-root /HBCD/boot.gz

map --mem /HBCD/boot.gz (fd0)

map --hook

chainloader (fd0)+1

rootnoverify (fd0)

map --floppies=1

boot

title Mini Windows Xp

find --set-root /HBCD/XPLOADER.BIN

chainloader /HBCD/XPLOADER.BIN

=================== sda1: Location of files loaded by Grub: ===================

    .0GB: boot/grub/core.img
    .0GB: menu.lst

=========================== sda7/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,7)
search --no-floppy --fs-uuid --set dd97f370-31e6-46a3-b2f6-30f0256466b0
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
 set quiet=1
 insmod ext2
 set root=(hd0,7)
 search --no-floppy --fs-uuid --set dd97f370-31e6-46a3-b2f6-30f0256466b0
 linux /boot/vmlinuz-2.6.31-14-generic root=UUID=dd97f370-31e6-46a3-b2f6-30f0256466b0 ro quiet splash
 initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
 insmod ext2
 set root=(hd0,7)
 search --no-floppy --fs-uuid --set dd97f370-31e6-46a3-b2f6-30f0256466b0
 linux /boot/vmlinuz-2.6.31-14-generic root=UUID=dd97f370-31e6-46a3-b2f6-30f0256466b0 ro single
 initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/11_Windows ###
menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
}
### END /etc/grub.d/11_Windows ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
 linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
 linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda7/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda7 during installation
UUID=dd97f370-31e6-46a3-b2f6-30f0256466b0 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda8 during installation
UUID=864220e6-6aa4-4fbd-a2a3-7240d290449e none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

=================== sda7: Location of files loaded by Grub: ===================

  42.7GB: boot/grub/core.img
  42.7GB: boot/grub/grub.cfg
  42.7GB: boot/initrd.img-2.6.31-14-generic
  42.7GB: boot/vmlinuz-2.6.31-14-generic
  42.7GB: initrd.img
  42.7GB: vmlinuz

================================ sdc1/menu.lst: ================================

timeout 60

default 0

title Boot from Hard Drive

rootnoverify (hd0,0)

chainloader (hd0,0)+1

title --------------------

root

title Start Hiren's BootCD

find --set-root /HBCD/boot.gz

map --mem /HBCD/boot.gz (fd0)

map --hook

chainloader (fd0)+1

rootnoverify (fd0)

map --floppies=1

boot

title Mini Windows Xp

find --set-root /HBCD/XPLOADER.BIN

chainloader /HBCD/XPLOADER.BIN

=================== sdc1: Location of files loaded by Grub: ===================

    .0GB: menu.lst
=======Devices which don't seem to have a corresponding hard drive==============

sdb

Revision history for this message
delance (olivier-delance) said :
#3

sda1 "menu.lst" has no entry for Windows. It is which is used.

You should add at end:

# This is a divider, added to separate the menu items below ones.
title Other operating systems:
root

# for a non-linux OS on /dev/sda1
title Windows
root (hd0,0)
savedefault
makeactive
chainloader +1

But if you have two hard disk, the best is to install "/boot" of Ubuntu on second hard disk, and to do a switch in grub.
It should be explained in english documentation of Ubuntu. This leave Windows partition unchanged.

Revision history for this message
forent (forent) said :
#4

yeah i see that, im frustrated and im installing both windows and linux. but very thanks for you. im googling and this is my result.
if you want ur windows to be detected by linux, you must format your drive using Gparted with linux live cd.format drive with NTFS, and start installing windows. after that install linux, it wont get any problem in your installation.
thanks to delance who answer my question, still have to learn much bout grub.