Hi, I recently bought a new PC desktop (CPU: Ryzen 2700X, GPU: GTX 1050ti) without any pre-installed OS. The PC had 2 SSD so I installed first Win10 and afterwards Manjaro KDE on the 2nd SSD. Upon installing Manjaro I created boot/efi partition and after 1 solid partition for root.
My problem is that when Bios boots in Linux SSD it doesn’t show Grub and takes me straight to initial screen. And 2nd when I did update grub it doesn’t recognize the other SSD as windows. So I’m left with the option to choose OS upon boot via bios selection. Any advice is highly appreciated. THANKS.
boot on USB iso manjaro
open a terminal
a browser on this topic
and reports
inxi -Fxza --no-host
sudo parted -l
sudo efibootmgr -v
test -d /sys/firmware/efi && echo efi || echo bios
I’m not sure if you have already gotten the menu to show, but if you haven’t, you have to edit these 2 lines in
/etc/default/grub
to make it show.
GRUB_TIMEOUT=1
GRUB_TIMEOUT_STYLE=menu
Likely the TIMEOUT_STYLE
is still set to hidden
in your grub configuration. The TIMEOUT
option itself gives you the ability to select how long that menu is show each boot. 1 sec is enough if you just want to access it by spamming the up and down arrow keys, but not otherwise cost you much time on each boot.
When you have edited those lines make sure to update grub with sudo update-grub
.
Edit your /etc/default/grub and replace
GRUB_TIMEOUT_STYLE=hidden
by
GRUB_TIMEOUT_STYLE=menu
Then run
sudo update-grub
After next reboot you should see the grub menu.
Sorry to come back but as I’m a newbie I want to be 100% sure on the steps I have to follow to make grub see my windows drive which is separate from Manjaro drive. After I boot on USB iso Manjaro and open a terminal, you mean I have to enter one by one the above 4 commands? Is that you suggest?
Yes that was what was suggested and wanted were there outputs of those commands. You would need to post them here so we can know a bit more about your system and exact state of the system.
Please post them as preformatted text (shortcut ctrl+shift+c).
yes one by one and reports
These are the reports of the 4 commands you asked for. Thank you for your assistance:
[manjaro@manjaro ~]$ inxi -Fxza --no-host
System:
Kernel: 5.6.15-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-x86_64 lang=en_US keytable=us
tz=UTC driver=free nouveau.modeset=1 i915.modeset=1 radeon.modeset=1
misobasedir=manjaro misolabel=MANJARO_KDE_2003 quiet
systemd.show_status=1 apparmor=1 security=apparmor
Desktop: KDE Plasma 5.18.5 Distro: Manjaro Linux
Machine:
Type: Desktop Mobo: ASRock model: B450M Steel Legend serial:
UEFI [Legacy]: American Megatrends v: P3.30 date: 07/13/2020
CPU:
Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP
arch: Zen+ family: 17 (23) model-id: 8 stepping: 2 microcode: 800820D
L2 cache: 4096 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 118222
Speed: 1884 MHz min/max: 2200/3700 MHz Core speeds (MHz): 1: 1883
2: 1888 3: 2054 4: 2055 5: 2064 6: 2064 7: 1904 8: 2193 9: 1889
10: 1887 11: 1888 12: 1890 13: 1887 14: 2196 15: 2190 16: 2184
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional,
STIBP: disabled, RSB filling
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: Micro-Star MSI
driver: nouveau v: kernel bus ID: 07:00.0
Display: x11 server: X.Org 1.20.8 driver: nouveau unloaded: modesetting
resolution: 1920x1080~60Hz
OpenGL: renderer: NV137 v: 4.3 Mesa 20.0.7 direct render: Yes
Audio:
Device-1: NVIDIA GP107GL High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus ID: 07:00.1
Device-2: AMD Family 17h HD Audio vendor: ASRock driver: snd_hda_intel
v: kernel bus ID: 09:00.3
Device-3: Logitech type: USB driver: hid-generic,snd-usb-audio,usbhid
bus ID: 3-4.2:5
Sound Server: ALSA v: k5.6.15-1-MANJARO
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASRock driver: r8169 v: kernel port: f000 bus ID: 05:00.0
IF: enp5s0 state: up speed: 100 Mbps duplex: full mac:
Drives:
Local Storage: total: 2.28 TiB used: 163.4 MiB (0.0%)
ID-1: /dev/nvme0n1 vendor: Kingston model: SA2000M8250G
size: 232.89 GiB block size: physical: 512 B logical: 512 B
ID-2: /dev/sda vendor: Western Digital model: WDS240G2G0B-00EPW0
size: 223.57 GiB block size: physical: 512 B logical: 512 B
ID-3: /dev/sdb type: USB vendor: Western Digital
model: WD20EARX-00PASB0 size: 1.82 TiB block size: physical: 512 B
logical: 512 B
ID-4: /dev/sdc type: USB vendor: Generic model: Flash Disk
size: 14.75 GiB block size: physical: 512 B logical: 512 B
Partition:
ID-1: / raw size: N/A size: 11.68 GiB used: 163.4 MiB (1.4%)
fs: overlay source: ERR-102
Sensors:
System Temperatures: cpu: 35.8 C mobo: N/A gpu: nouveau temp: 40 C
Fan Speeds (RPM): N/A gpu: nouveau fan: 0
Info:
Processes: 338 Uptime: 3m Memory: 15.57 GiB used: 1.32 GiB (8.5%)
Init: systemd Compilers: gcc: 10.1.0 Shell: bash v: 5.0.17 inxi: 3.0.37
[manjaro@manjaro ~]$ sudo parted -l
Model: ATA WDC WDS240G2G0B- (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 316MB 315MB fat32 msftdata
2 316MB 240GB 240GB ext4
Model: WD Ext HDD 1021 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 1741GB 1741GB primary ntfs
3 1741GB 1876GB 135GB primary ext4
2 1876GB 2000GB 124GB primary ext4
Model: Generic Flash Disk (scsi)
Disk /dev/sdc: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
2 3120MB 3124MB 4194kB primary esp
Model: KINGSTON SA2000M8250G (nvme)
Disk /dev/nvme0n1: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition boot, esp
2 106MB 123MB 16.8MB Microsoft reserved partition msftres
3 123MB 250GB 249GB ntfs Basic data partition msftdata
4 250GB 250GB 530MB ntfs hidden, diag
[manjaro@manjaro ~]$ sudo efibootmgr -v
EFI variables are not supported on this system.
[manjaro@manjaro ~]$ test -d /sys/firmware/efi && echo efi || echo bios
bios
you need to boot in EFI only , not Legacy
check all option in Bios
- disable secure boot
- disable fast boot
- disable CSM
- no legacy
- disks on AHCI
- UEFI on only or others ( not windows )
you need a grub EFI install , that cannot be done unless you boot in EFI only
@Vangelis62, as you can still boot into your Manjaro installation, please post the output from within your Manjaro installation (means after a normal boot) and not after booting from a live iso, otherwise you get info about the live system and not from your installed system. This has the same result for parted -l but not for the other commands.
Alternatively, you could chroot into your system after booting from the live iso (done in UEFI mode!) by entering
sudo manjaro-chroot -a
(Select 1 if only one line is offered)
and then enter
inxi -Fxza --no-host
sudo efibootmgr -v
test -d /sys/firmware/efi && echo efi || echo bios
Don’t forget to exit properly afterwards by
exit
exit
Here are the reports within my normal Manjaro installation (not from a live iso):
[vangelis@vangelis-linux ~]$ inxi -Fxza --no-host
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “en_US:en_US:el”,
LC_ALL = (unset),
LC_ADDRESS = “el_GR.UTF-8”,
LC_NAME = “el_GR.UTF-8”,
LC_MONETARY = “el_GR.UTF-8”,
LC_PAPER = “el_GR.UTF-8”,
LC_IDENTIFICATION = “el_GR.UTF-8”,
LC_TELEPHONE = “el_GR.UTF-8”,
LC_MEASUREMENT = “el_GR.UTF-8”,
LC_TIME = “en_GB.UTF-8”,
LC_NUMERIC = “el_GR.UTF-8”,
LANG = “el_GR.UTF-8”
are supported and installed on your system.
perl: warning: Falling back to a fallback locale (“el_GR.UTF-8”).
System:
Kernel: 5.4.58-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0
parameters: BOOT_IMAGE=/vmlinuz-5.4-x86_64
root=UUID=d667ef70-a67a-4788-bd9e-13d388ca716f rw quiet apparmor=1 security=apparmor
udev.log_priority=3
Desktop: KDE Plasma 5.19.4 tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux
Machine:
Type: Desktop Mobo: ASRock model: B450M Steel Legend serial:
UEFI [Legacy]: American Megatrends v: P3.30 date: 07/13/2020
CPU:
Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+
family: 17 (23) model-id: 8 stepping: 2 microcode: 800820D L2 cache: 4096 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 118221
Speed: 2406 MHz min/max: 2200/3700 MHz boost: disabled Core speeds (MHz): 1: 2399
2: 1712 3: 1756 4: 1796 5: 3444 6: 2044 7: 1926 8: 1933 9: 1716 10: 1716 11: 2414
12: 1913 13: 1718 14: 1780 15: 2501 16: 1905
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Full AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: Micro-Star MSI driver: nvidia
v: 450.57 alternate: nouveau,nvidia_drm bus ID: 07:00.0 chip ID: 10de:1c82
Display: x11 server: X.Org 1.20.8 compositor: kwin_x11 driver: nvidia display ID: :0
screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 92 s-size: 530x301mm (20.9x11.9")
s-diag: 610mm (24")
Monitor-1: DP-0 res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7")
diag: 604mm (23.8")
OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 450.57
direct render: Yes
Audio:
Device-1: NVIDIA GP107GL High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus ID: 07:00.1 chip ID: 10de:0fb9
Device-2: AMD Family 17h HD Audio vendor: ASRock driver: snd_hda_intel v: kernel
bus ID: 09:00.3 chip ID: 1022:1457
Device-3: Logitech V10 Notebook Speakers type: USB
driver: hid-generic,snd-usb-audio,usbhid bus ID: 3-4.2:5 chip ID: 046d:0a10
Sound Server: ALSA v: k5.4.58-1-MANJARO
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASRock
driver: r8169 v: kernel port: f000 bus ID: 05:00.0 chip ID: 10ec:8168
IF: enp5s0 state: up speed: 100 Mbps duplex: full mac:
Drives:
Local Storage: total: 2.27 TiB used: 12.82 GiB (0.6%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 vendor: Kingston model: SA2000M8250G size: 232.89 GiB block size:
physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 serial:
rev: S5Z42105 scheme: GPT
ID-2: /dev/sda vendor: Western Digital model: WDS240G2G0B-00EPW0 size: 223.57 GiB
block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: rev: 0400
scheme: GPT
ID-3: /dev/sdb type: USB vendor: Western Digital model: WD20EARX-00PASB0
size: 1.82 TiB block size: physical: 512 B logical: 512 B serial: rev: 2021
scheme: MBR
Partition:
ID-1: / raw size: 223.27 GiB size: 218.77 GiB (97.98%) used: 12.73 GiB (5.8%)
fs: ext4 dev: /dev/sda2
ID-2: /boot raw size: 300.0 MiB size: 299.4 MiB (99.80%) used: 97.0 MiB (32.4%)
fs: vfat dev: /dev/sda1
Swap:
Alert: No Swap data was found.
Sensors:
System Temperatures: cpu: 35.8 C mobo: N/A gpu: nvidia temp: 41 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
Processes: 324 Uptime: 7m Memory: 15.57 GiB used: 1.16 GiB (7.4%) Init: systemd
v: 245 Compilers: gcc: 10.1.0 Packages: pacman: 1304 lib: 333 flatpak: 0 Shell: Bash
v: 5.0.18 running in: konsole inxi: 3.1.05
[vangelis@vangelis-linux ~]$ sudo efibootmgr -v
[sudo] password for vangelis:
EFI variables are not supported on this system.
[vangelis@vangelis-linux ~]$ test -d /sys/firmware/efi && echo efi || echo bios
bios
Something is wrong with your installation. /dev/sda is parted in gpt and you have a BIOS install, this is possble but most likely not what you planned and requires a special bios_grub partition which I cannot see. Is it an option to reinstall in UEFI mode or do you prefer to try to fix it?
Anyway, if it stays in BIOS mode, you never will be able to boot Windows from grub menu, that’s only possible when both OS are installed in the same mode.
I would prefer to fix it if possible and not reinstall as I’ve already loaded in Manjaro many programs.
FYI during Manjaro installer, I created first a boot/efi partition and after 1 solid partition for root. I also chose the bootloader to be placed in Manjaro drive. Perhaps there I made a mistake and my grub (which is not hidden) now is not showing the other Windows SSD drive. As I said I can boot normally in both OS by selecting different boot drive order in bios but I would prefer to startup at Manjaro SSD drive and grub offer me that option.
Is that possible and how?
Actually, I don’t think it’s possible, but first let me try to understand your install a bit better. Please run
sudo fdisk -l
and post your /etc/fstab file.
Also, please post output of
ls -la /boot
Here you are:
[vangelis@vangelis-linux ~]$ sudo fdisk -l
[sudo] password for vangelis:
Disk /dev/nvme0n1: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: KINGSTON SA2000M8250G
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: DC771918-31ED-4EAF-81AF-29292FAE3783
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
/dev/nvme0n1p2 206848 239615 32768 16M Microsoft reserved
/dev/nvme0n1p3 239616 487358580 487118965 232.3G Microsoft basic data
/dev/nvme0n1p4 487360512 488394751 1034240 505M Windows recovery environment
Disk /dev/sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: WDC WDS240G2G0B-
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F478DDD3-A15A-114B-ADE7-85377AEDF6A0
Device Start End Sectors Size Type
/dev/sda1 2048 616447 614400 300M Microsoft basic data
/dev/sda2 616448 468856991 468240544 223.3G Linux filesystem
Disk /dev/sdb: 1.82 TiB, 2000396746752 bytes, 3907024896 sectors
Disk model: Ext HDD 1021
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0003fad8
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 3400925183 3400923136 1.6T 7 HPFS/NTFS/exFAT
/dev/sdb2 3664789504 3907022847 242233344 115.5G 83 Linux
/dev/sdb3 3400925184 3664789503 263864320 125.8G 83 Linux
Partition table entries are not in disk order.
[vangelis@vangelis-linux ~]$ ls -la /boot
total 91112
drwxr-xr-x 2 root root 4096 Aug 23 13:26 ‘$RECYCLE.BIN’
drwxr-xr-x 6 root root 4096 Jan 1 1970 .
drwxr-xr-x 17 root root 4096 Aug 23 10:45 …
drwxr-xr-x 2 root root 4096 Aug 24 22:42 ‘System Volume Information’
-rwxr-xr-x 1 root root 40960 Aug 17 15:42 amd-ucode.img
drwxr-xr-x 5 root root 4096 Aug 25 19:44 grub
-rwxr-xr-x 1 root root 30990328 Aug 23 13:51 initramfs-5.4-x86_64-fallback.img
-rwxr-xr-x 1 root root 9208535 Aug 23 13:51 initramfs-5.4-x86_64.img
-rwxr-xr-x 1 root root 30982165 Aug 23 13:51 initramfs-5.7-x86_64-fallback.img
-rwxr-xr-x 1 root root 8853455 Aug 23 13:51 initramfs-5.7-x86_64.img
-rwxr-xr-x 1 root root 21 Aug 11 18:45 linux54-x86_64.kver
-rwxr-xr-x 1 root root 21 Aug 11 17:59 linux57-x86_64.kver
drwxr-xr-x 2 root root 4096 Jun 6 14:03 memtest86+
-rwxr-xr-x 1 root root 6494592 Aug 23 10:32 vmlinuz-5.4-x86_64
-rwxr-xr-x 1 root root 6680448 Aug 23 10:45 vmlinuz-5.7-x86_64
[vangelis@vangelis-linux ~]$ sudo leafpad /etc/fstab
/etc/fstab: static file system information.
Use ‘blkid’ to print the universally unique identifier for a device; this may
be used with UUID= as a more robust way to name devices that works even if
disks are added and removed. See fstab(5).
UUID=8E42-0F9B /boot vfat defaults,noatime 0 2
UUID=d667ef70-a67a-4788-bd9e-13d388ca716f / ext4 defaults,noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
I’m grateful for your interest and hoping a workaround might be advised. THANK YOU!
You have a very rare install, I’m still not 100% sure but currently I would assume you have installed Manjaro in BIOS or CSM mode and your core.img ended up in sectors #34 ff. I don’t know what would happen if you had to re-install grub due to some issues as normally BIOS combined with a gpt parted disk requires a special BIOS_grub partition which you don’t have.
As long as no one else has a better idea I think if you really want to boot both, Windoze and Manjaro from the grub menu you have either to reinstall Windoze or Manjaro, at least I don’t know a procedure to switch an existing install from one to the other.
You are quite right… this install looks quite disorderly. The EFI partition seems to be on the nvme drive
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
while on the SSD with the root partition, it looks like, there is some microsoft/ntfs partition.
/dev/sda1 2048 616447 614400 300M Microsoft basic data
/dev/sda2 616448 468856991 468240544 223.3G Linux filesystem
Very confusing. If the small partition would be the mentioned vfat/EFI partition, it seems it was wrongly configured. But atleast switching to full EFI setup should be way easier.
Could OP please post the output of blkid
?
The blkid reports back nothing. And from what I checked in /sys/firmware/ there is no any efi entry. That leads me to conclusion (from all your advices) that my SSD Manjaro drive boots in Legacy mode. And because my other Nvme Windows drive is installed in efi mode there is no compatibility of the 2 OS in grub and therefore Windows is not showing. Am I right to that conclusion?
So according to Stephane advice above, I should re-install Manjaro after I check all these options in Bios:
- disable secure boot
- disable fast boot
- disable CSM
- no legacy
- disks on AHCI
- UEFI on only or others ( not windows )
While being in Live USB Manjaro I might check /sys/firmaware/ to look for efi presence (that proves I’m booting in efi mode) and proceed with new installation creating a) a boot/efi fat32 512M partition flaged boot & esp, and b) a normal root ext4 solid partition. That way I should be able to boot my SSD Manjaro drive with grub and have the Windows other drive option.
Am I right?
Yes.
Yes.
A further tip: When you boot your USB stick from the firmware usually the name of the boot entry starts with UEFI.
I finally made it and works fine. Today I had some spare time and re-installed Manjaro in efi mode as described above. The only thing I didn’t disable in bios setup was CSM because in my case at least (mobo Asrock Legend) when I disabled CSM the only visible drive in boot up was my Nvme Windows. So I left CSM enabled and Manjaro was installed in efi mode plus Grub now shows Windows drive as well. Many thanks to Wollie, Takei and stephane for their advices.