LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-03-2015, 11:08 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post How can I Fix Grub after Installing Windows 7?


Hello.
I installed Ubuntu 14.4 LTS and after it installed Windows 7 but my Ubuntu Can't booted , When I installed Ubuntu, I specify 200MB partition for Linux boot. How can I Fix it?

Thank you.
 
Old 05-03-2015, 11:23 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
https://help.ubuntu.com/community/Re...tallingWindows
 
Old 05-04-2015, 08:33 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
I use below commands :

mount /dev/sda7 /mnt
grub-install --root-directory=/mnt/ /dev/sda

but I see a command like below too :

grub-install --boot-directory=/mnt/ /dev/sda

Which one is correct? my boot partition is "sda7".


Thank you.
 
Old 05-04-2015, 08:40 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
When I used "grub-install --root-directory=/mnt/ /dev/sda" and reboot the system, It show me a Grub menu with a Black screen but when I used "grub-install --boot-directory=/mnt/ /dev/sda" , Problem solved.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fix grub boot loader after installing windows xp alaios Ubuntu 2 07-23-2008 09:58 AM
how to fix GRUB after reinstall windows xp dual boot ctdarksilver Ubuntu 2 05-06-2007 10:35 PM
Grub killed Windows XP! How can I fix it? TimeGoneBomb Linux - General 3 12-27-2005 02:42 PM
How to fix GRUB after reformatting Windows? X-Crawler Linux - General 1 05-29-2004 10:18 AM
grub or windows error and how to fix netquest1 General 2 04-30-2004 02:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration