[SOLVED] "No boot device found. Press any key to restart."
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm somewhat of a Linux newbie, but generally not when it comes to computers. I've got Windows 10 installed on my harddrive. I've also been installing various Linux distros alongside it with no problem. I have/had Windows 10, Kali, Ubuntu, Parrot, and Elementary, all with no problem. Then today, I tried to install Fedora 25, and after it installed, anytime I try to boot, I get a "No boot device found" error, and I can only get it to boot into a Live usb. I hope that my screwing around didn't wipe everything out, so if anyone can help me I'd appreciate it very much.
1) Boot from live usb
2) Mount your partition
3) Chroot into installation
4) Reinstall grub (or whatever boot loader/manager you use)
5) Reboot
6) ???
7) Profit
Ok, that sounds like my answer there. However, can you treat me like a complete dummy, and tell me how to do each step, so I make sure not to screw it up. But thank you for the quick reply.
The exact details might vary, I personally have not used Fedora but essentially the steps should be the same. I don't know how you setup your system to boot. Before performing the steps I have below, I'd recommend a search for Windows Fedora dual boot, and note any instructions regarding "boot loader".
I make a few assumptions in these steps. You will want to apply any specific instructions specific to a Fedora/Windows dual boot environment after you chroot.
Assuming you are using grub, and you are booted from live usb, open up a terminal and type
Code:
lsblk
this will give your harddrives and their layouts.
From here you should be able to determine what your root partition was and then again in your terminal type
Code:
mount /dev/sdXY /mnt
where X represents the disk, and Y the partition number.
Assuming you have a separate /boot partition, you'll want to create a /mnt/boot directory, and mount the partition there
Code:
mkdir /mnt/boot
mount /dev/sdXY /mnt/boot
then
Code:
chroot /mnt
grub-install /dev/sdX
Note: do NOT specify a partition number, only the disk.
then exit from chroot by typing
Ok, I'm starting to get it. So when I list my drives, I get this:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop1 7:1 0 6.5G 1 loop
├─live-base 253:1 0 6.5G 1 dm
└─live-rw 253:0 0 6.5G 0 dm /
sdb 8:16 1 7.6G 0 disk
└─sdb1 8:17 1 7.6G 0 part /run/initramfs/live
sr0 11:0 1 1024M 0 rom
loop2 7:2 0 512M 0 loop
└─live-rw 253:0 0 6.5G 0 dm /
loop0 7:0 0 1.3G 1 loop
sda 8:0 0 698.7G 0 disk
├─sda4 8:4 0 490M 0 part
├─sda2 8:2 0 40M 0 part
├─sda16 259:0 0 68G 0 part
│ ├─fedora-root 253:4 0 41.1G 0 lvm
│ ├─fedora-swap 253:2 0 6.9G 0 lvm [SWAP]
│ └─fedora-home 253:3 0 20.1G 0 lvm
├─sda14 8:14 0 28G 0 part
├─sda9 8:9 0 12.6G 0 part
├─sda12 8:12 0 1M 0 part
├─sda7 8:7 0 450M 0 part
├─sda10 8:10 0 20.9G 0 part
├─sda5 8:5 0 388.3G 0 part
├─sda3 8:3 0 128M 0 part
├─sda17 259:1 0 136.4G 0 part
├─sda1 8:1 0 500M 0 part
├─sda15 8:15 0 33.3G 0 part
├─sda13 8:13 0 1G 0 part
├─sda8 8:8 0 350M 0 part
├─sda11 8:11 0 7.9G 0 part [SWAP]
└─sda6 8:6 0 451M 0 part
I know sda5 is where windows 10 is installed. and sda10 is where ubuntu is installed. sda11 is where I believe, used to be my boot. If you see where it installed fedora, I accidentally installed it differently from all the other distros, and it made need directories or drives for it.
So now... based on what you said I just have one more question, which you may or may not be able to answer.
I believe, before the fedora install.. that it would load grub from the Ubuntu drive. Does that make Ubuntu my root, and then sda11 my boot, in regards to your directions.
Is your Fedora installation
Grub is generally installed to the drive and not a partition.
Running
Code:
lsblk -f
should give you the filesystem type for the partitions as well, /boot will generally be ext2.
As this is installed on lvm, it will slightly complicate things. You will need to note any specific instructions for lvm. this might be useful
I was using grub... I thought through Ubuntu. When grub would load, it would list Ubuntu at the top, then "Windows Boot Manager" a few EFI things.. and then each of my Linux distros, ending with System Setup.
As you can see, there isn't a ext2. I don't know what the LVM is or why Fedora installed as such. (I'm gonna read that page after I post this.)
In gparted, it says sda1 is EFI system fat32 and labeled ESP. sda2 iS basic data fat32 labeled DIAGS. sda4 and sda5 are Microsoft partitions NFTS. as are sda 6,7,8, and 9 (9 is labeled PBR image). 10 is ubuntu ext4. sda11 is linux-swap. sda12 says file system is grub2 core.img (I have a feeling this has something to do with it eh?). 13 is ext4, 14 is Kali, 15 is ext4 (probably another distro), 16 is filesystem LVM2 pv, mount point fedora. 17 is ParrotSec.
No worries lol. Yes I just assmued BIOS but it appears you have EFI, in which case vfat would be your esp. In this case, normally you have a few options. You don't necessarily need a boot partition or grub, as efi should be able to boot the kernel directly. You would instead just mount the ESP (efi system partition) e.g. /dev/sda1 at /boot (or /boot/efi). this should help you with any efi specific instructions.
You said /dev/sda12 is grub2 core.img but I do not see that info in your output above.
You might also have a look at this for grub+efi configuration
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.