You are not logged in.

#1 2015-11-06 01:42:42

marcoscosmos
Member
Registered: 2015-11-03
Posts: 17

[Solved]Dual booting (seperate disks; MBR & EFI conflict advice)

EDIT: rather than re-phrase my first post I've decided to quote one of my replies as I believe it covers the necessary information.

marcoscosmos wrote:
SaltySockets wrote:

If you have multiple drives then you don't even need to touch the drive that Windows is on. Windows create by default three partitions and C: is not the first one. The boot drive that contains the Windows boot loader is NOT C: and neither is the recovery partition. The first partition that's mapped to a letter is the largest one.

First of all, I appologise, I didn't see your message during my previous reply.

Second, I hate to sound like a broken record, and I realise how implausible what I'm saying sounds. But "C:/" (I say C purely to indicate that it is a drive visible to windows) IS in fact the first partition on it's drive, and I am NOT using Windows to determine this. This is what parted, lsblk AND partx have all reported.

Third, I apologize for the confusion. I /am/ vaguely aware that EUFI and BIOS are incompatible, and certainly aware that MBR and GPT partitions are incompatible, my confusion is mostly about the fact that my Windows drive appears to have neither an MBR nor a GPT partition, I'm /guessing/ that it's somehow using BIOS (without a dedicated MBR) but it's not exactly clear if you read on below.

For reference, I'll quote some console outputs:

                                                            
[marcos@arch-bluebird ~]$ sudo parted /dev/sdb print
Model: ATA CORSAIR FORCE LX (scsi)
Disk /dev/sdb: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  128GB  128GB  primary  ntfs
 2      128GB   128GB  472MB  primary  ntfs         diag

[marcos@arch-bluebird ~]$ sudo mount /dev/sdb1 /run/media/marcos/testwindrive
[marcos@arch-bluebird ~]$ sudo ls /run/media/marcos/testwindrive/
bootmgr			MSOCache	     Python34			Users
BOOTNXT			pagefile.sys	     Recovery			Windows
Documents and Settings	Perl64		     $Recycle.Bin		Windows.old
hiberfil.sys		ProgramData	     RECYCLER			$Windows.~WS
Intel			Program Files	     swapfile.sys
MinGW			Program Files (x86)  System Volume Information
[marcos@arch-bluebird ~]$ sudo lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0   350M  0 part 
└─sda2   8:2    0 931.2G  0 part /run/media/marcos/shared-drive
sdb      8:16   0 119.2G  0 disk 
├─sdb1   8:17   0 118.8G  0 part /run/media/marcos/testwindrive
└─sdb2   8:18   0   450M  0 part 
sdc      8:32   0 119.2G  0 disk 
├─sdc1   8:33   0   512M  0 part /boot
├─sdc2   8:34   0    20G  0 part /
├─sdc3   8:35   0     4G  0 part [SWAP]
├─sdc4   8:36   0    10G  0 part /var
└─sdc5   8:37   0  84.8G  0 part /home
[marcos@arch-bluebird ~]$ sudo ls /run/media/marcos/shared-drive/
57bb0edae3dd134b5a3db1fb828e81d9  globdata.ini		install.res.2052.dll
8f9beaec9a4e822e45f7cf07c8aff697  HappyCloud		install.res.3082.dll
eula.1028.txt			  install.exe		msdownld.tmp
eula.1031.txt			  install.ini		pagefile.sys
eula.1033.txt			  install.res.1028.dll	$RECYCLE.BIN
eula.1036.txt			  install.res.1031.dll	stuff
eula.1040.txt			  install.res.1033.dll	System Volume Information
eula.1041.txt			  install.res.1036.dll	VC_RED.cab
eula.1042.txt			  install.res.1040.dll	vcredist.bmp
eula.2052.txt			  install.res.1041.dll	VC_RED.MSI
eula.3082.txt			  install.res.1042.dll	windy

I can assure you that:

  • /dev/sdb is in fact my Windows disk. The only other drives in the system are are my linux drive (obviously sdc) and the HDD (sda) I use to store data seperately to any OS installation, because 128gb SSDs are too small for that.

  • /dev/sdb1 == "C:/" (when viewed under windows)

  • /dev/sdb2 is the "recovery" partion and (yes I checked), does not contain anything resembling MBR or EFI bootloaders, only "/Recovery/WindowsRE/boot.sdi", which from a cursory search seems to be a bootable image rather than a boot loader.

