You are not logged in.

#1 2010-05-22 00:08:30

lister
Member
Registered: 2010-02-10
Posts: 9

Windows 7 grub2 issue

I'm trying to use grub2 to boot both my Arch and Windows 7 installations.  Arch boots fine, but I receive an error trying to boot to windows.

Error:
error: no such device: b834a19934a15ae0
error: no such partition

Press any key to continue.......

Arch is installed on one drive and windows on another.  I installed os-prober and ran grub-mkconfig to generate the windows entry:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sdb1)" {
        insmod ntfs
        set root='(hd1,1)'
        search --no-floppy --fs-uuid --set b834a19934a15ae0
        chainloader +1
}


Here's the output of fdisk -l for the "windows" drive:
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x263f7bf6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdb2              13      121602   976657408    7  HPFS/NTFS


And here's the output of ls -l /dev/disk/by-uuid to get the partition's uuid
ls -l /dev/disk/by-uuid | grep sdb                                                           
lrwxrwxrwx 1 root root 10 May 21 17:46 22A0A3BBA0A393B7 -> ../../sdb2
lrwxrwxrwx 1 root root 10 May 21 17:46 B834A19934A15AE0 -> ../../sdb1

Offline

#2 2010-05-22 06:43:05

valnour
Member
From: Cleveland, TN, USA
Registered: 2008-02-17
Posts: 84
Website

Re: Windows 7 grub2 issue

I have not used Grub 2, so I might be speaking completely out of line here, and maybe I am missing something, but on my machine (with grub "classic") my setup looks exactly the same minus syntax and that line beginning with "search --no-floppy". Is that line completely necessary? What happens if you boot without that line?

Offline

#3 2010-05-22 06:51:42

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Windows 7 grub2 issue

Use makeactive

Put this on /etc/grub.d/40_custom

##windows
menuentry "Windows 7" {
        insmod ntfs
        set root='(hd1,1)'
        chainloader +1
        makeactive
}

and run

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

~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#4 2010-05-24 00:27:35

lister
Member
Registered: 2010-02-10
Posts: 9

Re: Windows 7 grub2 issue

Unfortunately that didn't work.  I get the same error as before with an additional line.

error:  unknown command 'makeactive'

Is there a package that needs to be installed to use makeactive?

Offline

#5 2010-05-24 03:30:24

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Windows 7 grub2 issue

How did you install grub2?


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#6 2010-05-24 04:28:41

Zack89
Member
Registered: 2008-09-24
Posts: 170

Re: Windows 7 grub2 issue

you shouldnt need the makeactive line.. only the chainloader +1 line and the root path of ur win7 partition. Wheres grub2 chillin at?


Registered User number: 496613. Show your Tux Pride!
http://counter.li.org

Offline

#7 2010-05-24 04:59:23

lister
Member
Registered: 2010-02-10
Posts: 9

Re: Windows 7 grub2 issue

I installed grub2 during installation of Arch from the 2nd most recent Archboot 2010.04-1.  Grub2 is installed to the MBR of a 200gb disk that Arch owns, while Windows 7 is installed on a 1tb drive.

Offline

#8 2010-05-26 01:51:52

lister
Member
Registered: 2010-02-10
Posts: 9

Re: Windows 7 grub2 issue

does anyone have any other ideas?  would it be benificial to down-grade to grub1?  Would that just be as simple as pacman -S grub?

Offline

#9 2010-05-26 02:07:33

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Windows 7 grub2 issue

lister wrote:

does anyone have any other ideas?  would it be benificial to down-grade to grub1?  Would that just be as simple as pacman -S grub?

Personally, I love Grub 0.97 and will probably never upgrade big_smile (Grub 2 is actually more of a downgrade in my opinion)

Offline

#10 2010-05-26 02:14:41

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Windows 7 grub2 issue

itsbrad212 wrote:
lister wrote:

does anyone have any other ideas?  would it be benificial to down-grade to grub1?  Would that just be as simple as pacman -S grub?

Personally, I love Grub 0.97 and will probably never upgrade big_smile (Grub 2 is actually more of a downgrade in my opinion)

Do tell us why it is a "downgrade". It is a great improvement!

@lister

Did you run a grub-install /dev/sda [where /dev/sda = mbr] after installing GRUB2 ?
You should never edit the file /boot/grub/grub.cfg but make changes in /etc/default/grub or /etc/grub.d/ ... files and run grub-mkconfig! Refer to grub2 wiki page for details. Even I used tpowa's grub2 from archboot and modified it to add themes and "add other os" option to it for ArchBang.


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#11 2010-05-26 02:38:14

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Windows 7 grub2 issue

sHyLoCk wrote:
itsbrad212 wrote:
lister wrote:

does anyone have any other ideas?  would it be benificial to down-grade to grub1?  Would that just be as simple as pacman -S grub?

Personally, I love Grub 0.97 and will probably never upgrade big_smile (Grub 2 is actually more of a downgrade in my opinion)

Do tell us why it is a "downgrade". It is a great improvement!

Well, it's just my opinion, but I don't like the layout of the files. Nothing else really. big_smile

EDIT: I also don't like the way grub.cfg is written.

Last edited by cesura (2010-05-26 02:40:23)

Offline

#12 2010-05-26 02:50:22

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Windows 7 grub2 issue

itsbrad212 wrote:
sHyLoCk wrote:
itsbrad212 wrote:

Personally, I love Grub 0.97 and will probably never upgrade big_smile (Grub 2 is actually more of a downgrade in my opinion)

Do tell us why it is a "downgrade". It is a great improvement!

Well, it's just my opinion, but I don't like the layout of the files. Nothing else really. big_smile

EDIT: I also don't like the way grub.cfg is written.

Lol, what don't you like about it? tongue It's properly structured, more modular, scripting support,etc. For more info: http://www.gnu.org/software/grub/grub-2.en.html
And it's not hard really to configure, just edit the grub config files in /etc and you're done.


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#13 2010-05-26 02:51:20

lister
Member
Registered: 2010-02-10
Posts: 9

Re: Windows 7 grub2 issue

grub2 is installed to the mbr yes.  It was done by the installer.  I did not edit the grub.cfg file directly, instead I placed my changes in /etc/grub.d/40_custom.  How would I go about "killing" grub2 and installing grub 0.97?

Offline

#14 2010-05-26 02:55:27

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: Windows 7 grub2 issue

In a nutshell: Just boot from a live cd. Mount your partitions. configure your network. chroot. use pacman -S grub and it will remove grub2. Don't forget to run grub-install.


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#15 2010-05-26 02:57:16

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: Windows 7 grub2 issue

sHyLoCk wrote:
itsbrad212 wrote:
sHyLoCk wrote:

Do tell us why it is a "downgrade". It is a great improvement!

Well, it's just my opinion, but I don't like the layout of the files. Nothing else really. big_smile

EDIT: I also don't like the way grub.cfg is written.

Lol, what don't you like about it? tongue It's properly structured, more modular, scripting support,etc. For more info: http://www.gnu.org/software/grub/grub-2.en.html
And it's not hard really to configure, just edit the grub config files in /etc and you're done.

I don't know. It's just "not my style". Obviously the GRUB team thought it was better so they implemented it, and I respect that choice, I just choose not to upgrade. Don't get me wrong, it's seems more powerful than GRUB 1, but for what I am doing (booting partitions and floppy disk images), there is simply no need to upgrade wink

Offline

Board footer

Powered by FluxBB