LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2015, 10:18 AM   #1
AsspieRing
LQ Newbie
 
Registered: Jun 2015
Posts: 1

Rep: Reputation: Disabled
Installing GRUB Bootloader on Harddrive with existing Windows operating system?


Hi folks!,

i'm planning to install Arch-Linux next to my already installed Windows Operatingsystem (on the same hard drive).

If I run grub-install /dev/sda, will this be harmful to my Windows partition?

I understand that all grub-install does is that it tells the MBR to give control to GRUB on system boot, but does this not make the required space of the MBR bigger, and therefor overwrite some of the files of my partition?

Thanks for any helpful answers in advance!
 
Old 06-07-2015, 12:46 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 284Reputation: 284Reputation: 284
Quote:
Originally Posted by AsspieRing View Post
If I run grub-install /dev/sda, will this be harmful to my Windows partition?
Is your Windows system running in EFI-mode?

If not, use these commands to install and configure GRUB:
Code:
# pacman -S grub os-prober
# grub-install --recheck /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
https://wiki.archlinux.org/index.php...S_motherboards

Providing os-prober is installed, GRUB will pick up Windows and provide a menu entry for it.

If you have a UEFI system I recommend using gummiboot rather than GRUB as it is much easier to set up and troubleshoot.
https://wiki.archlinux.org/index.php...I_motherboards

In the case of a UEFI system, you should use the Windows-generated EFI system partition (it will be the only FAT-formatted partition and `gdisk -l /dev/sda` will identfiy it as type "EF00") and mount /boot (not /boot/efi) to this partition.

When installing Arch, follow the guide linked in my signature.

Do not be tempted to use random blog guides or YouTube videos, these are *all* outdated and/or error-ridden.

If you do not know if your system is UEFI, load up a live distribution (any will do) and post the output of:
Code:
# parted -l
 
Old 06-07-2015, 05:18 PM   #3
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
Just adding to the good comments above. It has been some time since I made a dual boot, but the question is are you working with a production windows or a fresh windows install? If you are working with a clean slate, I prefer the 4 partition method:

Tiny FAT boot partition
Windows NTFS Partition
Linux EXT3 Partition (Personal preference, not a fan of ext4)
Data Partition (Your choice of FAT or NTFS, just so both Windows and Linux can share the same data.)

Install Windows first because it was not written to detect multi boot option. Then install Linux, many distros will recognize that you are trying to make a dual boot and have built in tools to assist with this. I can not remember the exact details but some versions of Windows will detect a change in the boot partition and start complaining about security issues. You will need to Google the error messages and solve those on a case by case basis.
 
Old 06-08-2015, 06:33 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,101

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
Right about this time I usually suggest a free virtual machine.

Then I say, better backup windows and test that backup before you go any farther.
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using my already existing Grub Bootloader for LFS jemd13 Linux From Scratch 6 06-26-2014 04:12 PM
Installing grub and fixing Windows bootloader jfluckey Linux - General 4 04-06-2014 11:20 PM
[SOLVED] I messed up the GRUB bootloader by installing Android x86 on existing Linux Partition westprogram1 Linux - Kernel 2 11-13-2013 09:31 PM
My grub is not loading on dual operating system with windows Xp Pro causing my system marlene tack Linux - Newbie 2 03-17-2008 08:54 AM
how to hide GRUB bootloader while booting a duel boot system ( linux/windows ) ? dommini Linux - General 0 12-03-2003 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:47 AM.

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