Therefore, my understanding is that, counter-intuitive though it may be, /dev/sdb1 (which is my "C:/" drive), is somehow bootable. I guess I misclicked something when originally installing windows to lose the normal boot partition.

SaltySockets wrote:

You haven't told us what kind of partition table is used nor if your motherboard has a legacy BIOS or if it's UEFI.

I hope the above clarifies my partitioning scheme.

My motherboard is a Gigabyte Z97-HD3. It is UEFI based and, I believe, supports BIOS emulation.

I am actually, despite being new to Arch, aware of basic partitioning schemes, and I have sucessfully dual bootable Linux Mint and Windows with GRUB in the past.

As you can hopefully now see, my Windows (/dev/sdb) drive configuration is a bit of anomally, and when I noticed the anomally, I decided that my understanding of BIOS/UEFI was weaker than I thought and came to seek a second opinion.

Current plan: to hope that my Windows drive is using BIOS, re-format the boot partition of my Arch drive from GPT to an MBR, re-install GRUB, re-configure GRUB, and cross my fingers.

Update: Reformatted and reinstalled arch for BIOS; turns out I was a little confused as to where the MBR lies on disk but it's working now, thanks everyone.

Last edited by marcoscosmos (2015-11-10 06:01:25)


Reality can change as easily as the way you care to see it.
An answer, static in nature as it is, refers to one frozen snapshot of that reality. It's value can only go down.
Questions on the other hand seem to keep up with the dance and if anything, their value can grow.
-- Kostas Kiriakakis' comic

Offline

#2 2015-11-06 09:43:47

LCvanDinteren
Member
From: Netherlands
Registered: 2015-10-27
Posts: 153

Re: [Solved]Dual booting (seperate disks; MBR & EFI conflict advice)

I would start with rewriting your post, removing each entry of "whatever" to make it more likely for people to take your post seriously.

Also I'm having trouble understanding your exact situation.
You have two disks, 1 has windows install, 1 has arch install, correct?
What happens if you start your pc now? Can you select a default hard drive for boot? Will both OSs boot if you manually select the hard drive it is installed on?
eg. if you point boot to HDD1 with windows, will windows boot, if you point to HDD2 with arch, will arch boot?
If that is the case I think it would be easiest to reinstall grub on the arch disk and make that one default.

Offline

#3 2015-11-06 14:39:16

hannson
Member
From: .de
Registered: 2014-01-28
Posts: 37
Website

Re: [Solved]Dual booting (seperate disks; MBR & EFI conflict advice)

Whatever you decide to do, leave the 100 MB system partition of your windows drive be - it's a nightmare. Follow LCvanDinteren's advice, try the steps in the wiki.

Offline

#4 2015-11-06 15:26:31

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: [Solved]Dual booting (seperate disks; MBR & EFI conflict advice)

@LCvanDintern and @hannson you seem both to be contradicting Bootloader_UEFI_vs_BIOS_limitations
marcoscosmos's setup seems to be Windows 10 using bios/mbr arch using efi/gpt boot which is noted as not supported at least by grub on the wiki.

Offline

#5 2015-11-06 15:36:30

LCvanDinteren
Member
From: Netherlands
Registered: 2015-10-27
Posts: 153

Re: [Solved]Dual booting (seperate disks; MBR & EFI conflict advice)

If that is the case you are right indeed.
I am not an expert on bootloaders, but I think it would be best to use only one type on a system.
I feel that mixing bios and efi is a recipe for disaster.

Wouldn't it be better to get a clean install for one of the systems and get matching bootloaders?

Or, as I mentioned in my earlier reply, change the harddisk to boot.
This, however, is not very user friendly and should only be chosen if you rarely need the second OS.

Offline

#6 2015-11-07 08:11:17

SaltySockets
Member
Registered: 2015-10-10
Posts: 22

Re: [Solved]Dual booting (seperate disks; MBR & EFI conflict advice)

If you have multiple drives then you don't even need to touch the drive that Windows is on. Windows create by default three partitions and C: is not the first one. The boot drive that contains the Windows boot loader is NOT C: and neither is the recovery partition. The first partition that's mapped to a letter is the largest one.

