Computer Hope

Software => BSD, Linux, and Unix => Topic started by: zask on March 27, 2021, 10:22:54 PM

Title: No grub menu unless usb inserted? Dual boot windows 10/linux.
Post by: zask on March 27, 2021, 10:22:54 PM
Sorry I am a little confused on the topic. I have an asus essentio series with asus uefi bios utility and I tried installing linux on the hardrive by creating a "/boot", "/" root, and swap partition. I have successfully installed the linux operating system but the grub menu only shows up when I have the usb plugged in. I was hoping that linux or the grub menu could be accessed from the bios utility similar to how windows 10 can be. But it doesn't show there, when I hold shift at the start screen to force boot grub it works but it only works with the usb plugged in, otherwise it tells me to insert a boot media because it doesn't detect linux or grub. Im sure there are similar issues somewhere on the internet but I have failed to find one that properly explained the issue, When I load linux from the usb everything works fine as if it was installed on the computer. But it just doesn't allow me to dual boot or boot in general unless that usb is plugged in.

I did install windows before attempting to install linux

fdisk -l displays
Code: [Select]
Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: TOSHIBA DT01ACA1
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
Disk identifier: 0F62C27F-5786-4923-97AE-D1B3001BC8DB
 
Device          Start        End    Sectors   Size Type
/dev/sda1        2048     206847     204800   100M EFI System
/dev/sda2      206848     239615      32768    16M Microsoft reserved
/dev/sda3      239616 1338042367 1337802752 637.9G Microsoft basic data
/dev/sda4  1952442368 1953523711    1081344   528M Windows recovery environment
/dev/sda5  1338042368 1339996159    1953792   954M Linux filesystem
/dev/sda6  1339996160 1925933055  585936896 279.4G Linux filesystem
/dev/sda7  1925933056 1952442367   26509312  12.7G Linux swap
 
Partition table entries are not in disk order.
 
 
 
 
Disk /dev/sdb: 14.57 GiB, 15631122432 bytes, 30529536 sectors
Disk model: Cruzer Glide   
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: 0x016a74f0
 
Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *     2048 30529535 30527488 14.6G  c W95 FAT32 (LBA)
root@lettuce:/home/lettuce# df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev             3632572       0   3632572   0% /dev
tmpfs             732628    1336    731292   1% /run                                                                                                                           
/dev/sda6      287320352 8660432 263995116   4% /                                                                                                                             
tmpfs            3663120   18752   3644368   1% /dev/shm                                                                                                                       
tmpfs               5120       0      5120   0% /run/lock                                                                                                                     
tmpfs            3663120       0   3663120   0% /sys/fs/cgroup                                                                                                                 
/dev/sda5         945144   80052    799864  10% /boot                                                                                                                         
tmpfs             732624       8    732616   1% /run/user/1000   

What I would like is for it to boot grub or linux os directly from the bios or at least display grub menu at pc startup without the usb needing to be plugged in. If I wanted to make a plugnboot usb I would have just launched the usb with persistence and I wouldn't have installed linux on my hardrive. I assumed that because I have reserved a space for the linux OS and grub that it would boot from there but nope.  :( Any clue what I did wrong?
Title: Re: No grub menu unless usb inserted? Dual boot windows 10/linux.
Post by: zask on March 27, 2021, 11:39:49 PM
On my boot options I have this displayed
Code: [Select]
asus sh-224DB -This was here origionally and does nothing as far as I know but boots linux when usb is pluged in.
Windows Boot Manager (P1: TOSHIBA DT01ACA100) -Boots Windows.
PO: TOSHIBA FT01ACA100 (953869MB)  -Boots Windows unless usb is pluged in it'll boot linux.
SanDisk Cruzer Glize (14907MB) -Linux usb
UEFI: SanDisk Cruzer Glide (12907MB) -Linux usb in UEFI.

Also sorry that I failed to mention the linux OS that I installed is Kali. Not trying to cause any chaos here just trying to find a solution to my issue.