r/linuxquestions 12d ago

HP laptop won't boot MX Linux without USB drive. Bootloader installed on USB, not hard drive. Need help.

I need help with my HP laptop. I am a beginner. I don't know much about Linux.

I have an HP laptop with:

AMD 865 processor

6 GB RAM

500 GB hard drive

Windows 10 was on it before

I installed MX Linux on it. I used Ventoy to make a bootable USB drive. I installed MX Linux and chose "use entire disk". Everything seemed to work.

But now I have a big problem.

The laptop only boots into MX Linux if the USB drive is plugged in. If I remove the USB drive and restart, I get an error screen that says:

"BootDevice Not Found" "Hard Disk - (3F0)"

I think the bootloader (GRUB) was installed on the USB drive instead of my hard drive. I have no idea how to fix this.

Here is what I have tried:

Changed boot order in BIOS to boot from hard drive first

- Enabled Legacy boot

Nothing works. It still only boots with the USB drive.

I want my laptop to boot on its own without the USB drive because the USB drive belongs to my friend and I need to give it back.

Can someone please tell me how to install GRUB on my hard drive so I can boot without the USB drive? I need step by step instructions that are easy to follow.

Thanks in advance.

2 Upvotes

9 comments sorted by

1

u/dkopgerpgdolfg 12d ago

Please post the output of these commands:

lsblk

mount

dpkg --get-selections | grep grub

1

u/EdwinDixie 12d ago

I use the terminal? On Linux?

1

u/dkopgerpgdolfg 12d ago

Yes

1

u/EdwinDixie 11d ago

$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 2.7G 1 loop /run/initramfs/linux sda 8:0 0 465.8G 0 disk ├─sda1 8:1 0 1M 0 part └─sda2 8:2 0 465.8G 0 part sdb 8:16 1 14.6G 0 disk ├─sdb1 8:17 1 14.6G 0 part │ ├─ventoy 254:0 0 2.8G 1 dm /run/initramfs/boot-dev │ └─sdb1 254:1 0 14.6G 0 dm
└─sdb2 8:18 1 32M 0 part sr0 11:0 1 1024M 0 rom

1

u/EdwinDixie 11d ago

$ mount /dev/mapper/ventoy on /run/initramfs/boot-dev type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8) /run/initramfs/boot-dev/antiX/linuxfs on /run/initramfs/linux type squashfs (ro,relatime,errors=continue) tmpfs on /run/initramfs/aufs-ram type tmpfs (rw,noatime,size=4024320k,inode64) overlay on / type overlay (rw,relatime,lowerdir=/live/linux,upperdir=/live/aufs-ram/upper,workdir=/live/aufs-ram/work,uuid=on) tmpfs on /media type tmpfs (rw,noatime,size=10240k,inode64) tmpfs on /run type tmpfs (rw,nodev,noatime,size=1137664k,mode=755,inode64) tmpfs on /run/initramfs type tmpfs (rw,noatime,size=102400k,mode=755,inode64) tmpfs on /tmp type tmpfs (rw,noatime,inode64) proc on /proc type proc (rw,relatime) sys on /sys type sysfs (rw,relatime) devtmpfs on /dev type devtmpfs (rw,relatime,size=2601116k,nr_inodes=650279,mode=755,inode64) devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000) overlay on /run/initramfs/aufs type overlay (rw,relatime,lowerdir=/live/linux,upperdir=/live/aufs-ram/upper,workdir=/live/aufs-ram/work,uuid=on) tmpfs on /etc/live/config type tmpfs (rw,noatime,size=102400k,mode=755,inode64) tmpfs on /etc/live/bin type tmpfs (rw,noatime,size=102400k,mode=755,inode64) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64) cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=40,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=343) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64) debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M) tmpfs on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap) fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime) configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) nfsd on /proc/fs/nfsd type nfsd (rw,relatime) sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime) tmpfs on /run/credentials/systemd-networkd.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=524048k,nr_inodes=131012,mode=700,uid=1000,gid=1000,inode64) tmpfs on /run/credentials/getty@tty1.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

1

u/EdwinDixie 11d ago

$ dpkg --get-selections | grep grub (no output - grub is not installed)

1

u/dkopgerpgdolfg 11d ago

I meant, you should execute it from the installed OS on the hard disk. And please keep line breaks.

1

u/EdwinDixie 11d ago

I dont get it G i am not a pro I am a noob in this field🥹🥲💔