You haven't told us what kind of partition table is used nor if your motherboard has a legacy BIOS or if it's UEFI.
If you have a UEFI motherboard, you'll need to use the GPT partition table format on your drive and you need a EFI System Partition on that drive where the boot loader is installed. When you use UEFI, the MBR is not used and you need to install GRUB with different parameters. The Arch Wiki article about GRUB informs you about this. You seem really confused and you haven't read about the subject before jumping into this. UEFI doesn't load the MBR, it loads a .efi file on the EFI System Partition, which one it will load is defined in a table stored in a piece of NVRAM on the motherboard. UEFI can load the Linux kernel directly as well, if the kernel has the EFI stub which the Arch kernel comes with.

Partition 1: EFI System Partition, size 10-250 MB depending on your intensions. If you only want GRUB here, you can use something as small as 10 MB but I highly recommend 100 MB if it's the first time you're doing this.
Partition 2: The system partition on which the OS is installed on.

When you install GRUB, tell it that the target is a EFI machine (the Arch Wiki about GRUB tells you how to do this) and also point out where the EFI System Partition (ESP) is mounted and where the boot partition is. There are several ways of doing this.
If the GRUB command succeeds and your machine is booted into UEFI mode, GRUB will use a tool called efibootmgr and install the pointer to the grub.efi into the NVRAM that stores the list of bootable EFI programs.

To make it easy for yourself, don't mix MBR and GPT on any system. If your motherboard has UEFI, use GPT on all system disks. If your motherboard uses legacy BIOS, use MBR partitioning scheme. GRUB will do different things depending on what kind of partitioning scheme it detects, so unless you read into this subject thoroughly, keep it simple.

Offline

#7 2015-11-07 08:22:55

marcoscosmos
Member
Registered: 2015-11-03
Posts: 17

Re: [Solved]Dual booting (seperate disks; MBR & EFI conflict advice)

hannson wrote:

Whatever you decide to do, leave the 100 MB system partition of your windows drive be - it's a nightmare. Follow LCvanDinteren's advice, try the steps in the wiki.

No such partition exists on my Windows hard drive.

loqs wrote:

@LCvanDintern and @hannson you seem both to be contradicting Bootloader_UEFI_vs_BIOS_limitations
marcoscosmos's setup seems to be Windows 10 using bios/mbr arch using efi/gpt boot which is noted as not supported at least by grub on the wiki.

Yes, this is the case, thank you.

LCvanDinteren wrote:

Wouldn't it be better to get a clean install for one of the systems and get matching bootloaders?

Or, as I mentioned in my earlier reply, change the harddisk to boot.
This, however, is not very user friendly and should only be chosen if you rarely need the second OS.

Yes, I think so too at this point. Changing the disk to boot has been my workaround so far and it's pretty inconvenient.

Thanks for the advice, it looks like I should attempt to modify my arch drive to use BIOS, reinstalling arch if neccessary as my windows install is fully configured and arch isn't.

I won't have time to attempt this for a week or two so, should I just mark the thread solved until it fails to revolve the dual booting problem?, (if it fails).

Or, it is likely that the problem is bigger than that, since one of my drives (the one windows formatted on install) doesn't have a dedicated boot partition?

Last edited by marcoscosmos (2015-11-07 10:22:31)


Reality can change as easily as the way you care to see it.
An answer, static in nature as it is, refers to one frozen snapshot of that reality. It's value can only go down.
Questions on the other hand seem to keep up with the dance and if anything, their value can grow.
-- Kostas Kiriakakis' comic

Offline

#8 2015-11-07 10:01:05

marcoscosmos
Member
Registered: 2015-11-03
Posts: 17

Re: [Solved]Dual booting (seperate disks; MBR & EFI conflict advice)

SaltySockets wrote:

If you have multiple drives then you don't even need to touch the drive that Windows is on. Windows create by default three partitions and C: is not the first one. The boot drive that contains the Windows boot loader is NOT C: and neither is the recovery partition. The first partition that's mapped to a letter is the largest one.

First of all, I appologise, I didn't see your message during my previous reply.

Second, I hate to sound like a broken record, and I realise how implausible what I'm saying sounds. But "C:/" (I say C purely to indicate that it is a drive visible to windows) IS in fact the first partition on it's drive, and I am NOT using Windows to determine this. This is what parted, lsblk AND partx have all reported.

Third, I apologize for the confusion. I /am/ vaguely aware that EUFI and BIOS are incompatible, and certainly aware that MBR and GPT partitions are incompatible, my confusion is mostly about the fact that my Windows drive appears to have neither an MBR nor a GPT partition, I'm /guessing/ that it's somehow using BIOS (without a dedicated MBR) but it's not exactly clear if you read on below.

