Hi
I had dual boot working fine but had to reinstall windows 10. Since then it obviously the grub menu is gone and the system auto boots into windows. I’ve got windows and manjaro running on different disks and I’ve found this resource which explains how to restore grub, but i’m not sure which disk it needs to be applied to. I’m assuming it needs to be applied to the manjaro disk, is that right? Here are some outputs (i’ve excluded additional disks which have no operating systems on them):
~ >>> sudo fdisk -l
[sudo] password for sunil:
Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: ADATA SX8200PNP
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: 3BAD1916-8290-435C-BE92-93E03FC45DCB
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 613342325 613102710 292.4G Microsoft basic data
/dev/nvme0n1p4 613343232 614399999 1056768 516M Windows recovery environment
/dev/nvme0n1p5 614400000 2000406527 1386006528 660.9G Microsoft basic data
Disk /dev/sdd: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 840
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: 59890B4E-9F49-6245-B7D8-1E644D25173D
Device Start End Sectors Size Type
/dev/sdd1 2048 1050623 1048576 512M Microsoft basic data
/dev/sdd2 1050624 5244927 4194304 2G Linux swap
/dev/sdd3 5244928 117884927 112640000 53.7G Linux filesystem
/dev/sdd4 117884928 488394751 370509824 176.7G Microsoft basic data
The windows install is on /dev/nvme0n1 and manjaro on /dev/sdd.
Am I right to assume I need to run the following commands from a Live boot CD?
sudo grub-install /dev/sdd
sudo update-grub
Thanks in advance!
Sunny
Thanks Andreas,
I think in my case this is most relevant, hopefully will help answer my question:
~ >>> inxi --admin --verbosity=7 --filter --width
System:
Kernel: 5.10.89-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
root=UUID=efc747a7-09fb-4b17-ab85-6f223719f6ed rw quiet apparmor=1
security=apparmor resume=UUID=c3c9213d-a251-4cf2-b411-9587898ab8f4
udev.log_priority=3
Desktop: GNOME 41.2 tk: GTK 3.24.31 wm: gnome-shell dm: GDM 41.0
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Desktop Mobo: Micro-Star model: MAG X570 TOMAHAWK WIFI (MS-7C84)
v: 1.0 serial: <superuser required> UEFI: American Megatrends LLC. v: 1.83
date: 09/26/2021
Battery:
Message: No system battery data found. Is one present?
Memory:
RAM: total: 31.34 GiB used: 5.12 GiB (16.3%)
RAM Report:
permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3
family: 0x19 (25) model-id: 0x21 (33) stepping: 0 microcode: 0xA201016
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 2850 high: 3599
min/max: 2200/4995:5726:4850:5143:5288:5581:5437 boost: enabled scaling:
driver: acpi-cpufreq governor: schedutil cores: 1: 2875 2: 2877 3: 2868
4: 2878 5: 2877 6: 3599 7: 2788 8: 2221 9: 2410 10: 2229 11: 2877 12: 2880
13: 2877 14: 3598 15: 2874 16: 2878 bogomips: 121658
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht
hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni popcnt
pse pse36 rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni
skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor
svm svm_lock syscall tce topoext tsc tsc_scale umip v_vmsave_vmload vaes
vgif vmcb_clean vme vmmcall vpclmulqdq wbnoinvd wdt xgetbv1 xsave xsavec
xsaveerptr xsaveopt xsaves
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,
IBRS_FW, STIBP: always-on, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: ZOTAC driver: nvidia
v: 495.44 alternate: nouveau,nvidia_drm bus-ID: 2d:00.0 chip-ID: 10de:1b81
class-ID: 0300
Display: x11 server: X.org 1.21.1.2 compositor: gnome-shell driver:
loaded: nvidia resolution: <missing: xdpyinfo>
Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
Device-1: NVIDIA GP104 High Definition Audio vendor: ZOTAC
driver: snd_hda_intel v: kernel bus-ID: 2d:00.1 chip-ID: 10de:10f0
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus-ID: 2f:00.4 chip-ID: 1022:1487
class-ID: 0403
Device-3: XMOS iFi (by AMR) HD USB Audio type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-1:2 chip-ID: 20b1:3008
class-ID: 0300 serial: <filter>
Sound Server-1: ALSA v: k5.10.89-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.42 running: yes
Network:
Device-1: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
v: kernel port: f000 bus-ID: 26:00.0 chip-ID: 10ec:8125 class-ID: 0200
IF: enp38s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
IP v6: <filter> type: noprefixroute scope: link
WAN IP: <filter>
Bluetooth:
Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-4:3
chip-ID: 8087:0029 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
Message: No logical block device data found.
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 8.13 TiB used: 3.8 TiB (46.7%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: A-Data model: SX8200PNP
size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: S0118C temp: 30.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:6 vendor: Samsung model: SSD 960 EVO 250GB
size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 3B7QCXE7 temp: 30.9 C scheme: GPT
ID-3: /dev/sda maj-min: 8:0 vendor: Samsung model: HD401LJ
size: 372.61 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
type: N/A serial: <filter> rev: 0-15 scheme: GPT
ID-4: /dev/sdb maj-min: 8:16 vendor: Western Digital
model: WD10EAVS-00D7B0 size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1A01
scheme: MBR
ID-5: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST6000DM003-2CY186
size: 5.46 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 5425 serial: <filter> rev: 0001 scheme: GPT
ID-6: /dev/sdd maj-min: 8:48 vendor: Samsung model: SSD 840 EVO 250GB
size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: DB6Q scheme: GPT
ID-7: /dev/sde maj-min: 8:64 type: USB vendor: SanDisk model: Ultra
size: 14.53 GiB block-size: physical: 512 B logical: 512 B type: N/A
serial: <filter> rev: 1.00 scheme: MBR
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 53.71 GiB size: 52.62 GiB (97.96%) used: 33.25 GiB (63.2%)
fs: ext4 dev: /dev/sdd3 maj-min: 8:51 label: N/A
uuid: efc747a7-09fb-4b17-ab85-6f223719f6ed
ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
used: 300 KiB (0.1%) fs: vfat dev: /dev/sdd1 maj-min: 8:49 label: N/A
uuid: 77D3-6D8E
ID-3: /mnt/BIG raw-size: 5.46 TiB size: 5.46 TiB (100.00%)
used: 3.65 TiB (66.9%) fs: ntfs dev: /dev/sdc2 maj-min: 8:34 label: BIG
uuid: 6AB48312B482E045
ID-4: /mnt/HOME_SLOW raw-size: 210 GiB size: 205.7 GiB (97.95%)
used: 59.7 MiB (0.0%) fs: ext4 dev: /dev/sda5 maj-min: 8:5 label: N/A
uuid: 8814fde7-9d50-4429-9dea-f2fa523c2b1e
ID-5: /mnt/MIRROR raw-size: N/A size: 1.82 TiB used: 1.73 TiB (95.1%)
fs: cifs dev: /dev/MIRROR
ID-6: /mnt/SC_ONEUP raw-size: 232.88 GiB size: 232.88 GiB (100.00%)
used: 751.6 MiB (0.3%) fs: ntfs dev: /dev/nvme1n1p1 maj-min: 259:7
label: SIERRA uuid: DED4C257D4C23217
ID-7: /mnt/VIDEOS raw-size: 176.67 GiB size: 176.67 GiB (100.00%)
used: 23.58 GiB (13.3%) fs: ntfs dev: /dev/sdd4 maj-min: 8:52 label: VIDEOS
uuid: 869A60739A606223
ID-8: /run/timeshift/backup raw-size: 107.42 GiB size: 105.24 GiB (97.96%)
used: 96.07 GiB (91.3%) fs: ext4 dev: /dev/sda4 maj-min: 8:4 label: N/A
uuid: f78688a2-b024-41d8-99f6-be9ef4f44a1d
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 2 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sdd2 maj-min: 8:50 label: N/A
uuid: c3c9213d-a251-4cf2-b411-9587898ab8f4
Unmounted:
ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 100 MiB fs: vfat label: N/A
uuid: FE9E-8F60
ID-2: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required>
label: N/A uuid: N/A
ID-3: /dev/nvme0n1p3 maj-min: 259:3 size: 292.35 GiB fs: ntfs label: N/A
uuid: 6C3AC6A83AC66EA0
ID-4: /dev/nvme0n1p4 maj-min: 259:4 size: 516 MiB fs: ntfs label: N/A
uuid: C63ABF383ABF23F9
ID-5: /dev/nvme0n1p5 maj-min: 259:5 size: 660.9 GiB fs: ntfs label: FAST
uuid: 22F6228CF6226071
ID-6: /dev/sda1 maj-min: 8:1 size: 512 MiB fs: vfat label: N/A
uuid: BAF0-6465
ID-7: /dev/sda2 maj-min: 8:2 size: 1.95 GiB fs: swap label: N/A
uuid: a96eb750-7d0c-48d5-8585-387dc95b6fd5
ID-8: /dev/sda3 maj-min: 8:3 size: 52.73 GiB fs: ext4 label: N/A
uuid: 0f276758-3ef6-41cf-9c2d-669f13556ca6
ID-9: /dev/sdb1 maj-min: 8:17 size: 931.51 GiB fs: ntfs label: BACKUP
uuid: 8C2A7F232A7F098A
ID-10: /dev/sdc1 maj-min: 8:33 size: 16 MiB fs: <superuser required>
label: N/A uuid: N/A
ID-11: /dev/sde1 maj-min: 8:65 size: 2.92 GiB fs: iso9660
ID-12: /dev/sde2 maj-min: 8:66 size: 4 MiB fs: vfat label: MISO_EFI
uuid: A70B-30CF
USB:
Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 6 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 1-1:2 info: XMOS iFi (by AMR) HD USB Audio type: Audio,HID
driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 20b1:3008 class-ID: 0300 serial: <filter>
Device-2: 1-4:3 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb
interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029
class-ID: e001
Device-3: 1-5:4 info: Apple Aluminium Keyboard (ANSI) type: Keyboard,HID
driver: apple,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 350mA
chip-ID: 05ac:024f class-ID: 0300
Device-4: 1-6:5 info: DEXIN COUGAR 700M Gaming Mouse
type: Mouse,Keyboard,HID driver: hid-generic,usbhid interfaces: 3 rev: 2.0
speed: 12 Mb/s power: 100mA chip-ID: 12cf:700b class-ID: 0300
Hub-2: 2-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 6 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 3-5:2 info: Micro Star MYSTIC LIGHT type: HID
driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s
power: 500mA chip-ID: 1462:7c84 class-ID: 0300 serial: <filter>
Hub-4: 3-6:3 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s
power: 100mA chip-ID: 05e3:0608 class-ID: 0900
Device-1: 3-6.2:4 info: NZXT Kraken X type: HID driver: hid-generic,usbhid
interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 1e71:170e
class-ID: 0300 serial: <filter>
Hub-5: 4-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Hub-6: 5-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 5-3:2 info: Valve Wireless Steam Controller type: Keyboard,HID
driver: hid-steam,usbhid interfaces: 5 rev: 2.0 speed: 12 Mb/s power: 100mA
chip-ID: 28de:1142 class-ID: 0300
Device-2: 5-4:3 info: Razer USA Tartarus V2 type: Keyboard,Mouse
driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
power: 500mA chip-ID: 1532:022b class-ID: 0300
Hub-7: 6-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Device-1: 6-2:2 info: SanDisk Ultra type: Mass Storage driver: usb-storage
interfaces: 1 rev: 3.0 speed: 5 Gb/s power: 896mA chip-ID: 0781:5581
class-ID: 0806 serial: <filter>
Sensors:
System Temperatures: cpu: 34.5 C mobo: N/A gpu: nvidia temp: 39 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 42%
Info:
Processes: 391 Uptime: 47m wakeups: 0 Init: systemd v: 250 tool: systemctl
Compilers: gcc: 11.1.0 Packages: 1516 pacman: 1506 lib: 450 flatpak: 0
snap: 10 Shell: Zsh v: 5.8 running-in: terminator inxi: 3.3.11
Thanks!
Sunny
1 - create 2 profiles , one for windows , other for linux under UEFI motherboard
2 - you need to format sdd1 to fat32 (vfat) and add flags option ESP & Boot,
3 - add UUID to /etc/fstab on your disk ( chroot )
4- and reinstall GRUB for UEFI ( chroot )
==> see this
boot on USB iso manjaro
open a terminal
inxi -Mxa
sudo parted -l
sudo efibootmgr -v
sudo lsblk -fs
test -d /sys/firmware/efi && echo efi || echo bios
fisrt chroot to check /etc/fstab
sudo manjaro-chroot -a ( type 1 if olnt one line 0 appears )
nano /etc/fstab ( check UUID for /boot/efi , save Ctrl+x )
exit ( quit chroot )
then 2nd chroot ( you need /boot/efi ok this time )
sudo manjaro-chroot -a ( type 1 if only one line 0 appears )
grub-install --target=x86_64-efi --efi-directory=/boot/ef…
Thanks so much for your help Stephane. I’m away from PC now so will take a look at this again tomorrow
Quick qu, what do you mean by “create 2 profiles , one for windows , other for linux under UEFI motherboard”? Is that to make profiles in bios for default boot device?
Cheers
in your UEFI motheboard you can save settings , create 2 profile
1 Like
First of all you need to disable Fast Boot and hibernation in Win 10. By default Win 10 will hibernate when you click Shut down . Grub can´t detect windows whilst in hibernation.
1 Like
system
Closed
24 January 2022 21:17
8
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.