LinuxQuestions.org
Visit Jeremy's Blog.
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-12-2019, 06:01 PM   #76
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled

No luck with booting from bios. I don't have any efi boot option on the live usb if that's what you mean. I know that it is not sda6 because it is too large. with all the installations, there wasn't enough disk space to make a partition that large when I installed the last one.

Last edited by zavmat; 02-12-2019 at 08:56 PM.
 
Old 02-12-2019, 06:25 PM   #77
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
The only other possible option would be sda5, but that seems small for a linux system. You could mount each partition from the live usb and see what is on them.
 
Old 02-12-2019, 09:12 PM   #78
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
what do you make of all this? every time I look at it I feel like there's just more items listed.

Code:
Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
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: B7850B5C-4716-CC49-9BFC-C316EAA97D14

Device          Start        End   Sectors   Size Type
/dev/sda1        2048     411647    409600   200M EFI System
/dev/sda2      673792  552939512 552265721 263.3G Windows recovery environment
/dev/sda3   552939519 1105205239 552265721 263.3G Microsoft basic data
/dev/sda4  1360289793 1412718592  52428800    25G Microsoft basic data
/dev/sda5  1105205248 1107302399   2097152     1G Linux filesystem
/dev/sda6  1107302400 1360289791 252987392 120.6G Linux LVM

Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
Partition table entries are not in disk order.




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


Disk /dev/mapper/fedora-home: 64.8 GiB, 69575114752 bytes, 135888896 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


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


Disk /dev/sdb: 28.7 GiB, 30752636928 bytes, 60063744 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: 0x00000000


Disk /dev/sdc: 3.7 GiB, 4004511744 bytes, 7821312 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: 0x7c3f77cf

Device     Boot  Start     End Sectors  Size Id Type
/dev/sdc1  *         0 3772415 3772416  1.8G  0 Empty
/dev/sdc2       116708  136667   19960  9.8M ef EFI (FAT-12/16/32)
/dev/sdc3       136668  178683   42016 20.5M  0 Empty


Disk /dev/loop0: 1.7 GiB, 1829224448 bytes, 3572704 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


Disk /dev/loop2: 32 GiB, 34359738368 bytes, 67108864 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/live-rw: 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


Disk /dev/mapper/live-base: 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
[root@localhost-live ~]# sudo mkdir /mnt/dev/mapper/live-rw
mkdir: cannot create directory ‘/mnt/dev/mapper/live-rw’: No such file or directory

Last edited by zavmat; 02-12-2019 at 09:14 PM.
 
Old 02-13-2019, 05:22 AM   #79
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
your fedora system is on sda6 inside the lvm. If you add up the the /dev/mappers/fedora-? sizes they equal your sda6 size. The /dev/sda5 is probably your /boot partition. You will need to mount the /dev/mapper/fedora-root to <some mount point> and then mount /dev/sda5 to <some mount point>/boot mount /dev/sda1 to <some mount point>/boot/efi then chroot and reinstall grub. I don't use lvm partitioning so can't give any real advice.

Last edited by colorpurple21859; 02-13-2019 at 06:15 AM.
 
Old 02-13-2019, 12:00 PM   #80
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
I want to say thank you both for all the help. Your time and patience is greatly appreciated. I made a mount point called /mnt/test and it says that /mnt/test is not a block device.

Also /etc/fstab says permission denied

Last edited by zavmat; 02-13-2019 at 12:03 PM.
 
Old 02-13-2019, 12:09 PM   #81
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
from live usb
Code:
sudo mkdir /mnt/test
sudo mount /dev/mapper/fedora-root /mnt/test
sudo mount /dev/sda5 /mnt/test/boot
sudo mount /dev/sda1 /mnt/test/boot/efi
sudo mount --bind /dev /mnt/test/dev
sudo mount --bind /proc /mnt/test/proc
sudo mount --bind /sys /mnt/test/sys
chroot /mnt/test
dnf reinstall grub2-efi shim
exit
unmount everthing cross your fingers and reboot.

Last edited by colorpurple21859; 02-13-2019 at 12:18 PM.
 
Old 02-13-2019, 03:42 PM   #82
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
It turns out I was mounting /mnt/test onto /dev/mapper/fedora-root instead of the other way around, but in my defence that was the way an article was saying to do it.

This is strange, the dnf encountered an error and /test disappeared.

Code:
[root@localhost-live bootinfoscript-master]# sudo mount /dev/sda5 /mnt/test/boot
[root@localhost-live bootinfoscript-master]# sudo mount /dev/sda1 /mnt/test/boot/efi
[root@localhost-live bootinfoscript-master]# sudo mount --bind /dev /mnt/test/dev
[root@localhost-live bootinfoscript-master]# sudo mount --bind /proc /mnt/test/proc
[root@localhost-live bootinfoscript-master]# sudo mount --bind /sys /mnt/test/sys
[root@localhost-live bootinfoscript-master]# chroot /mnt/test
[root@localhost-live /]# dnf reistall grub2-efi shim
No such command: reistall. Please use /usr/bin/dnf --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(reistall)'"
[root@localhost-live /]# dnf reinstall grub2-efi shim
Fedora Modular 29 - x86_64                      0.0  B/s |   0  B     00:01    
Error: Failed to synchronize cache for repo 'fedora-modular'
[root@localhost-live /]# chroot /mnt/test
chroot: cannot change root directory to '/mnt/test': No such file or directory
[root@localhost-live /]# dnf reinstall grub2-efi shim
Fedora Modular 29 - x86_64                      0.0  B/s |   0  B     00:00    
Error: Failed to synchronize cache for repo 'fedora-modular'
[root@localhost-live /]# sudo mount /dev/mapper/fedora-root /mnt/test
mount: /mnt/test: mount point does not exist.
[root@localhost-live /]# ls
bin   dev  home  lib64       media  opt   root  sbin  sys  usr
boot  etc  lib   lost+found  mnt    proc  run   srv   tmp  var
[root@localhost-live /]# ls home
[root@localhost-live /]# cd home
[root@localhost-live home]# ls
[root@localhost-live home]# cd /
[root@localhost-live /]# ls
bin   dev  home  lib64       media  opt   root  sbin  sys  usr
boot  etc  lib   lost+found  mnt    proc  run   srv   tmp  var
[root@localhost-live /]# ls mnt
ntfs
Is that what chroot is supposed to do? Isolate the file in chroot jail?

I'll redo it now

Last edited by zavmat; 02-13-2019 at 03:45 PM.
 
Old 02-13-2019, 03:52 PM   #83
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
You need to be connect to internet after booting into live usb
I add one more line to fix this
Quote:
Error: Failed to synchronize cache for repo
Code:
sudo mkdir /mnt/test
sudo mount /dev/mapper/fedora-root /mnt/test
sudo mount /dev/sda5 /mnt/test/boot
sudo mount /dev/sda1 /mnt/test/boot/efi
sudo mount --bind /dev /mnt/test/dev
sudo mount --bind /proc /mnt/test/proc
sudo mount --bind /sys /mnt/test/sys
sudo cp /etc/resolv.conf /mnt/test/etc/resolv.conf
chroot /mnt/test
dnf reinstall grub2-efi shim
exit
you may have to mount /dev/sda5 and /dev/sda1 after chrooting into your fedora install
mount /dev/sda5 /boot
mount /dev/sda1 /boot/efi

Last edited by colorpurple21859; 02-13-2019 at 03:54 PM.
 
Old 02-13-2019, 04:09 PM   #84
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
Still failed to synchronize cache for repo 'fedora-modular'

also
Code:
cp: '/etc/resolv.conf' and '/mnt/test/etc/resolv.conf' are the same file
and
Code:
mount: /boot: /dev/sda5 already mounted on /boot.
If I ls mnt/test nothing shows up in the directory.

Last edited by zavmat; 02-13-2019 at 05:34 PM.
 
Old 02-13-2019, 05:51 PM   #85
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
did you connect to internet with live usb?
 
Old 02-13-2019, 05:52 PM   #86
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
Yes sir
 
Old 02-13-2019, 06:32 PM   #87
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
I rebooted, remounted as /mnt/maps (vs /mnt/test) crossed my fingers and it worked! When you say unmount everything, what do you mean exactly?
Code:
#  sudo umount /dev/mapper/fedora-root
# sudo umount /dev/sda5 /mnt/maps/boot
etc.?
 
Old 02-13-2019, 06:59 PM   #88
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
umount /mnt/maps/dev
umount /mnt/maps/proc
umount /mnt/maps/sys
umount /mnt/maps/boot/efi
umount /mnt/maps/boot
umount /mnt/maps

Last edited by colorpurple21859; 02-13-2019 at 07:04 PM.
 
Old 02-13-2019, 07:19 PM   #89
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
It says no mount point specified for all so should I just go ahead and reboot?

Last edited by zavmat; 02-13-2019 at 07:26 PM.
 
Old 02-13-2019, 07:25 PM   #90
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
and do I need to go into the bios?

Last edited by zavmat; 02-13-2019 at 07:27 PM.
 
  


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 05:06 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