Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Grub question for any Linux users.

27 Jun 2012   #1

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 
Grub question for any Linux users.

I am a complete newbie - I know zero about Linux.

What does this mean - it is complete nonsense:


Quote:
3. Now we need to tell the computer to reinstall grub2 to the Linux Mint partition we just mounted. To do this copy and paste this line of code into the terminal sudo grub-install --root-directory=/mnt/ /dev/sdX
Again you will need to change this line of code to match your Linux Mint partition. Change the "X" at the end to match your mint partiton. My partition is dev/sda6 so i will change the the line of code to - sudo grub-install --root-directory=/mnt/ /dev/sda

It is IMPORTANT that you do not enter any number just the letters of the partitions.

First it says change X to the partition number - then it says do not enter any numbers.

I would hazard a guess you enter the number to mount the partition - but you don't enter the number to install grub to it?


No wonder the general public won't go near it.


My System SpecsSystem Spec
.

27 Jun 2012   #2

XP / Win7 x64 Pro
 
 

They're a bit confusing there in talking about partitions but with the intentions of installing grub to the root of the drive, regardless of partitions. In the example where they talk about "/dev/sda6", the take home point is that they are identifying that the Mint partition (/dev/sda6, since the number 6 denotes which partition it is on the drive) is on the drive mounted as /dev/sda. What matters here is that you are installing grub to the root of the drive with the Mint partition on it. Thus, the drive containing the Mint partition in this case is /dev/sda. That's all you really care about and that's the identifier you would use, as noted above in "--root-directory=/mnt/ /dev/sda". If there was a second drive, it would be called /dev/sdb, and so forth. They are just trying to make sure you install Grub on the drive where you have Mint installed. If you only have one drive in the system, you don't need to identify which partition Mint is installed onto.
My System SpecsSystem Spec
27 Jun 2012   #3

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Thanks for the response - but it is still not clear to me.

I want to install it to the Mint partition.

Does it understand that is what I am trying to do - or will it install grub to the Hard drive Mint is on - instead of just the partition Mint is on.

( I will add it to Windows boot menu after. )
My System SpecsSystem Spec
.


27 Jun 2012   #4

Windows 7 Pro x64
 
 

The Grub will replace the windows boot loader, so you won't be able to use the windows boot loader afterwords. You will have the choice to load windows from the grub as long as windows was installed before you installed Mint. The root of the drive in the example given here would be sda and not sda6.
My System SpecsSystem Spec
27 Jun 2012   #5

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

I don't want to do that.

There has to be a way to get grub directly onto Mint partition .
My System SpecsSystem Spec
27 Jun 2012   #6

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 17 MATE (64 bit)
 
 
Reverse install order?

I'd do it the other way round.
Install all of your Windows operating systems and then install Linux Mint.
That's the way I installed Ubuntu and I've never had any boot problems.

Note:
I installed Windows without that useless 100 MB boot partition.

When I boot my PC:
  • I see the GRUB menu (showing Windows 7 and Ubuntu options)
  • If I select Windows 7, I see the Windows 7 menu (showing Windows 7, W8 & XP)
I haven't physically installed Linux Mint, but I don't see any reason why it would be different.
My System SpecsSystem Spec
27 Jun 2012   #7

XP / Win7 x64 Pro
 
 

^^ That is the easiest way to do it if you're multi-booting.

If you're just set on installing GRUB to the Mint Partition itself, you can do that but it doesn't make much sense. You'd still have to have a way for the Windows bootloader to recognize that there is another OS installed, otherwise you'll never be able to boot to it. In that case, you'd have to use EasyBCD to modify the Windows bootloader to add that Mint partition to your options of which OS to load at startup. At that point, having GRUB on the Mint partition just adds another bootloader you don't need.
My System SpecsSystem Spec
27 Jun 2012   #8

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Got it working - you can add a bootsector loader to bcd -you just need to point it at a bootsector file it can find. Like D:\MY\grub.mbr

Real-mode Boot Sector
---------------------
identifier {58638d6d-bc11-11e1-a5d9-001966657855}
device partition=D:
path \MY\Grub.mbr
description Mint Maya
My System SpecsSystem Spec
27 Jun 2012   #9
Microsoft MVP

 

Hi, Si. I don't know whether this is needed but it's the best way I've found to Dual boot Ubuntu-Win7 without interfering with Windows 7. I've been linking it since Barman first posted it and only gotten good feedback.
My System SpecsSystem Spec
27 Jun 2012   #10

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

LOL - I got it working already - see my post just before yours.

bcdedit /create /d "Linux Whatever" /application bootsector
My System SpecsSystem Spec
Reply

 Grub question for any Linux users.




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:36 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33