Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 10-09-2011
Member
 
Join Date: Aug 2011
Posts: 315
Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

Hello Friends I just have tried installing Ubuntu 9.10 and I was expecting that I can go for a dual boot from with windows 7. I just don?t know how to fix it so I need the help from your side when I tried to boot to my windows 7 I get a message showing me the error that it was an invalid signature. I outlined this is as the only booting choice is chainloader +1. I am looking for somehow edit the grub.cfg by my own for adding it in the boot options or else I have to manually type them in every time I want to boot to windows 7. I observed that I will have to have the rights from root. Can You guys tell me that How do I should I be login as root to fix my subject.
Reply With Quote
  #2  
Old 10-09-2011
Member
 
Join Date: Nov 2009
Posts: 1,269
Re: Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

I think you don?t have to login as a root do the following :
1. Press the key ALT+F2
2. Followed by the command gksudo gedit <path/to/filename.ext>
Reply With Quote
  #3  
Old 10-09-2011
Member
 
Join Date: Aug 2011
Posts: 315
Re: Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

OK! But When I am doing that it is telling sending me to home/(username)/boot/grub/ for I don?t know what reason . Sorry But I am a bit na?ve in case of Ubuntu
Reply With Quote
  #4  
Old 10-09-2011
Member
 
Join Date: Nov 2009
Posts: 1,269
Re: Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

I think you will have to do one thing please check if it helps you. I guess it will.
You just need to put a / before boot/grub so that it will be enabled to read the gksudo gedit /boot/grub/grub.cfg
Reply With Quote
  #5  
Old 10-09-2011
Member
 
Join Date: Aug 2011
Posts: 315
Re: Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

the same problem I am having again. It is not allowing me to save and it just keeps on saying that it is read only.
Reply With Quote
  #6  
Old 10-09-2011
Member
 
Join Date: May 2008
Posts: 1,020
Re: Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

Well I would say that If the new grub has just been installed you should not be editing the grub.cfg. There are multiple no of files that get their place in the into grub.cfg on each update or your when you create a modification you try running the update. In my opinion All youshall be doing is that you have to locate the windows is: sudo update-grub This will allow osprober that discover further operating system and updates and modification you have made to it to gksudo gedit /etc/default/grub Which is obviously a fresh file that is like the comment region in old menu.lst. The Grub 2 Guide (which was formerly known as Grub 2 basics) If prober does not put a right entry in then the thing you can do is you can duplicate your access to 40_custom, try editing that and then try running the update. You can turn off the osprober to stop duplicate entry in /etc/default/grub with the entry GRUB_DISABLE_OS_PROBER="true"
Reply With Quote
  #7  
Old 10-09-2011
Member
 
Join Date: Aug 2011
Posts: 315
Re: Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

I just don?t understand then Why the hell does google and the other sites keep on giving the directions on editing the grub.cfg and not what you are suggesting? It's very annoying. Anyways kindly do let me try this let me see if it can help.
Reply With Quote
  #8  
Old 10-09-2011
Member
 
Join Date: Nov 2009
Posts: 681
Re: Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

OSprober jus don?t simply add the correct parameters for windows 7. It only makes an account for chainloader +1. I think that I am sure to a fare extent that this will be solving it. I can add them directly when I boot through GRUB but they won't save. So far I am presuming that this is the only possible solution for the way to fix this.
Reply With Quote
  #9  
Old 12-09-2011
Member
 
Join Date: Apr 2009
Posts: 967
Re: Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

Well Guys thats fine but there some point which is to be noted before you can go for the same:
? You must be having a firm, established backup process for all your data.
? You must be possessing the tools and the information to rapidly recover from disasters. This includes being able to restore a prior system image, fix broken configurations, restore the bootloaders, and more.
? You must be confident in what you are doing
Reply With Quote
  #10  
Old 15-01-2012
phantom309
 
Posts: n/a
Re: Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

$ sudo -s

Will get you into root.
Reply With Quote
  #11  
Old 15-01-2012
phantom309
 
Posts: n/a
Re: Need help on editing grub.cfg for dual boot with windows 7: Ubuntu.

I have a dual boot, dual disk system. Windows 7 one drive and Ubuntu 12.04 on another. I manualy booted through my Bios to get to Ubuntu after update. Then in Terminal, I used;

$ sudo add-get-repository ppa:yannubuntu/boot-repair && sudo apt-get update

Then

$ sudo apt-get install -y boot-repair && boot-repair

A boot repair pain will pop up and use "Recommended repair" button
(repairs most frequent problems)

You should get the Grub during boot... Select what OS you want...

Hope this can be useful...
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Need help on editing grub.cfg for dual boot with windows 7: Ubuntu."
Thread Thread Starter Forum Replies Last Post
Windows 7 boot messed up by grub after installing ubuntu with rEFIt on MacBook pro Jaques Strapp Operating Systems 9 25-01-2012 01:04 PM
Grub not working on dual boot of Ubuntu 12.04 LTS/11.10 Olivia Operating Systems 12 15-01-2012 07:20 AM
Dual boot with windows 7 using GNU GRUB Vance Operating Systems 6 24-06-2011 02:18 PM
Windows & over Ubuntu for dual boot? X-Man Operating Systems 3 17-03-2009 03:03 PM
Getting back a Vista boot after removing Linux (dual-boot GRUB menu) Rob Vista Help 2 19-05-2008 12:11 AM


All times are GMT +5.5. The time now is 05:01 AM.