GRUB doesn't detect WINDOWS 10 after install arch linux
Hello, I think that this is a recurring issue but the posts that I found don't solve my problem, and some others may could solve, but the threads was very dirty.
The problem is: I had windows + mint and I decided change mint for archlinux, after install archlinux I realized that windows 10 are not an entry on grub.
How are my partitions?
Answer:
Device Start End Sectors Size Type
/dev/sda1 2048 1026047 1024000 500M EFI System
/dev/sda2 1026048 17803263 16777216 8G Linux filesystem
/dev/sda3 17803264 80717823 62914560 30G Linux filesystem
/dev/sda4 1344514048 1344546815 32768 16M Microsoft reserved
/dev/sda5 1344546816 1953523711 608976896 290.4G Microsoft basic data
/dev/sda6 80717824 1344514047 1263796224 602.6G Linux filesystem
/sda1 is boot linux partition
/sda2 is swap partition
/sda3 is root linux partition
/sda4 I suppose that is the boot windows partition
/sda5 is windows "home" partition
/sda6 is home linux partition
How did you install the grub in archlinux installation?
Answer:
After arch-chroot /mnt and etc, I did run the following commands:
mkdir /boot/efi
mount /dev/sda1 /boot/efi
grub-install --target=x86_64 --bootloader-id=grub_efi --recheck
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
grub-mkconfig -o /boot/grub/grub.cfg
What did you try to resolve the problem?
Answer:
I did install os-prober and ntfs-3g and run:
sudo os-prober
grub-mkconfig -o /boot/grub/grub.cfg
I also try follow a short section in archlinux's guide related to grub installation that say to mount windows partition before grub-mkconfig, but I couldn't mount windows partition.
mkdir /boot/windows
sudo mount /dev/sda4 /boot/windows
-> NTFS signature is missing.
Failed to mount '/dev/sda4': Invalid argument
The device '/dev/sda4' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
So I think that I did show my problem in a neat way, someone could help me?
About this post
- Posted
- Archived
- Score
- 4 · 100% up
- Kind
- Text
- ID
- aely24
27 comments
Maybe it's a feature.
I don't understand
I don't know Grub, so have no idea on its specifics.
The big question is how'd you install Windows. I hope you didn't do anything funky with
sda1, since you seem to have a EFI system. All things boot related are on the EFI system partition. So the Windows stuff is likely inEFI/Microsoftonsda1. (so if you mount it on Linux it'd become/boot/EFI/Microsoft)If that directory exists, https://wiki.archlinux.org/index.php/GRUB#Windows_installed_in_UEFI/GPT_mode seems to be a good start. Alternatively, look into using something like refind instead of Grub if you don't need Grub's advanced features. For me at least, refind locates my Windows and Linux stuff automagically.
Since sda4 is only 16 megs, there is no way it contains Windows. I suppose it's one of those tiny partitions that Windows installer creates for for EFI or some other Windows nonsense. Try booting from sda5. Or mount sda5 and see if os-prober picks it up.
This was my output to mount windows parittion, run os-prober and grub-mkconfig. This did not solve yet, however I think that this is the way.
Looks like the Windows was not properly shut down, just hibernated (they call it "Fast Boot" nowadays...), maybe that's the issue in your case. Unfortunately, since you can't boot into Windows to disable it, maybe deleting the hibernation state would do the trick?
try mounting windows efi partition to another directory and run grub-mkconfig directly (assuming windows is installed in UEFI mode and arch is also installed in UEFI mode )
Look my fdisk ouput, I think that there isn't windiws efi partition.
Windows would have made that ESP labeled partition if you were in EFI mode. So you’re probably in bios mode if that didn’t exist when you did the install and don’t need to follow the EFI instructions.
In bios mode, you only really need to make a mount point for root as well as a swap partition. Then running grub should handle the rest. Lots of people still make boot (around 250 megs) and home partitions as well. I personally find home has a tendency to get full of crap, so unless I have it on a separate hard drive altogether, I usually just make root and boot partitions.
Did you make that boot efi partition yourself?