Dual Boot Issue
I recently dual booted with Arch, and had a working configuration using GRUB, where I could also choose to boot into windows. I recently reinstalled Arch, and now cannot access windows. When I boot into BIOS and go to my boot options, the only option I have for windows is called Samsung SSD ... (not Windows Boot Manager), and booting into it results in a "Reboot and select proper boot device blah blah" message. I'm not sure how arch could have messed up windows like this (they were on completely different drives), and I have no idea what to do now. I have a windows USB, and booting into that and trying the startup recovery and the command prompt with a few "bootrec /fixstuff" commands, which all worked fine except for the "/fixboot" one which gave permission denied. Really hoping I didn't lose my windows partition (since I only had a one time activation code, and will be down around a hundred bucks if I did). Just wondering if anyone has any insight on fixing this?
About this post
- Posted
- Archived
- Score
- 9 · 81% up
- Kind
- Text
- ID
- imigda
32 comments
Booting should be handled by Arch not windows. If you are asking windows to handle booting it will overwrite the disk's mbr and will not show arch.
You should use a live/usb/cd/dvd to boot arch and setup the bootloader.
Exactly, though technically GRUB (or w/e you use) handles the bootloading. Installing Windows after Linux usually will result in a bad time. By extension, I assume using Windows utilities to fix booting will also cause issues.
I don't have any experience with it, but this section of the Arch wiki on restoring a Windows boot record might be helpful in this situation.
I tried using the live USB to set it up, but was not able to get grub installed because of many errors complaining about the absence of
device.mapand not being able to find a grub drive. Any more ideas on this? I'm about ready to wipe the whole thing and start over but am really dreading it since I had a lot installed on that Windows partition (including many VMs :( ). Here is lots of info about the system (hopefully helpful).From arch live you mount the root of your installation to say: /mnt So let's say your arch is installed in /dev/sda5
where sda should be changed to the actual drive booting the system. Your /boot/grub/grub.cfg should not have changed, so it will come up when you take the live disk out and reboot. grub-install writes a pointer in the mbr for grub.cfg's location and off you go.
If you have changed something in the system and you want grub reconfigured make sure you have os-prober still installed and it should find windows and make an entry, but before you update save a copy of your old grub.cfg ... especially if it was a windows entry in it.
did you remember to mount the windows boot drive in arch and run grub-mkconfig again?
Had a similar issue some time back, this fixed it.
Yes, I have mounted the boot drive and have run grub-update and grub-mkconfig, but it is not able to detect windows.
Last time I set up grub you needed the os-prober dependancy to detect and create the windows entry in grub.
Kinda curious. Can you boot into a live archlinux iso and do a
fdisk -l
And post the results here? That should help us to see what partitions you have.
Thx !
Here it is! sudo fdisk -l.
Thx. I’m under the impression the entire issue was caused from the beginning that your computer firmware decided to boot in BIOS mode as supposed to UEFI (or EFI) mode. Can you confirm first that your firmware is currently booting not legacy but UEFI (or EFI) mode? Thx...
Sorry for the delay - busy day. Ill do this now!
Isn't it common ground to "pirate" windows after you buy your first key? Or is that computer not yours?
Also, it sounds like you forgot to go through the os-prober steps in the grub configuration process, refer to the wiki please.
Edit: I read your replies in other comments but I strongly recommend you to go through each step on the wiki as if you were installing grub the first time regardless. Maybe you forgot something trivial in the middle.
For example: not mounting the windows bootloader partition somewhere in your /mnt directory before running os-prober and grub-mkconfig.
Thanks for the reply! I did actually follow along with the wiki when doing the commands so I'm pretty sure I didn't miss anything but thanks for the suggestion
Assuming your "C" drive hasn't been affected and considering that you have access to a Windows installation medium, you can recover it, probably by rebuilding your BCD.
If you logged in with a Microsoft account, then your license will be restored when you login with the account even after a reinstall. If not, you can activate it using HWID.
Usually OEM keys are permanent, you can reinstall the entire os without buying a new key, it will activate it automaticaly. They stick to the motherboard..