LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   elementary OS (https://www.linuxquestions.org/questions/elementary-os-112/)
-   -   Grub Just Redirects to Windows (https://www.linuxquestions.org/questions/elementary-os-112/grub-just-redirects-to-windows-4175679073/)

MickTheRus 07-20-2020 07:59 PM

Grub Just Redirects to Windows
 
This Might Be Confusing But Let Me Explain. I reinstalled Elementary OS because It had wireless adapter bug issue (fixed it). So After Installing EOS again I still see the GRUB as boot option from the previous Install, but when I select to boot to it, it just boots me to Windows. Is there any way I can add EOS to it as a secondary option

Edit 1: When I boot the the Grub it just opens Grub Config and if I boot back to Win10 and check msconfig boot option only windows shows up there.

Edit 2: So I fixed it. I used something Called Boot-Repair-Disk, Worked Like a Charm
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update
sudo apt install boot-repair

syg00 07-20-2020 10:48 PM

If comfortable using the terminal, go here, download the script (click the green dropdown button) and run it. Post the entire RESULTS.txt it generates.
Can be run from a liveUSB. This will give us some configuration data to work with

MickTheRus 07-21-2020 01:43 AM

Quote:

Originally Posted by syg00 (Post 6147524)
If comfortable using the terminal, go here, download the script (click the green dropdown button) and run it. Post the entire RESULTS.txt it generates.
Can be run from a liveUSB. This will give us some configuration data to work with

Linux User Not Comfortable with Using Terminal? Sounds Iteresting

syg00 07-21-2020 01:49 AM

You'd be surprised - everybody converting over (from Win especially) wants everything gooey. Sometimes makes it damn hard to help them.

ondoho 07-21-2020 07:00 AM

Quote:

Originally Posted by MickTheRus (Post 6147496)
This Might Be Confusing But Let Me Explain. I reinstalled Elementary OS because It had wireless adapter bug issue (fixed it). So After Installing EOS again I still see the GRUB as boot option from the previos Install, but when I select to boot to it, it just boots me to Windows. Is there any way I can add EOS to it as a secondary option

Wild guess: you just clicked through the installer, which recognized a previous eOS install and made some erroneous decisions.

colorpurple21859 07-21-2020 07:51 AM

Another option is boot-repair iso, https://sourceforge.net/p/boot-repair-cd/home/Home/ Post the the boot-info results, the boot-repair doesn't always fix correctly.

MickTheRus 07-21-2020 12:08 PM

Quote:

Originally Posted by ondoho (Post 6147611)
Wild guess: you just clicked through the installer, which recognized a previous eOS install and made some erroneous decisions.

It never showed up to dual boot with windows just wipe the drive and partition

MickTheRus 07-21-2020 04:03 PM

Quote:

Originally Posted by syg00 (Post 6147524)
If comfortable using the terminal, go here, download the script (click the green dropdown button) and run it. Post the entire RESULTS.txt it generates.
Can be run from a liveUSB. This will give us some configuration data to work with

=> Windows 7/8/2012 is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

File system:
Boot sector type: -
Boot sector info:

sda2: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 4,294,967,295 4,294,967,295 ee GPT

/dev/sda1 ends after the last sector of /dev/sda

GUID Partition Table detected.

Partition Attrs Start Sector End Sector # of Sectors System
/dev/sda1 34 32,767 32,734 Microsoft Reserved Partition (Windows)
/dev/sda2 32,768 3,907,026,943 3,906,994,176 Data partition (Windows/Linux)

Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set

"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/loop1 squashfs
/dev/loop2 squashfs
/dev/loop3 squashfs
/dev/loop4 squashfs
/dev/loop5 squashfs
/dev/loop6 squashfs
/dev/nvme0n1
/dev/nvme0n1p1 D4B62CE1B62CC638 ntfs Recovery
/dev/nvme0n1p2 B82D-B96F vfat
/dev/nvme0n1p3
/dev/nvme0n1p4 BCFC4AC0FC4A7524 ntfs FAST ASS
/dev/nvme0n1p5 db2021ee-ba3e-4e55-880a-19cb57488e38 ext4
/dev/sda1
/dev/sda2 D866223866221830 ntfs Big Dick Drive

========================= "ls -l /dev/disk/by-id" output: ======================

total 0
lrwxrwxrwx 1 root root 9 Jul 21 08:39 ata-ST2000DM008-2FR102_ZFL27T0Z -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 21 08:39 ata-ST2000DM008-2FR102_ZFL27T0Z-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 21 08:39 ata-ST2000DM008-2FR102_ZFL27T0Z-part2 -> ../../sda2
lrwxrwxrwx 1 root root 13 Jul 21 08:39 nvme-eui.a03299fd2e0d1804 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Jul 21 08:39 nvme-eui.a03299fd2e0d1804-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jul 21 08:39 nvme-eui.a03299fd2e0d1804-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jul 21 08:39 nvme-eui.a03299fd2e0d1804-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Jul 21 08:39 nvme-eui.a03299fd2e0d1804-part4 -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 15 Jul 21 08:39 nvme-eui.a03299fd2e0d1804-part5 -> ../../nvme0n1p5
lrwxrwxrwx 1 root root 13 Jul 21 08:39 nvme-LENSE20256GMSP34MEAT2TA_1197069701804 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Jul 21 08:39 nvme-LENSE20256GMSP34MEAT2TA_1197069701804-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jul 21 08:39 nvme-LENSE20256GMSP34MEAT2TA_1197069701804-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jul 21 08:39 nvme-LENSE20256GMSP34MEAT2TA_1197069701804-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Jul 21 08:39 nvme-LENSE20256GMSP34MEAT2TA_1197069701804-part4 -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 15 Jul 21 08:39 nvme-LENSE20256GMSP34MEAT2TA_1197069701804-part5 -> ../../nvme0n1p5
lrwxrwxrwx 1 root root 9 Jul 21 08:39 wwn-0x5000c500c5d42fb1 -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 21 08:39 wwn-0x5000c500c5d42fb1-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 21 08:39 wwn-0x5000c500c5d42fb1-part2 -> ../../sda2

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/fuse /run/user/1000/doc fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/nvme0n1p1 /media/Recovery fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/nvme0n1p4 /media/FAST_ASS fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
/dev/nvme0n1p5 / ext4 (rw,relatime,errors=remount-ro)
/dev/sda2 /media/mick/Big Dick Drive fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)

colorpurple21859 07-21-2020 05:52 PM

Quote:

I still see the GRUB as boot option
What do you mean by this? Do you have a grub boot menu, or just a grub> grub prompt, or the grub option in the bios boot menu?

syg00 07-21-2020 08:20 PM

That listing is about a third of what I expected - if that is all of it, you might need to use a decent liveCD - say systemrescue; or Mint/Fedora/Ubuntu ... almost anything current.
Having an fdisk that can't handle gpt is just unacceptable these days.

MickTheRus 07-22-2020 07:30 PM

Quote:

Originally Posted by colorpurple21859 (Post 6147815)
What do you mean by this? Do you have a grub boot menu, or just a grub> grub prompt, or the grub option in the bios boot menu?

During Bios Boot Menu it has option to boot to Ubuntu (grub) but when i boot to it it just boots to Win10


All times are GMT -5. The time now is 10:06 PM.