LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-28-2015, 08:39 AM   #1
Vlad_Dohotaru
LQ Newbie
 
Registered: Jan 2015
Posts: 7

Rep: Reputation: Disabled
Smile How to make my Grub dual-boot both Ubuntu and Windows 8


Hi,I'm new to Linux and LQ.I had installed Ubuntu above Windows 8.1 some weeks ago.One of my friend helped me and made me a dual boot. Everything was ok,before some days ago I installed Windows 8 Pro and ,Windows again whispered my Grub away,so I couldn't boot my Ubuntu.
I burned a boot-repair-disk on a USB and reinstalled my GRUB,but now it doesn't see my Windows 8 and 8.1
Please,explain me how to make my Windows versions boot from GRUB.Thank you,and sorry for grammar mistakes

Last edited by Vlad_Dohotaru; 01-28-2015 at 08:40 AM.
 
Old 01-28-2015, 12:21 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,026

Rep: Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571
The boot repair iso yu put on the flash drive has an option on boot to Create a Boot info summary. Boot it again, and use that option and post the results here so we have some details about your partition and boot files.
 
Old 01-28-2015, 01:51 PM   #3
Vlad_Dohotaru
LQ Newbie
 
Registered: Jan 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
I couldn't connect to the Internet while being on that Lubuntu,there when I booted again my USB .SO ,I attach this file
Attached Files
File Type: txt Boot-Info_2015-01-28__21h39.txt (41.2 KB, 11 views)
 
Old 01-30-2015, 08:39 AM   #4
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
The first thing to try is to boot into Ubuntu, open a terminal, and enter the command
Code:
sudo update-grub
That will search for any other OS (Windows) and put it on the menu, hopefully. If not, then we can do it manually...
 
Old 01-30-2015, 01:40 PM   #5
Vlad_Dohotaru
LQ Newbie
 
Registered: Jan 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
TxLonghorn,thank you,it worked partially.It detected my Windows 8,and now I can boot it.But I can't boot my Windows 8.1 ,Grub still doesn't see it. Also,I would like to know how to update grub manually Is it to much to have 3 OS on a computer?
 
Old 01-30-2015, 01:47 PM   #6
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
Quote:
Originally Posted by Vlad_Dohotaru View Post
Also,I would like to know how to update grub manually
Write you own /boot/grub/grub.cfg then.
https://www.gnu.org/software/grub/ma...l#SEC_Contents

As for your problem with two versions of Windows, you will need to use this technique:
https://www.gnu.org/software/grub/ma...OS_002fWindows
 
Old 01-30-2015, 02:31 PM   #7
austintx
Member
 
Registered: Jul 2012
Location: Austin, Texas
Distribution: Linux Mint 17 Cinnamon
Posts: 34

Rep: Reputation: 4
Looking at your Boot Info Report, it appears that you have Windows 8 installed to sda1, and Windows 8.1 installed to sda2
Is that correct?
I could be wrong about this, but I believe that you can only install one Windows OS to a drive with msdos partitioning. The reason is that Windows requires that the boot flag be set on the boot partition, and msdos partitioning only allows ONE boot flag on a drive. Please correct me if I am wrong.
I see you have the boot flag set on sda1, that is why I am assuming that Window 8 is on sda1.
In Ubuntu, open a terminal and run the osprober command to see if Windows 8.1 is detected.
Code:
sudo os-prober
Then use gparted to switch the boot flag to sda2 (you can install gparted to your Ubuntu - sudo apt-get install gparted)
Then run the os-prober command again, to see if you get different results.

Last edited by austintx; 01-30-2015 at 03:47 PM.
 
Old 01-30-2015, 03:07 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,026

Rep: Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571
You installed windows 8 after windows 8.1 which is why you are booting windows 8. It has changed the windows boot code and what you need to do is to go to windows to dual-boot the two windows operating systems. Windows bootloaders are usually backward compatible so you should always install the newest last and it should detect earlier versions. On the other hand, I can't imagine there is much difference between windows 8 and 8.1 but it might be enough.

