Grub question for any Linux users.

SIW2

YTS GEEK
Guru
Gold Member
VIP
SF Team
Local time
2:19 AM
Messages
16,784
I am a complete newbie - I know zero about Linux.

What does this mean - it is complete nonsense:


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.:confused:

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 Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
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 Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
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 Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom built Desktop(Myself) Specs below - Also Asus G53SW-A1 laptop
OS
Windows 10 Pro / OpenSUSE
CPU
Intel Core i7 4790K
Motherboard
Asus Z97-A
Memory
32GB DDR3
Graphics Card(s)
EVGA GTX 1070
Sound Card
OnBoard
Monitor(s) Displays
3 X 1080P 24" displays
Screen Resolution
1280x1050 & 1920x1080
Hard Drives
SSD: Crucial M500 128GB
HD 1: WD Caviar Black 1TB
HD 2: WD Caviar Black 2TB
HD 3: WD Caviar Blue 500GB
PSU
Corsair CX650M
Case
Corsair Obisidian 450D
Cooling
Noctua NH-D14
Keyboard
Corsair K70 Vengeance (blue switches)
Mouse
Logitech M500
Internet Speed
65/10
Antivirus
Kaskersky Internet Securty
Browser
Opera
I don't want to do that.

There has to be a way to get grub directly onto Mint partition .
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
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 W7 and Ubuntu options)
  • If I select W7, I see the W7 menu (showing W7, W8 & XP)
I haven't physically installed Linux Mint, but I don't see any reason why it would be different.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
n/a
OS
W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
CPU
AMD Phenom II x6 1100T, 3.3 GHz
Motherboard
ASUS M4A88T-M/USB3 (AM3)
Memory
12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2GB x 2)
Graphics Card(s)
NVIDIA GeForce GTX 660
Sound Card
Realtek?
Monitor(s) Displays
Samsung S23B350
Screen Resolution
1920x1080
Hard Drives
WD Green 2TB (SATA), WD Green 3TB (SATA), WD Blue 4TB (SATA), WD Blue 6TB (SATA)
PSU
Cooler Master
Case
Antec GX300 Tower
Cooling
3x Antec TRICOOL 120mm Fans
Mouse
Wired Optical
Internet Speed
DSL
Antivirus
Avast
Browser
Pale Moon (64 bit)
Other Info
2018-12-27 Upgraded HDDs
2015-12-10 Upgraded case, graphics card, storage
2015-08-15 Upgraded motherboard & RAM
2015-07-15 Upgraded LM17.1 to LM17.2
^^ 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 Computer

OS
XP / Win7 x64 Pro
CPU
Intel Quad-Core Q9450 @ 3.2GHz
Motherboard
Asus P5-E
Memory
2x2GB GSkill DDR2
Graphics Card(s)
NVIDIA GeForce 8600 GTS (EVGA)
Monitor(s) Displays
Dell 2408WFP
Screen Resolution
1920x1200
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 Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
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 Win7. I've been linking it since Barman first posted it and only gotten good feedback.
 
LOL - I got it working already - see my post just before yours.

bcdedit /create /d "Linux Whatever" /application bootsector
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
Yes, I saw that but thought you might like to see it anyway since you're new to Linux and it's what has worked best - especially because it involves your old fave EasyBCD (which I learned from you!).
 
Back
Top