#[SOLVED] How can I add my secondary OS to the GRUB bootloader?
123 messages · Page 1 of 1 (latest)
did you have os-prober installed and the windows boot partition mounted when running grub-install?
well, of course; it is the relevant archwiki page (:
Here's a question to actually start: UEFI or BIOS boot?
after reading it, it sucks

looks about right
most firmware will auto detect windows so u can probably still boot to windows from ur firmware (uefi/bios) boot menu
edit due to cannot london
BIOS
Yeah for both
I uncommented the OS-prober and installed it, but it didn't seem to work for some obscure reason
Try this:
For Windows installed in BIOS mode, mount the Windows system partition (its file system label should be System Reserved or SYSTEM). Run os-prober as root to detect and generate an entry for it.
Done and rebooting
Aaand it isn't detected
Windows is already installed on the the correct partition, but it just seems to not recognize it
might need to do grub-mkconfig after that
Perhaps I did something wrong
does running sudo os-prober do anything though?
It did run but didn't return anything, nor add Windows to the bootloader
And I was running as sudo
Root*
:(
I would be mildly annoyed if I lost all my Windows files
why would you? unless you deleted them
not booting is something else.
ls /sys/firmware/efi check if this exists if you're not entirely sure which boot mode you're in, if it exists, then UEFI mode.
ah cool
lsblk -f to check your disk and OS setup.
to make sure you are mounting correctly before grub-mkconfig
Lemme take a pic, since I can't really copy it
sda2 is where windows is supposed to be in
Sda1 being system reserved
I presume so
so how are you running grub-mkconfig?
yeah
Mb
i see no boot partition at all on your system
Guess I skipped something on the wiki by accident then
So, back to wiki and reinstall grub like normal?
how are you booting into Arch?
It boots like normal, just doesn't detect Windows
as apparent, you were able to boot
Well, any ideas? I'm still quite clueless about how this works in general
can you boot without your usb plugged in?
NTFS partitions may not always be detected when mounted with the default Linux drivers. If GRUB is not detecting it, try installing NTFS-3G and remounting.
Testing that right now
Yeah, I can
For Windows installed in BIOS mode, mount the Windows system partition (its file system label should be System Reserved or SYSTEM). Run os-prober as root to detect and generate an entry for it.
Perhaps this?
well yes, you said you tried that
but where the hell is your grub (boot partition) ??
without the boot partition mounted to /boot, it won't do anything
I did as the guide stated and mounted it in sda(?)
On the disk, that is
OH?
I think I know what happened?
I might have built it inside sda3, perhaps? I did it on arch-chroot
Dunno if that's a hint of what might have happened
i am too :D
it is bios / mbr i think
It is BIOS
Ah
Soo, bad sign?
not necessarily
Yeah I can fly with that, what should I do from now on?
can you do ls -alt /boot
yes
I don't quite follow, can you be more explicit?
ls /mnt
does it exist?
mount /dev/sda1 /mnt
no output with plain ls means it exists and it's empty
what exact command do you use for grub-mkconfig?
mount: /mnt: unknown filesystem type 'ntfs'
The guide's
You need to specify the type for ntfs
Fetching it, just a second
mount -t ntfs3 -o force /dev/sda1 /mnt
Mounted
Thanks for holding my hand through this one
🫂
Is there any thanks system on this server or smth?
it doesn't mean anything, but replying to someone's message with "thanks" in the reply gives some cookies
... solved
#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.
- You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
- You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".
Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you
[SOLVED] How can I add my secondary OS to the GRUB bootloader?
Mount the windows partition and the windows bootloader, then redo the grub-mkconfig