LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-15-2019, 10:01 PM   #106
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled

here's the new grub configuration file:
Code:
[root@localhost-live /]# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.18.16-300.fc29.x86_64
Found initrd image: /boot/initramfs-4.18.16-300.fc29.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-44d5a50dfd92455fa45cb04f1accb9d0
Found initrd image: /boot/initramfs-0-rescue-44d5a50dfd92455fa45cb04f1accb9d0.img
device-mapper: reload ioctl on osprober-linux-sdc1  failed: Device or resource busy
Command failed.
Found Windows 7 on /dev/sda2
done
It looks like some more boot partitions were found
 
Old 02-15-2019, 10:15 PM   #107
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
post your /boot/efi/EFI/fedora/grub.cfg file
 
Old 02-15-2019, 10:54 PM   #108
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
there is no grub.cfg in that directory just grubia32.efi and grubx64.efi
 
Old 02-15-2019, 10:57 PM   #109
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
that's be it

cat grubx64.efi
cat grubia32.efi
 
Old 02-15-2019, 11:39 PM   #110
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
I can't upload it because the file manager doesn't have permission to access the efi directory, I'm looking online as we speak

Last edited by zavmat; 02-15-2019 at 11:48 PM.
 
Old 02-16-2019, 12:09 AM   #111
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
what's all this?

