Ask Your Question
0

Error booting fedora, seeing bash-like things

asked 2018-04-10 04:50:20 -0600

hbhbhbhbhb gravatar image

updated 2018-04-11 05:40:59 -0600

hhlp gravatar image

Thank you for all replies.

I'm using Windows10 and Fedora dual system. From yesterday I have got this bash-like thing showing rather than ask me which system to boot.

I've tried F10 and "c" under grub and that didn't help. I also tried the commands like "set", "insmod normal", "insmod linux", then "linux". However I don't have command "linux", but "linuxefi". I guess that suggests that I have UEFI system?

Then I download the Fedora 27 image on the official website and use their tool to write the image into a USB and get booted into the linux live. When I tried to do the mount things like "sudo mount /dev/sde1 /mnt" which is suggested on some other websites I get:"mount: /mnt: /dev/sda1 already mounted on /run/initramfs/live."

Also, when I tried to reinstall the Fedora, I can only find my windows 10 disk and that USB, the disk where my Fedora was originally in is missing.

The message from "fdisk -l":

   Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
    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: gpt
    Disk identifier: 64FB6899-E7F2-4AB1-9CBF-B5C3F11B6F60

    Device    

         Start        End   Sectors   Size Type
/dev/nvme0n1p1      2048     534527    532480   260M EFI System
/dev/nvme0n1p2    534528     567295     32768    16M Microsoft reserved
/dev/nvme0n1p3    567296  506863615 506296320 241.4G Microsoft basic data
/dev/nvme0n1p4 506863616  895764479 388900864 185.5G Microsoft basic data
/dev/nvme0n1p5 998166528 1000214527   2048000  1000M Windows recovery environmen
/dev/nvme0n1p6 895764480  897861631   2097152     1G Linux filesystem
/dev/nvme0n1p7 897861632  998166527 100304896  47.8G Linux LVM

Partition table entries are not in disk order.

Disk /dev/mapper/fedora-swap: 4.9 GiB, 5247074304 bytes, 10248192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-root: 43 GiB, 46107983872 bytes, 90054656 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 57.3 GiB, 61505273856 bytes, 120127488 sectors
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: 0x2563bf1a

Device     Boot  Start     End Sectors  Size Id Type
/dev/sda1  *         0 3186687 3186688  1.5G  0 Empty
/dev/sda2       113104  131123   18020  8.8M ef EFI (FAT-12/16/32)
/dev/sda3       131124  169251   38128 18.6M  0 Empty


Disk /dev/loop0: 1.4 GiB, 1535807488 bytes, 2999624 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 6.5 GiB, 6981419008 bytes, 13635584 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes ...
(more)
edit retag flag offensive close merge delete

Comments

Normally, the boot device is mounted on /run/initramfs/live, so it looks like /dev/sda1 is containing the live iso image.

villykruse gravatar imagevillykruse ( 2018-04-10 11:38:57 -0600 )edit

A screenshot or photo would help understand what you're stuck in. It almost sounds like you're stuck in the bootloader. How did you create the installation media? As in, what image and what tool did you use to create the bootable USB stick?

cmurf gravatar imagecmurf ( 2018-04-10 12:17:15 -0600 )edit

Use the fedora specific guide rather than the ubunto guide. https://fedoraproject.org/wiki/GRUB_2.

Notice, you don't run grub2-install on UEFI systems.

villykruse gravatar imagevillykruse ( 2018-04-10 13:41:52 -0600 )edit

Thank you for this website: https://fedoraproject.org/wiki/GRUB_2 I brute-forced to ls all drives and found some vmlinuz and initramfs under (hd1,6). However, I don't understand the part "set root = (hd0,3)", why (hd0,3)? And "root=/dev/sda3", why is sda3?

hbhbhbhbhb gravatar imagehbhbhbhbhb ( 2018-04-10 22:28:05 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-04-11 01:27:11 -0600

villykruse gravatar image

It appears you wrote the iso image to your 57 Gig USB disk unit, and the original contents of that USB disk unit is now lost.

But it looks like you have some linux stuff on the disk /dev/nvme0n1. As the linux file systems are hidden inside the logical volume /dev/nvme0n1p7 you can run lsblk -f, and you should see the actual device names for each of the file systems inside that logical volume.

Maybe one of them is the root file system of you linux, and that would then be the device to mount on /mnt. Then look for something that looks like the boot file system, and mount that on /mnt/boot, and /dev/nvme0n1p1 is then mounted on /mnt/boot/efi.

In general, I would recommend install the iso image on a smallish USB memory stick dedicated to this purpose, and when using MediaWriter, be extra carfull that the selected USB device is the one you want to use for this purpose. It is all too easy to select the wrong USB device if you have more than one USB disk device plugged in to your system.

edit flag offensive delete link more

Comments

Hi, I updated the post and add the result from lsblk -f. Is the actual device name something like 6d0NEO-Ie1o-lac5-AwAW-ZURi-HDcY-q0fZuU? so I mount like mount /dev/'that_name' /mnt? Also, that would be great if you could tell me more about root. Is that a directory on my linux disk? Thank you very much for the help.

hbhbhbhbhb gravatar imagehbhbhbhbhb ( 2018-04-11 03:44:53 -0600 )edit

No, it would be /dev/mapper/fedora-root. You don't have a /boot file system so skip mounting that.

villykruse gravatar imagevillykruse ( 2018-04-11 07:26:56 -0600 )edit
0

answered 2018-04-10 13:56:03 -0600

ssieb gravatar image

You need to explain more about how this situation happened. If /dev/sda1 is mounted at /run/initramfs/live, then your USB boot device is the first disk. This either means that the BIOS reordered the drives or your hard drive is not being recognized. Did you have a hard drive failure? The output of blkid or fdisk -l would be very helpful. The tutorials that mention pressing F10 are expecting that you are at the GRUB boot prompt, not a live image. For further help we need more info about what happened and if you have an EFI system or not.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-04-10 04:50:20 -0600

Seen: 147 times

Last updated: Apr 11 '18