You are not logged in.
Pages: 1
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
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?
Happy Hacking!
Twitter: http://twitter.com/bobbyrburden/
Website: http://codebutcher.com/
Offline
Offline
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
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
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
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
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 (Grub 2 is actually more of a downgrade in my opinion)
Offline
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 (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.
Offline
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 (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.
EDIT: I also don't like the way grub.cfg is written.
Last edited by cesura (2010-05-26 02:40:23)
Offline
sHyLoCk wrote:itsbrad212 wrote:Personally, I love Grub 0.97 and will probably never upgrade (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.
EDIT: I also don't like the way grub.cfg is written.
Lol, what don't you like about it? 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.
Offline
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
Offline
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.
EDIT: I also don't like the way grub.cfg is written.
Lol, what don't you like about it? 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
Offline
Pages: 1