hi,
i have a lenovo s430.
i have SSD msata and a sata.
i would like to install win (7 or 8) on msata and linux (suse 12.3) on another ssd drive.
i suppose grub 2 should be installed on the ssd, 2 entry will be available?
any tips?
thanks
hi,
i have a lenovo s430.
i have SSD msata and a sata.
i would like to install win (7 or 8) on msata and linux (suse 12.3) on another ssd drive.
i suppose grub 2 should be installed on the ssd, 2 entry will be available?
any tips?
thanks
On Thu, 28 Feb 2013 21:46:02 +0000, collinm wrote:
> i suppose grub 2 should be installed on the ssd, 2 entry will be
> available?
>
> any tips?
You might check today’s announcement about RC2, as it talks about the
status of UEFI support.
Jim
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
If you plan to install windows 8 along with openSUSE have a look at
Linux and Windows 8: Fast Startup puts data at risk - The H Open: News and Features
Grub 2 efi has to be installed within the EFI partition …
I’ve installed 12.3 RC2 with UEFI. That went pretty well. As another responder says, you will actually be using grub2-efi.
I did use a separate disk for opensuse.
After I had finished the install, a reboot took me to the grub menu. The only entries on the grub menu were for booting opensuse. There was no Windows choice.
It seems that os-prober is not currently working with UEFI. This seems to be a work in progress.
I could still get to Windows, but I had to choose that at the BIOS prompt (on my box, F12 while booting gets a prompt). I’m currently looking at another discussion thread on this problem, so that I can come up with a manual change to the grub menu.
o/s prober has worked fine for me and automatically added a windows boot entry to the grub2-efi menu. might be worth going into yast and checking the bootloader section to see if you have a tick in the ‘foreign system’ box
Yes, that box is checked. But it is not finding Windows 8.
Well the manual way to add an entry is:
open a terminal window and switch to root
then run:
os-prober
my entry is:
opensuse:/home/garry # os-prober No volume groups found
/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
then run:
opensuse:/home/garry # blkid/dev/sda1: UUID="9AD85337D85310BD" TYPE="ntfs"
/dev/sda4: UUID="58A7-C6C4" TYPE="vfat"
/dev/sda2: UUID="6453-92F3" TYPE="vfat"
/dev/sda5: LABEL="System" UUID="A2F61C7DF61C53BF" TYPE="ntfs"
/dev/sda6: LABEL="DATA" UUID="DFA8-AD5C" TYPE="vfat"
/dev/sda7: LABEL="Videos" UUID="1836E0A936E08958" TYPE="ntfs"
/dev/sda8: LABEL="CONFIG" UUID="DFF1-8CAD" TYPE="vfat"
/dev/sda9: LABEL="Recover" UUID="488CA9B28CA99AC8" TYPE="ntfs"
/dev/sda10: UUID="b5b1749a-eb50-4cdc-83cd-fc575cb9de51" TYPE="swap"
/dev/sda11: UUID="1a1d72af-8649-48a8-b29f-b0ba150cfcec" TYPE="ext4"
The first bit tells me that my EFI bootloader is on sda2 and the secound bit tells me that the magic number is 6453-92F3.
The code to add to the bootloader (which is at root/boot/grub2-efi/grub.cfg) is:
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-6453-92F3' { insmod part_gpt
insmod fat
set root='hd0,gpt2'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 6453-92F3
else
search --no-floppy --fs-uuid --set=root 6453-92F3
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
As you will see you need to add your own magic number from following the first steps. Just for completeness I have shown the whole of my grub.cfg file below:
## DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-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="${saved_entry}"
if x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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 load_video {
if x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11 --hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11 1a1d72af-8649-48a8-b29f-b0ba150cfcec
else
search --no-floppy --fs-uuid --set=root 1a1d72af-8649-48a8-b29f-b0ba150cfcec
fi
font="/usr/share/grub2/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_GB
insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11 --hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11 1a1d72af-8649-48a8-b29f-b0ba150cfcec
else
search --no-floppy --fs-uuid --set=root 1a1d72af-8649-48a8-b29f-b0ba150cfcec
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
insmod png
set theme=($root)/boot/grub2/themes/openSUSE/theme.txt
export theme
if x${boot_once} = xtrue ]; then
set timeout=0
elif sleep --interruptible 0 ; then
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE 12.3' --class 'opensuse-12-3' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-1a1d72af-8649-48a8-b29f-b0ba150cfcec' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11 --hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11 1a1d72af-8649-48a8-b29f-b0ba150cfcec
else
search --no-floppy --fs-uuid --set=root 1a1d72af-8649-48a8-b29f-b0ba150cfcec
fi
echo 'Loading Linux 3.7.10-1.1-desktop ...'
linux /boot/vmlinuz-3.7.10-1.1-desktop root=UUID=1a1d72af-8649-48a8-b29f-b0ba150cfcec resume=/dev/disk/by-id/ata-ST1000DM003-9YN162_S1D6H459-part10 splash=silent quiet showopts
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.7.10-1.1-desktop
}
submenu 'Advanced options for openSUSE 12.3' $menuentry_id_option 'gnulinux-advanced-1a1d72af-8649-48a8-b29f-b0ba150cfcec' {
menuentry 'openSUSE 12.3, with Linux 3.7.10-1.1-desktop' --class 'opensuse-12-3' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.7.10-1.1-desktop-advanced-1a1d72af-8649-48a8-b29f-b0ba150cfcec' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11 --hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11 1a1d72af-8649-48a8-b29f-b0ba150cfcec
else
search --no-floppy --fs-uuid --set=root 1a1d72af-8649-48a8-b29f-b0ba150cfcec
fi
echo 'Loading Linux 3.7.10-1.1-desktop ...'
linux /boot/vmlinuz-3.7.10-1.1-desktop root=UUID=1a1d72af-8649-48a8-b29f-b0ba150cfcec resume=/dev/disk/by-id/ata-ST1000DM003-9YN162_S1D6H459-part10 splash=silent quiet showopts
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.7.10-1.1-desktop
}
menuentry 'openSUSE 12.3, with Linux 3.7.10-1.1-desktop (recovery mode)' --class 'opensuse-12-3' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.7.10-1.1-desktop-recovery-1a1d72af-8649-48a8-b29f-b0ba150cfcec' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt11'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt11 --hint-efi=hd0,gpt11 --hint-baremetal=ahci0,gpt11 1a1d72af-8649-48a8-b29f-b0ba150cfcec
else
search --no-floppy --fs-uuid --set=root 1a1d72af-8649-48a8-b29f-b0ba150cfcec
fi
echo 'Loading Linux 3.7.10-1.1-desktop ...'
linux /boot/vmlinuz-3.7.10-1.1-desktop root=UUID=1a1d72af-8649-48a8-b29f-b0ba150cfcec showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.7.10-1.1-desktop
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-6453-92F3' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 6453-92F3
else
search --no-floppy --fs-uuid --set=root 6453-92F3
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### 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 ###
### BEGIN /etc/grub.d/41_custom ###
if -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
Must add that you use the steps at your own risk and if you make a mistake it can bugger up your system.
That gives no output.
However, if I first mount “/dev/sda1” (the efi partition from the windows drive), then os-prober provides output. So, with that partition still mounted, I ran “grub2-mkconfig” and it automatically generated an entry.
I haven’t tested it yet. I’ll do that on the next reboot.
did it work for you?
Yes, it worked.
Thanks.
that seem ok if linux and windows don’t use same hd and linux partitions are not installed on fat
Is it still the case with 12.3 final? If yes, you should open bug report.
It is working properly with 12.3 final (thanks for fixing it).