You are not logged in.
Pages: 1
Hi!
I've been running Arch for some time now on my laptop, and wanted to get it going on my desktop computer, which was (is) running Windows 7. I followed the guide on the wiki and searched for the problems that occured, but didn't make any progress. After installing grub2 and running the grub-mkconfig. This is how my grub.cfg looks like now:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
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,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 9bd81756-d741-46bd-8604-5c542ff1125e
else
search --no-floppy --fs-uuid --set=root 9bd81756-d741-46bd-8604-5c542ff1125e
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=sv_SE
insmod gettext
fi
terminal_input console
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, med Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-9bd81756-d741-46bd-8604-5c542ff1125e' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 9bd81756-d741-46bd-8604-5c542ff1125e
else
search --no-floppy --fs-uuid --set=root 9bd81756-d741-46bd-8604-5c542ff1125e
fi
echo 'Läser in Linux core repo kernel ...'
linux /boot/vmlinuz-linux root=UUID=9bd81756-d741-46bd-8604-5c542ff1125e ro quiet
echo 'Läser in initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-9bd81756-d741-46bd-8604-5c542ff1125e' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 9bd81756-d741-46bd-8604-5c542ff1125e
else
search --no-floppy --fs-uuid --set=root 9bd81756-d741-46bd-8604-5c542ff1125e
fi
echo 'Läser in Linux core repo kernel ...'
linux /boot/vmlinuz-linux root=UUID=9bd81756-d741-46bd-8604-5c542ff1125e ro quiet
echo 'Läser in initial ramdisk ...'
initrd /boot/initramfs-linux-fallback.img
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### 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.
#Windows 7
menuentry "Windows 7" {
set root="(hd0,1)"
chainloader +1
}
### 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/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###I'm quite new to this stuff, but when I'm trying to boot Windows 7, it comes back with this:
error: invalid signatureI've tried various different things. Sometimes the error above returns, and sometimes this:
BOOTMGR is missingAny help is appriciated!
Offline
Odd that os-prober didn't add the entry for you... do you have it installed? I too got odd errors when attempting to dual boot ages ago on a system at work. My memory is that allowing os-prober to make the grub.cfg fixed it. Please try and report back.
Offline
You could try os-prober to make the cfg for you.
BOOTMGR missing is usually the error you get when referring to a wrong partition without Windows installed on it, or by not pointing to the correct Windows boot partition.
Last edited by robin007bond (2013-07-22 22:13:07)
Offline
I have os-prober installed and when I run it this returns:
No volume groups foundHowever, it didn't return this a few hours ago when I ran it in the grub-mkconfig. Back then it return some stuff about the file formats (mostly ext4 and ntfs) and that there was some kind of error with those.
Offline
Don't run os-prober separately. Rerun grub-mkconfig and post the output here. Post the output and not your interpretation or summary of it.
Since it may produce a lot of output, you might want to install wgetpaste first which can be used to paste stuff publicly from the command line.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
wgetpaste
How on earth do I use this? It might be me just being stupid, but please explain.
Offline
wgetpaste -hBut basically, direct the output from mkconfig to a file
grub-mkconfig -o /boot/grub/grub.cfg > grub.out 2>&1
wgetpaste grub.outAnd then paste the url it gives you here.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
EDIT: changed system language...
Last edited by Rydberg95 (2013-07-22 23:30:52)
Offline
Strange, if you don't care about os-prober, you can just manually add the entry. Should probably look like this:
menuentry 'Windows 7 (loader) (on /dev/sda1)' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 ***UUID***
else
search --no-floppy --fs-uuid --set=root ***UUID***
fi
chainloader +1
}Offline
Hmm, how do I get the UUID for the windows partition? If I recall correctly I did have some kind of bootloader (where I could choose Windows 7 or a deleted Ubuntu). I think this bootloader is it's own partition; sda1 from what I can see (it's 100M). This may have some effect of the settings, right?
Offline
https://wiki.archlinux.org/index.php/Gr … S-MBR_mode
This article on the wiki shows how to do it manually, I hope it works.
i3wm / urxvt / luakit
Offline
I have os-prober installed and when I run it this returns:
No volume groups foundHowever, it didn't return this a few hours ago when I ran it in the grub-mkconfig. Back then it return some stuff about the file formats (mostly ext4 and ntfs) and that there was some kind of error with those.
Could be wrong, but I suspect you are using dynamic volumes in Windows 7 (check in Windows: Control Panel > Administrative Tools > Computer Management > Disc Management for current volume type). You probably need to convert to basic disc type in Windows 7. I had to do this once to be able to install Fedora. Unfortunately this is not a trivial undertaking.
Offline
Hmm, how do I get the UUID for the windows partition? If I recall correctly I did have some kind of bootloader (where I could choose Windows 7 or a deleted Ubuntu). I think this bootloader is it's own partition; sda1 from what I can see (it's 100M). This may have some effect of the settings, right?
https://wiki.archlinux.org/index.php/Pe … ice_naming
If I recall correctly, you have to direct it to the boot partition. If it doesn't work, try the other.
Offline
Pages: 1