For reference, I'll quote some console outputs:

                                                            
[marcos@arch-bluebird ~]$ sudo parted /dev/sdb print
Model: ATA CORSAIR FORCE LX (scsi)
Disk /dev/sdb: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  128GB  128GB  primary  ntfs
 2      128GB   128GB  472MB  primary  ntfs         diag

[marcos@arch-bluebird ~]$ sudo mount /dev/sdb1 /run/media/marcos/testwindrive
[marcos@arch-bluebird ~]$ sudo ls /run/media/marcos/testwindrive/
bootmgr			MSOCache	     Python34			Users
BOOTNXT			pagefile.sys	     Recovery			Windows
Documents and Settings	Perl64		     $Recycle.Bin		Windows.old
hiberfil.sys		ProgramData	     RECYCLER			$Windows.~WS
Intel			Program Files	     swapfile.sys
MinGW			Program Files (x86)  System Volume Information
[marcos@arch-bluebird ~]$ sudo lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0   350M  0 part 
└─sda2   8:2    0 931.2G  0 part /run/media/marcos/shared-drive
sdb      8:16   0 119.2G  0 disk 
├─sdb1   8:17   0 118.8G  0 part /run/media/marcos/testwindrive
└─sdb2   8:18   0   450M  0 part 
sdc      8:32   0 119.2G  0 disk 
├─sdc1   8:33   0   512M  0 part /boot
├─sdc2   8:34   0    20G  0 part /
├─sdc3   8:35   0     4G  0 part [SWAP]
├─sdc4   8:36   0    10G  0 part /var
└─sdc5   8:37   0  84.8G  0 part /home
[marcos@arch-bluebird ~]$ sudo ls /run/media/marcos/shared-drive/
57bb0edae3dd134b5a3db1fb828e81d9  globdata.ini		install.res.2052.dll
8f9beaec9a4e822e45f7cf07c8aff697  HappyCloud		install.res.3082.dll
eula.1028.txt			  install.exe		msdownld.tmp
eula.1031.txt			  install.ini		pagefile.sys
eula.1033.txt			  install.res.1028.dll	$RECYCLE.BIN
eula.1036.txt			  install.res.1031.dll	stuff
eula.1040.txt			  install.res.1033.dll	System Volume Information
eula.1041.txt			  install.res.1036.dll	VC_RED.cab
eula.1042.txt			  install.res.1040.dll	vcredist.bmp
eula.2052.txt			  install.res.1041.dll	VC_RED.MSI
eula.3082.txt			  install.res.1042.dll	windy

I can assure you that:

  • /dev/sdb is in fact my Windows disk. The only other drives in the system are are my linux drive (obviously sdc) and the HDD (sda) I use to store data seperately to any OS installation, because 128gb SSDs are too small for that.

  • /dev/sdb1 == "C:/" (when viewed under windows)

  • /dev/sdb2 is the "recovery" partion and (yes I checked), does not contain anything resembling MBR or EFI bootloaders, only "/Recovery/WindowsRE/boot.sdi", which from a cursory search seems to be a bootable image rather than a boot loader.

Therefore, my understanding is that, counter-intuitive though it may be, /dev/sdb1 (which is my "C:/" drive), is somehow bootable. I guess I misclicked something when originally installing windows to lose the normal boot partition.

SaltySockets wrote:

You haven't told us what kind of partition table is used nor if your motherboard has a legacy BIOS or if it's UEFI.

I hope the above clarifies my partitioning scheme.

My motherboard is a Gigabyte Z97-HD3. It is UEFI based and, I believe, supports BIOS emulation.

I am actually, despite being new to Arch, aware of basic partitioning schemes, and I have sucessfully dual bootable Linux Mint and Windows with GRUB in the past.

As you can hopefully now see, my Windows (/dev/sdb) drive configuration is a bit of anomally, and when I noticed the anomally, I decided that my understanding of BIOS/UEFI was weaker than I thought and came to seek a second opinion.

Last edited by marcoscosmos (2015-11-07 10:26:18)


Reality can change as easily as the way you care to see it.
An answer, static in nature as it is, refers to one frozen snapshot of that reality. It's value can only go down.
Questions on the other hand seem to keep up with the dance and if anything, their value can grow.
-- Kostas Kiriakakis' comic

Offline

Board footer

Powered by FluxBB