Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-01-2012, 09:29 AM
|
#1
|
LQ Newbie
Registered: Oct 2004
Posts: 7
Rep:
|
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 09:34 AM.
|
|
|
01-01-2012, 01:32 PM
|
#2
|
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Rep: 
|
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
|
|
|
01-01-2012, 02:04 PM
|
#3
|
Moderator
Registered: Mar 2008
Posts: 22,284
|
Chain load from grub to bcd.
|
|
|
01-01-2012, 04:20 PM
|
#4
|
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Rep: 
|
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!
|
|
|
01-01-2012, 09:15 PM
|
#5
|
LQ Newbie
Registered: Oct 2004
Posts: 7
Original Poster
Rep:
|
It's not that easy win7 says I have nothing to bcdedit.
|
|
|
01-02-2012, 11:26 AM
|
#6
|
Moderator
Registered: Mar 2008
Posts: 22,284
|
Cause grub overwrote the bcd?
|
|
|
01-02-2012, 09:29 PM
|
#7
|
LQ Newbie
Registered: Oct 2004
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
01-03-2012, 12:22 AM
|
#8
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,337
|
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.
|
All times are GMT -5. The time now is 08:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|