LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 01-01-2012, 08:29 AM   #1
aljones15
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
Using Grub for BCD commands in Win7


Hey Folks,

Have a dual boot desktop with gentoo and windows.
I have a small problem, in windows I am running a number of games and need to allocate virtual memory to them. In order to do this I have to use bcdedit, but I believe that because I am using grub there are no bcd files in my windows installation. I get the error file not found when I try. Is there a way to do this with grub?

this is the command that I need to execute
C:\ bcdedit /set increaseuserva 2500

Is there a way to tell grub to pass this to windows on boot?
BTW am I correct that grub replaces bcd on a dual boot system?

Last edited by aljones15; 01-01-2012 at 08:34 AM.
 
Old 01-01-2012, 12:32 PM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

You're correct - there is only *one* "Master Boot Record".

Typically, you install Windows Vista/Win7 first, install Linux afterward, and allow Grub(2) to select Windows or Linux at boot time. Grub replaces the Vista bootloader, but "everything works". This is exactly how I have all my dual-boot systems configured (I've have XP, Vista, Server 2008, Win7, Grub and Grub2).

*However* - I've never needed to fiddle with bcdedit on a dual boot system.

Here are links that allows *both* Grub2 and the Win7 bootloader to *coexist* (each on a different partition):

http://www.iceflatline.com/2009/09/h...using-bcdedit/

http://my.opera.com/Wutske/blog/2009...nstead-of-grub
 
Old 01-01-2012, 01:04 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
Chain load from grub to bcd.
 
Old 01-01-2012, 03:20 PM   #4
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Actually, this is probably the easiest solution: just run bcedit from Windows.

Code:
EXAMPLE: c:\windows\system32\bcdedit /set increaseuserva 2500  c:\boot\BCD
Look here:
http://technet.microsoft.com/en-us/l...8WS.10%29.aspx

1. "BCD" is the boot database, stored in XXX:\boot\BCD (where "XXX:" is your boot drive)

2. This is true regardless of whether you're booting via grub or BCD. The BCD file is there for any viable Vista/Server 2008/Win7 install.

3. "Bcedit" the BCD database, and you've set your configuration.

Voila. It should really be as easy as that!

'Hope that helps!
 
Old 01-01-2012, 08:15 PM   #5
aljones15
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
It's not that easy win7 says I have nothing to bcdedit.
 
Old 01-02-2012, 10:26 AM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
Cause grub overwrote the bcd?
 
Old 01-02-2012, 08:29 PM   #7
aljones15
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Yeah not sure if that's what happened, but I did have to reinstall grub after installing windows hence there does seem to be a conflict between the two.
 
Old 01-02-2012, 11:22 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,803

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
This isn't making a lot (any) sense. The BCD is in the NTFS filesystem. Nothing to do with grub - unless you happened to (incorrectly) install grub into that partition. In which case Win7 wouldn't boot at all, so it appears you didn't do that.
You need to be admin to run bcdedit - try it from the install DVD (recovery centre).
Quote:
I get the error file not found when I try.
Let's see the (entire) message.
 
1 members found this post helpful.
Old 01-03-2012, 09:06 PM   #9
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
Might use easybcd to fix it. http://en.wikipedia.org/wiki/EasyBCD

See down the page to linux.
 
  


Reply

Tags
gentoo, grub, win7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Chainloading GRUB from Win7 TheStarLion Linux - Software 4 04-13-2011 09:19 AM
Grub 2 deleted after reinstalling Win7 auroraborealis Linux - Newbie 1 02-04-2011 03:24 PM
Grub - Have XP and Ubuntu, want to add Win7 scoob8000 Linux - Newbie 9 06-14-2010 07:54 PM
[SOLVED] No GRUB bootscreen after mint4win install on Win7 Leon14344 Linux Mint 4 09-08-2009 10:39 PM
Behringer BCD 2000 fleamour Linux - Desktop 0 01-15-2007 06:07 PM


All times are GMT -5. The time now is 07:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration