You are not logged in.

#1 2012-02-24 16:14:00

javipas
Member
Registered: 2012-02-24
Posts: 2

No Windows access in my dual-boot system, grub misconfigured

I usually work with Windows and several Linux distributions, and from time to time I have had problems with GRUB configs. Those problems dissapeared mostly with GRUB2, but when I've tried to install Arch Linux (my first time to test Arch native, not in a VM) I've found myself without easy access to my Windows system, which I prefer for some tasks (and games).

I've tried to follow the Arch wiki guidelines for dual boot configurations (https://wiki.archlinux.org/index.php/Wi … _Dual_Boot) and according to my current system configuration, I should just add these lines to my grub configuration file, the traditional /boot/grub/menu.lst:

title Windows7
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
# makeactive #I use W7
chainloader +1

But these don't work, and I thought they shoud. My config is as follows:

/dev/sda -> old disk I still use for several data partitions
/dev/sdb -> SSD with:
                  /dev/sdb1 -> Windows
                  /dev/sdb2 -> /boot
                  /dev/sdb4 -> /
                  /dev/sdb5 -> swap
/dev/sdc -> more data partitions on another HDD

Maybe my fault is installing grub on /dev/sda, something that maybe I should change, but I guess there is some trick that could make it work modifying that lines. Maybe the map ones, I'm not sure.

Any ideas?

Offline

#2 2012-02-24 16:29:26

Oxyd
Member
From: Czech Republic
Registered: 2008-01-17
Posts: 167

Re: No Windows access in my dual-boot system, grub misconfigured

Since you remapped (hd0) ↔ (hd1), shouldn't that be rootnoverify (hd0,0), instead of (hd1,0)?

If that fails, I'd try removing the remapping and then using rootnoverify (hd1,0).

Also you can try entering the GRUB shell (when the thing boots, not from your running Arch), and try to boot Windows “manually” – type in the rootnoverify and chainloader +1 commands – at the shell you'll have the advantage of tab completion which can hint you at what the correct partition is.

Offline

#3 2012-02-24 20:41:07

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: No Windows access in my dual-boot system, grub misconfigured

I have Windows set up on sdb2 (second partition of the second disk), and it's Windows XP, mind you - which absolutely hates not being the 1st drive, 1st partition (yeah, suck it, Microsoft!). The only thing is that I have GRUB 2 installed, not GRUB Legacy.

Here's my /etc/grub.d/11_Windows file:
(you may wanna substitute the "XP" part with "7", it works just as well)

#! /bin/sh -e
echo "Adding Windows XP..." >&2
cat << EOF
menuentry "Windows XP" {
set root=(hd0,2)     «— (hd0,1) in your case. Remember, GRUB 2 counts partitions starting from 1.
chainloader +1
}
EOF

All that's left is generating a grub.cfg and that's it.

# sudo grub-mkconfig -o /boot/grub/grub.cfg

Last edited by DSpider (2012-03-04 12:47:54)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#4 2012-02-24 22:10:32

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 466

Re: No Windows access in my dual-boot system, grub misconfigured

i think  only one map is needed.

look in man grub.

and i whuld install grub on the second disk.

ezik

Offline

#5 2012-02-26 09:31:29

akspecs
Member
Registered: 2012-02-11
Posts: 179

Re: No Windows access in my dual-boot system, grub misconfigured

I reccomend installing os-prober if you haven't. 
>pacman -S os-prober

run the program once for fun to see if and how it works.  once you're done with that run this:

>GRUB_PREFIX="/boot/grub" grub-mkconfig -o /boot/grub/grub.cfg

that should generate the a config file and automatically put in the correct information regarding the windows partition(s) - and other OS's for that matter.

If you still have problems, consult the grub2 wiki which is actually very helpful if you're trying to make your grub2 do some fun tricks.  If you're stuck with that, or if windows appears to still be unbootable I would ask you what partition scheme you're hard drives are using.

https://wiki.archlinux.org/index.php/GR … onfig_file

Offline

#6 2012-03-04 11:53:36

javipas
Member
Registered: 2012-02-24
Posts: 2

Re: No Windows access in my dual-boot system, grub misconfigured

Thanks for the suggestions: I was in a hurry so I installed Ubuntu 12.04 (a daily cd) and the install process solved all the issues with a GRUB 2 menu that was OK for booting Arch, Windows and Linux. I feel more comfy with Ubuntu right now, and I'm starting to use Arch, but I supposed grub wouldn't give me that problems.

Anyway, I had spare space on my hdd so I finally did this and this way I can also test the latest Ubuntu from time to time.

Thanks for your help!!

Offline

Board footer

Powered by FluxBB