Får inte igång dual boot
Postat: 07 jul 2010, 22:37
Hej,
Har precis installerat Ubuntu 10.04 (första gången jag testar något Linux-OS) och Ubuntu funkar finfint. Dock får jag inte upp något alternativ för vilket OS jag vill boota till vid omstart. Jag trodde jag gjorde rätt för att få dual-boot vid installation (men så är tydligen inte fallet).
Så här såg det ut innan jag installerade Ubuntu:
Dator med 2 hårddiskar. Windows Vista installerad på den ena (c:\). Den andra (d:\) används bara som lagring.
Jag delade på d:\ i två partitioner och tänkte installera Ubuntu på den ena av dessa. Vid installationen måste jag ha knasat till det med hur den disken skall partitioneras för efter installationen av Ubuntu har jag nu 3 partitioner på denna disk.
Sedan kan jag inte boota till Windows längre. Jag får inte upp något alternativ för att välja OS. Om jag kollar i grub.cfg finns inte windows med som ett alternativ.
Min grub.cfg:
Jag körde boot-info och fick följande resultat:
Jag kan navigera runt på min windows-disk (c:\) från Ubuntu och öppna filer från den disken, så den är ju inte pajjad.
Vet någon hur jag kan få till så att jag kan välja vilket OS jag vill boota vid uppstart?
Tack på förhand!
/Calle
Har precis installerat Ubuntu 10.04 (första gången jag testar något Linux-OS) och Ubuntu funkar finfint. Dock får jag inte upp något alternativ för vilket OS jag vill boota till vid omstart. Jag trodde jag gjorde rätt för att få dual-boot vid installation (men så är tydligen inte fallet).
Så här såg det ut innan jag installerade Ubuntu:
Dator med 2 hårddiskar. Windows Vista installerad på den ena (c:\). Den andra (d:\) används bara som lagring.
Jag delade på d:\ i två partitioner och tänkte installera Ubuntu på den ena av dessa. Vid installationen måste jag ha knasat till det med hur den disken skall partitioneras för efter installationen av Ubuntu har jag nu 3 partitioner på denna disk.
Sedan kan jag inte boota till Windows längre. Jag får inte upp något alternativ för att välja OS. Om jag kollar i grub.cfg finns inte windows med som ett alternativ.
Min grub.cfg:
Kod: Markera allt
#
# 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 003dbbfb-6690-4042-ab4e-cf4d2be33470
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 003dbbfb-6690-4042-ab4e-cf4d2be33470
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-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 003dbbfb-6690-4042-ab4e-cf4d2be33470
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=003dbbfb-6690-4042-ab4e-cf4d2be33470 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-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 003dbbfb-6690-4042-ab4e-cf4d2be33470
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=003dbbfb-6690-4042-ab4e-cf4d2be33470 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-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 003dbbfb-6690-4042-ab4e-cf4d2be33470
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 003dbbfb-6690-4042-ab4e-cf4d2be33470
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 ###
Kod: Markera allt
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdb
sda1: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
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:
sda3: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda6: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows Vista
Boot files/dirs: /Windows/System32/winload.exe
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 122,093,999 122,093,937 83 Linux
/dev/sda2 122,094,000 302,697,771 180,603,772 7 HPFS/NTFS
/dev/sda3 302,698,494 488,396,799 185,698,306 5 Extended
/dev/sda5 302,698,496 480,751,615 178,053,120 83 Linux
/dev/sda6 480,753,664 488,396,799 7,643,136 82 Linux swap / Solaris
Drive: sdb ___________________ _____________________________________________________
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 2,048 488,394,751 488,392,704 7 HPFS/NTFS
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 467b7e87-afe3-441b-a34f-e43e3e939c63 ext4 Ubuntu
/dev/sda2 24677B7D5B7161AE ntfs Storage
/dev/sda3: PTTYPE="dos"
/dev/sda5 003dbbfb-6690-4042-ab4e-cf4d2be33470 ext4
/dev/sda6 038474ad-d29c-4b2e-adb9-28d05e963e96 swap
/dev/sda: PTTYPE="dos"
/dev/sdb1 228E30C68E30946F ntfs System
/dev/sdb: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda5 / ext4 (rw,errors=remount-ro)
/dev/sr0 /media/Disk_1 udf (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,umask=0077)
/dev/sdb1 /media/System fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda2 /media/Storage fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda1 /media/Ubuntu ext4 (rw,nosuid,nodev,uhelper=udisks)
=========================== 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 003dbbfb-6690-4042-ab4e-cf4d2be33470
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 003dbbfb-6690-4042-ab4e-cf4d2be33470
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-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 003dbbfb-6690-4042-ab4e-cf4d2be33470
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=003dbbfb-6690-4042-ab4e-cf4d2be33470 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-21-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 003dbbfb-6690-4042-ab4e-cf4d2be33470
echo 'Loading Linux 2.6.32-21-generic ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=003dbbfb-6690-4042-ab4e-cf4d2be33470 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-21-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 003dbbfb-6690-4042-ab4e-cf4d2be33470
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 003dbbfb-6690-4042-ab4e-cf4d2be33470
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 ###
=============================== 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=003dbbfb-6690-4042-ab4e-cf4d2be33470 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=038474ad-d29c-4b2e-adb9-28d05e963e96 none swap sw 0 0
=================== sda5: Location of files loaded by Grub: ===================
157.2GB: boot/grub/core.img
213.3GB: boot/grub/grub.cfg
157.2GB: boot/initrd.img-2.6.32-21-generic
157.2GB: boot/vmlinuz-2.6.32-21-generic
157.2GB: initrd.img
157.2GB: vmlinuz
Vet någon hur jag kan få till så att jag kan välja vilket OS jag vill boota vid uppstart?
Tack på förhand!
/Calle