Have you checked the windows partitions to see if the boot files are on their respective partitions?
Have you checked the boot menu file, bcdedit I think?
Your problem is with the windows bootloader and that's what you need to check. Your bootinfo report from yesterday shows sda1 and sda2 as windows partitions but only sda1 has any boot files.

Last edited by yancek; 01-30-2015 at 03:12 PM.
 
Old 01-30-2015, 05:20 PM   #9
Vlad_Dohotaru
LQ Newbie
 
Registered: Jan 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you,everybody! The output of sudo os-prober command is /dev/sda1:Windows 8 (loader):Windows:chain . I installed Gparted,and the boot flag was set to sda2 .And I changed it to sda1,and now everything seems to work properly I attached a screenshot of Gparted interface and I kindly ask you to explain me what's on sda3 and how can I give sda1 more space ? Because I think this partitioning isn't very nice.Am I right?
Attached Thumbnails
Click image for larger version

Name:	print.png
Views:	15
Size:	178.7 KB
ID:	17468  
 
Old 01-30-2015, 05:59 PM   #10
austintx
Member
 
Registered: Jul 2012
Location: Austin, Texas
Distribution: Linux Mint 17 Cinnamon
Posts: 34

Rep: Reputation: 4
Quote:
Originally Posted by Vlad_Dohotaru View Post
I kindly ask you to explain me what's on sda3 and how can I give sda1 more space ? Because I think this partitioning isn't very nice.Am I right?
sda3 is an extended partition which means that it is a "container" for your logical partition, sda5. Since you are only using 4 partitions, they all could be primary partitions, but it doesn't really matter.
As for giving sda1 more space, the only way to attempt that is to use the Windows Disc Mangler to make sda2 smaller, then make sda1 bigger to use the freed space. Never use linux tools (gparted) to resize a Windows partition.
https://help.ubuntu.com/community/Ho...dowsPartitions
You may be asking for trouble in attempting that procedure, however. It would involve moving the beginning location of the sda2 partition, which is a VERY questionable thing to do. The partition table addresses partition locations by their starting sector. It may work, but then again, it may not. Adjusting the end of a partition is relatively safe, but not the beginning.

Last edited by austintx; 01-30-2015 at 06:05 PM. Reason: add tutorial link
 
Old 01-30-2015, 09:32 PM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,026

Rep: Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571
Quote:
I installed Gparted,and the boot flag was set to sda2 .And I changed it to sda1,and now everything seems to work properly
That makes sense since it was the only partition of the two with boot files. I should have noticed that but I always forget the need to have a windows boot partition marked as active. It looks like the boot files for both 8 and 8.1 are on sda1.

Quote:
Because I think this partitioning isn't very nice.Am I right?
Probably you are right. I guess it depends upon which system you have on which partition and which you will be using more although you should be able to share between them.
 
Old 01-30-2015, 09:36 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,026

Rep: Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571Reputation: 1571
Quote:
I installed Gparted,and the boot flag was set to sda2 .And I changed it to sda1,and now everything seems to work properly
That makes sense since it was the only partition of the two with boot files. I should have noticed that but I always forget the need to have a windows boot partition marked as active. It looks like the boot files for both 8 and 8.1 are on sda1.

Quote:
Because I think this partitioning isn't very nice.Am I right?
Probably you are right. I guess it depends upon which system you have on which partition and which you will be using more although you should be able to share between them.

One possibility also would be to use windows Disk Management to shrink sda2 by half, then delete the swap and Extended partitions and re-create an Extended partition out of that space where you could then put your swap and create an additional logical data partition or multiple logical partitions.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 12.10 - make it dual boot with Windows 7 xlcor Ubuntu 2 10-27-2012 04:29 AM
Editing grub.conf to make Windows default in dual boot pssmba Linux - Newbie 4 04-04-2010 05:54 AM
Ubuntu 8.04 on dual boot Grub does not find Windows XP ronmettler Linux - Newbie 4 05-02-2008 08:38 AM
Ubuntu/Windows dual boot Grub problems ryanxav Linux - Newbie 14 10-21-2007 01:00 PM
grub dual boot ubuntu/windows dellcom1800 Linux - General 1 01-25-2007 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration