Where's GRUB? My dual drive (LM19 & Windows 10) automatically goes straight to Linux. GRUB does not automatically start.

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
James_Smith
Level 4
Level 4
Posts: 457
Joined: Wed Feb 18, 2015 6:41 pm

Where's GRUB? My dual drive (LM19 & Windows 10) automatically goes straight to Linux. GRUB does not automatically start.

Post by James_Smith »

The title says it all but for a few minor details:

I can get into Windows by pushing F12 and selecting Windows but it would be nice if I could make GRUB show up automatically when the computer starts. I know this is possible (and probably simple) because I've seen dual drive computers set up in exactly this way.

Here is the info for my computer:

Code: Select all

mac@mac-Alienware-15-R3:~$ inxi -Fxzd
System:    Host: mac-Alienware-15-R3 Kernel: 4.15.0-36-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: Alienware product: Alienware 15 R3 v: 1.0.8 serial: N/A
           Mobo: Alienware model: Alienware 15 R3 v: A00 serial: N/A
           UEFI [Legacy]: Alienware v: 1.0.8 date: 02/24/2017
Battery    BAT1: charge: 48.6 Wh 69.3% condition: 70.2/99.0 Wh (71%)
           model: COMPAL PABAS0241231 status: Discharging
CPU:       Quad core Intel Core i7-7700HQ (-MT-MCP-) 
           arch: Skylake rev.9 cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 22464
           clock speeds: max: 3800 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz
           4: 800 MHz 5: 800 MHz 6: 800 MHz 7: 800 MHz 8: 800 MHz
Graphics:  Card-1: Intel Device 591b bus-ID: 00:02.0
           Card-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.02hz
           OpenGL: renderer: GeForce GTX 1060/PCIe/SSE2
           version: 4.6.0 NVIDIA 390.77 Direct Render: Yes
Audio:     Card Intel CM238 HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.15.0-36-generic
Network:   Card-1: Qualcomm Atheros Killer E2500 Gigabit Ethernet Controller
           driver: alx port: d000 bus-ID: 3c:00.0
           IF: enp60s0 state: down mac: <filter>
           Card-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
           driver: ath10k_pci bus-ID: 3d:00.0
           IF: wlp61s0 state: up mac: <filter>
           Card-3: Atheros usb-ID: 001-003
           IF: null-if-id state: N/A speed: N/A duplex: N/A mac: N/A
Drives:    HDD Total Size: 4000.8GB (8.7% used)
           ID-1: /dev/sda model: WDC_WDBNCE0010PN size: 1000.2GB
           ID-2: /dev/sdb model: WDC_WDS200T2B0B size: 2000.4GB
           ID-3: USB /dev/sdc model: CT1024MX200SSD1 size: 1000.2GB
           Optical: No optical drives detected.
Partition: ID-1: / size: 1.8T used: 316G (19%) fs: ext4 dev: /dev/sdb1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 47.0C mobo: N/A gpu: 0.0:52C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 242 Uptime: 12 min Memory: 2641.7/15910.0MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
I have been using Linux for years and I am still a newbie
User avatar
all41
Level 19
Level 19
Posts: 9473
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Where's GRUB? My dual drive (LM19 & Windows 10) automatically goes straight to Linux. GRUB does not automatically st

Post by all41 »

Find where grub is installed in a terminal copy/paste the following:
Be sure to click the CODE:SELECT ALL above the command line search instruction

Code: Select all

sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n  2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case  \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 or v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: No GRUB Y ;; esac\""
Then you will need to set bios to boot to that drive.
Everything in life was difficult before it became easy.
kukamuumuka

Re: Where's GRUB? My dual drive (LM19 & Windows 10) automatically goes straight to Linux. GRUB does not automatically st

Post by kukamuumuka »

Is the both of systems installed using the same method (msdos or UEFI)? The results for the next command are?

Code: Select all

sudo parted -l 

Code: Select all

[ -d /sys/firmware/efi ] && echo "EFI mode" || echo "Legacy Bios mode"

Code: Select all

cat /etc/fstab | grep efi
fabien85
Level 7
Level 7
Posts: 1877
Joined: Tue Mar 11, 2014 4:30 pm

Re: Where's GRUB? My dual drive (LM19 & Windows 10) automatically goes straight to Linux. GRUB does not automatically st

Post by fabien85 »

I agree with the above comments, but maybe we can start with a first quick thing: update the grub menu so that it looks for windows and hopefully provides an entry for it.
Open a terminal (Menu > Administration > Terminal, or ctrl+alt+t), copy/paste the following

Code: Select all

sudo update-grub
press enter, enter your password (no character will appear, it's normal), press enter again, wait a bit for the command to complete.
Then reboot. Hopefully you should now see a grub menu showing entries to boot Linux and an entry to boot windows.
If that's not the case, then it has indeed something to do with drives, as all41 suggests, or with the boot mode, as administrollaattori suggests.
Locked

Return to “Installation & Boot”