Code:
�UH��H��0H�}��E��%�E�E��E�H�E��E�H�E�H�@H�H�M�H�U�H��H��������UH��H�H�}�H�E�H�HHH�E��pPH�E��@THc�Hc�H��H��H�H��HiH�H�H��HH�H�E�H�HHH�E��pPH�E��@THc�Hc�H��H��H�H��HiH�H�H��@������UH��H��H�}��u�U�H�M��E�HcЋE�Hc�H��H��H�H��HiH�H�H��PH�H�H�H�H�H��H��А����UH��H��@H�}؉uԉU�H�M�D�E�D�M��E�H�M؋E�HcЋE�Hc�H��H��H�H��HiH�H�H��0H�H�E��H���H�E�H�}�uH��и��H���PH����H��H���H��H�E�H�PH�E�H�@H��u)H�E�H��H���H��и�`H�E�H�U�H�PHH�E�H�U�H�P�E���H�M؋E�Hc�H��H��H�H��H�H��8H�E�Hc�H��H��H)�H�H�E�H�E��@��y:H�E��@������u'�}��tH�E��@��9E�uH�E�H�U�H����DH�E��@��x8H�E��@������u%�}��tH�E��@��9E�uH�E�H�U�H����E�H�E��@��9E��%���H�E�H��
 
Old 02-16-2019, 02:41 AM   #112
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
Here they are.
Attached Files
File Type: txt grubia32a.txt (250.0 KB, 2 views)
File Type: txt grubia32ab.txt (250.0 KB, 0 views)
File Type: txt grubia32ac.txt (209.7 KB, 3 views)
File Type: txt grubx64.txt (47.2 KB, 6 views)
 
Old 02-16-2019, 06:49 AM   #113
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
do you have a grub.cfg in /boot/grub2?
 
Old 02-16-2019, 06:51 AM   #114
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
is /dev/sda2 mounted to /boot and /dev/sda1 mounted to /boot/efi?
check with
Code:
mount -l |grep /dev/sda
if you have no output then they are not mounted.

Last edited by colorpurple21859; 02-16-2019 at 06:55 AM.
 
Old 02-16-2019, 07:23 AM   #115
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
ok I got admit I do not do this for the most part, file is a good program to use to see what kind of file you're dealing with, but the ones that output all of that crap, just so you know for future reference, they are binary files. nothing you can do with them in changing what they do unless you chance the source code recompile and install them, it is the script ones that are needed.

Code:
file fileNAME
Tells you what you're dealing with if you do not know.
 
1 members found this post helpful.
Old 02-16-2019, 09:58 AM   #116
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
just a grubenv type:Link(broken) (inode/symlink)

They aren't mounted

Last edited by zavmat; 02-16-2019 at 09:59 AM.
 
Old 02-16-2019, 01:20 PM   #117
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
After reinstalling Fedora there is still no Grub menu. Here's the new lsblk
Code:
NAME              MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0               7:0    0   1.7G  1 loop 
loop1               7:1    0   6.5G  1 loop 
├─live-rw         253:0    0   6.5G  0 dm   /
└─live-base       253:1    0   6.5G  1 dm   
loop2               7:2    0    32G  0 loop 
└─live-rw         253:0    0   6.5G  0 dm   /
sda                 8:0    0 698.7G  0 disk 
├─sda1              8:1    0   200M  0 part 
├─sda2              8:2    0 263.3G  0 part 
├─sda3              8:3    0 263.3G  0 part 
├─sda4              8:4    0    25G  0 part 
├─sda5              8:5    0     1G  0 part 
├─sda6              8:6    0 120.6G  0 part 
│ ├─fedora-swap   253:2    0   5.9G  0 lvm  [SWAP]
│ ├─fedora-home   253:3    0  64.8G  0 lvm  
│ └─fedora-root   253:4    0    50G  0 lvm  
├─sda7              8:7    0     1M  0 part 
├─sda8              8:8    0     1G  0 part 
└─sda9              8:9    0    24G  0 part 
  ├─fedora00-swap 253:5    0   2.5G  0 lvm  [SWAP]
  └─fedora00-root 253:6    0  21.5G  0 lvm  
sdb                 8:16   1   3.7G  0 disk 
├─sdb1              8:17   1   1.8G  0 part /run/initramfs/live
├─sdb2              8:18   1   9.8M  0 part 
└─sdb3              8:19   1  20.5M  0 part 
sdc                 8:32   1  28.7G  0 disk /run/media/liveuser/SanDiskNTFS
sr0                11:0    1  1024M  0 rom
It's installed on sda9. If I redo the commands to fix grub, should I replace sda5 with sda8?

Thanks!
 
Old 02-16-2019, 03:02 PM   #118
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Look at post 97
 
Old 02-16-2019, 05:44 PM   #119
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
Post New bootinfoscript

Alright, here is the new grub.cfg file embedded in the bootinfoscript.

Running the commands from both threads doesn't do anything anymore, when I reboot it jumps directly to live and the bios only shows removable media.
Attached Files
File Type: txt RESULTS.txt (46.1 KB, 2 views)

Last edited by zavmat; 02-16-2019 at 06:28 PM. Reason: Not grub.cfg
 
Old 02-17-2019, 08:21 PM   #120
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
try one of these, the first is by chrooting into your original fedora.
Code:
sudo mkdir /mnt/maps
sudo mount /dev/mapper/fedora-root /mnt/maps
sudo mount /dev/sda5 /mnt/maps/boot
sudo mount /dev/sda1 /mnt/maps/boot/efi
sudo mount --bind /dev /mnt/maps/dev
sudo mount --bind /proc /mnt/maps/proc
sudo mount --bind /sys /mnt/maps/sys
chroot /mnt/maps
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
exit

Code:
sudo mkdir /mnt/maps
sudo mount /dev/mapper/fedora00-root /mnt/maps
sudo mount /dev/sda8 /mnt/maps/boot
sudo mount /dev/sda1 /mnt/maps/boot/efi
sudo mount --bind /dev /mnt/maps/dev
sudo mount --bind /proc /mnt/maps/proc
sudo mount --bind /sys /mnt/maps/sys
chroot /mnt/maps
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
exit
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to transfer files from a linux machine to a windows machine which are not in the same network Lakshmi Yallampalli Linux - Networking 6 07-16-2010 04:50 AM
LXer: Wal-Mart's $199 (formerly $198) Linux box is here -- and so is the OS that runs LXer Syndicated Linux News 0 11-07-2007 06:30 AM
Windows Vista (formerly Longhorn) jaz General 39 02-19-2007 08:27 PM
Linux on Averatec (formerly Sotec) 3120V TheFarLeft Linux - General 1 11-29-2003 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration