galanh |
08-20-2010 12:50 PM |
dual boot Window7 or Ubuntu 10.04.1
Hi
Still I am trying to install dual boot in my Dell Studio.
I did a fresh installation of Window7 and after that I installed
Ubuntu 10.04.1 again.
Advanced Grub installation, at installation page 7/8, offered me
only these options for boot loader:
/dev/sda disk
/dev/sda1 Dell
/dev/sda2 Window
/dev/sda3 Window
It did not offer me Linux partions (why?).
I choose /dev/dsa1 to avoid installing Grub 2 in Window partition.
The installation finished, but now the machine boot directly
in Window7. Grub 2 panel did not appear.
The window7 installation is running, my target now is to fix
Ubuntu boot with grub2 or grub-legacy. I need help. :)
My status is given with the help of the following script:
Code:
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Windows is installed in the MBR of /dev/sda
sda1: _________________________________________________________________________
File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 528343456 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sda2: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /Boot/BCD
sda3: _________________________________________________________________________
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:
sda4: _________________________________________________________________________
File system: Extended Partition
Boot sector type: Unknown
Boot sector info:
sda5: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.1 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda6: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 63 80,324 80,262 de Dell Utility
/dev/sda2 * 81,920 30,801,919 30,720,000 7 HPFS/NTFS
/dev/sda3 30,801,920 519,674,187 488,872,268 7 HPFS/NTFS
/dev/sda4 519,675,902 976,773,119 457,097,218 5 Extended
/dev/sda5 519,675,904 958,162,943 438,487,040 83 Linux
/dev/sda6 958,164,992 976,773,119 18,608,128 82 Linux swap / Solaris
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 2CB8-B8FE vfat
/dev/sda2 B608BCD408BC94B9 ntfs RECOVERY
/dev/sda3 04B6C054B6C0483E ntfs OS
/dev/sda4: PTTYPE="dos"
/dev/sda5 2807d44a-6a9b-4ae9-b6ec-494dea02134d ext4
/dev/sda6 9d236d3a-455e-4535-8c88-ed1d5eb98099 swap
/dev/sda: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)
=========================== sda5/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 $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 2807d44a-6a9b-4ae9-b6ec-494dea02134d
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
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 2807d44a-6a9b-4ae9-b6ec-494dea02134d
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
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/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 2807d44a-6a9b-4ae9-b6ec-494dea02134d
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=2807d44a-6a9b-4ae9-b6ec-494dea02134d ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 2807d44a-6a9b-4ae9-b6ec-494dea02134d
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=2807d44a-6a9b-4ae9-b6ec-494dea02134d ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 2807d44a-6a9b-4ae9-b6ec-494dea02134d
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 2807d44a-6a9b-4ae9-b6ec-494dea02134d
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set b608bcd408bc94b9
chainloader +1
}
### 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 ###
=============================== sda5/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 nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=2807d44a-6a9b-4ae9-b6ec-494dea02134d / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=9d236d3a-455e-4535-8c88-ed1d5eb98099 none swap sw 0 0
=================== sda5: Location of files loaded by Grub: ===================
270.5GB: boot/grub/core.img
298.4GB: boot/grub/grub.cfg
270.5GB: boot/initrd.img-2.6.32-24-generic
270.5GB: boot/vmlinuz-2.6.32-24-generic
270.5GB: initrd.img
270.5GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================
Unknown BootLoader on sda4
00000000 f9 65 cb 1f 90 15 1b f5 6e b7 97 7b f7 35 dc 05 |.e......n..{.5..|
00000010 fe b9 cf 44 a7 b8 1e a4 45 bf 6c 6b fe 9a d8 0b |...D....E.lk....|
00000020 b7 69 56 4e f0 8e c2 a7 f7 79 5a 2e 2d 7c 95 f7 |.iVN.....yZ.-|..|
00000030 c6 be 7c 45 a7 95 5e 1a bf bf b1 f5 07 69 e2 0e |..|E..^......i..|
00000040 90 a0 52 7c ef 7c 6d d5 a7 e7 fe 61 44 31 73 fd |..R|.|m....aD1s.|
00000050 a7 a7 71 83 b2 62 b1 36 85 23 21 71 21 a2 df 67 |..q..b.6.#!q!..g|
00000060 5c 9e 11 a2 b8 b5 bb 80 59 8c 15 8d 91 d3 3f 25 |\.......Y.....?%|
00000070 3f 0e 92 bb ea b9 7a bf 3e 0c ea ea cf ee 6d 5e |?.....z.>.....m^|
00000080 f3 cd 08 e7 8e 33 5c 32 68 6c 4e ea 8a 7d d9 1e |.....3\2hlN..}..|
00000090 a6 e5 44 33 85 50 0b bd 07 91 da 1b 3f 7b 41 9c |..D3.P......?{A.|
000000a0 3c 42 24 c8 a8 b3 46 2d d9 db cd 57 61 59 7f 2f |<B$...F-...WaY./|
000000b0 63 8e d7 49 dc d6 d2 42 8c b7 c2 a1 47 2e 68 34 |c..I...B....G.h4|
000000c0 d3 26 53 0a 2d 0b 33 51 bd 09 e5 6f 45 d8 9c 8d |.&S.-.3Q...oE...|
000000d0 66 9a 25 65 3b 27 38 78 fa c1 23 3c de 64 90 45 |f.%e;'8x..#<.d.E|
000000e0 cf fb 70 b7 0d 31 4c b6 a2 c7 3d be 83 07 f6 f7 |..p..1L...=.....|
000000f0 30 df d6 4e b3 7d e7 78 1b 8b 25 72 fa f2 3c de |0..N.}.x..%r..<.|
00000100 32 c5 ec cc 68 1d dd 35 f2 ee 58 e4 6f 97 bc 1a |2...h..5..X.o...|
00000110 d6 1c 11 34 f2 f0 5f f1 8c 27 74 72 88 8f f9 dd |...4.._..'tr....|
00000120 e5 b7 6f 87 d9 97 3e 64 30 8a 54 2a 0a 5f 6a 8e |..o...>d0.T*._j.|
00000130 cd c3 82 13 53 d2 92 6e 3c 76 ff 46 ea 03 2b 7e |....S..n<v.F..+~|
00000140 9d de cf e1 60 1b 63 c3 d9 9c bb c8 30 e8 af 50 |....`.c.....0..P|
00000150 ee 78 07 56 16 8c 19 32 23 f3 7c 06 6d b5 34 17 |.x.V...2#.|.m.4.|
00000160 b9 c9 27 28 89 04 b4 93 ff e8 32 56 94 a4 77 49 |..'(......2V..wI|
00000170 26 a5 c9 96 46 2e f3 bc 77 4a 4b 73 f4 aa a2 5a |&...F...wJKs...Z|
00000180 5f 31 57 b7 be ed 8e 0f 43 db 7e 68 13 32 ce d0 |_1W.....C.~h.2..|
00000190 dc 64 0b d2 41 fd 78 4b 46 af 8e 5c 73 d7 d3 27 |.d..A.xKF..\s..'|
000001a0 2f a5 f9 f2 8c 74 4b 14 2c 8a f9 62 ab 92 ff 9a |/....tK.,..b....|
000001b0 4f 66 b8 3d 65 32 dd fb 4e eb 96 ec ee 66 00 fe |Of.=e2..N....f..|
000001c0 ff ff 83 fe ff ff 02 00 00 00 00 c8 22 1a 00 fe |............"...|
000001d0 ff ff 05 fe ff ff 3d cf 22 1a c5 f0 1b 01 00 00 |......=.".......|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
|