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.
Self has learnt a lot, however am NOT so technical (my long term brain injuries requires extra caution), so cautious before changing things, particularly with BIOS boot partition and the EFI partition.
My three hard drives each had openSUSE and Ubuntu partitions, usually disconnect them, until I do back-ups on their partitions.
What exactly is it that you have booted now? Which operating system did you install last, and where? What is output from tree /boot/efi and mount | grep sd?
"?" was the end mark of a question sentence, not part of a command sequence:
Code:
# inxi -S
System:
Host: e6400 Kernel: 5.14.21-150500.55.19-default arch: x86_64 bits: 64
Console: pty pts/1 Distro: openSUSE Leap 15.5
# mount | grep sd
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
/dev/sda7 on / type ext4 (rw,noatime,stripe=4)
/dev/sda9 on /disks/stw type ext4 (rw,noatime,stripe=4)
/dev/sda11 on /disks/deb type ext4 (rw,noatime,stripe=4)
/dev/sda8 on /disks/s154 type ext4 (rw,noatime)
/dev/sda12 on /home type ext4 (rw,noatime,data=ordered)
/dev/sda6 on /pub type ext4 (rw,noatime,data=ordered)
/dev/sda3 on /disks/boot type ext2 (rw,noatime)
/dev/sda5 on /usr/local type ext4 (rw,noatime,data=ordered)
It seems what this may be about is you had an ESP partition on the disk that has partitions 1,2,4,7,9, and now has a modest amount of freespace between 4 and 7. Is this the case? If yes, are you expecting to be able to be able to recover this partition? If so, I suggest the better plan is to either create it anew in that freespace, or add an EFI boot entry using efibootmgr to one of the ESP partitions on the other two disks.
Yes it was running fine until I accidently deleted the EFI, self was trying to figure out how to repair the EFI when our village power died for a while...
Am not sure how "to either create it anew in that freespace, or add an EFI boot entry using efibootmgr to one of the ESP partitions on the other two disks"
Self needs be elsewhere now for an hour our two :-(
How to you "accidentally" delete a partition? What were you trying to do at the time?
You're causing thread confusion by removing one of the disks. You should keep all connected until this is resolved, unless specifically suggested otherwise.
How exactly are you now booting openSUSE? There should be a line containing opensuse in your output from efibootmgr. You should be able to add openSUSE to an ESP using YaST2 bootloader from your main DE menus YaST selection. If you make any edit at all in it, on exit it will redo everything related to booting. If you have any problem what to change, simply change the timeout value from whatever it is to something else.
I deleted the BIOS, then received phonecalls which I had to deal with, when back to computer realized had wrongly deleted the EFI, looking for how to recover or reset it my town suffered a major power failure... it took a while for the power to come back on :-O
When power back on started the computer it showed grub this
As not know what to do there... shut computer down, then started searching for information on what to do...
Am using openSUSE 15.5 which shows this: /dev/sda6
Also shows /dev/sda8 /boot/efi
There is no such thing as deleting a BIOS. The BIOS is part of your motherboard. What it looks like you may have done is to have deleted an ESP partition from the disk with 5 partitions numbered 1,2,4,7,9. It has no ESP partition, but your other two disks each have one. Only one is needed per computer.
Quote:
When power back on started the computer it showed grub this (attachment)
What happens now? How are you booting openSUSE? Is there a Grub menu with only Ubuntu entries if you don't boot from USB? Do you get a Grub menu with openSUSE and Ubuntu menu selections?
Quote:
Am using openSUSE 15.5 which shows this: /dev/sda6
Also shows /dev/sda8 /boot/efi
We already figured that out. What we can't see evidence of is how you get 15.5 booted, because efibootmgr shows only ubuntu and generic entries - none for openSUSE. The only evidence of openSUSE presence in any of your commands' output came from tree and inxi.
If all you did was delete the efi partition you may be able to recover the partition with fdisk:
Code:
fdisk /dev/sda
n
Partition number (3,5-6,8,10-128, default 3): 6
First sector (????????-?????, default ?????):637536256
Last sector, +/-sectors or +/-size{K,M,G,T,P} (???????, default ?????):639633407
Partition #6 contains a vfat signature.
Do you want to remove the signature? [Y]es/[N]o: N
t
Partition number (???? default ??): 6
Partition type or alias (type L to list all): 1
p
w
Notes:
1. Change sda to sdb if the drive is now sdb
2. Before pressing w check the ouput of the p command to make sure the the sectors are correct for the efi partition compared to the original drive setup. If not Q to quit instead of w to write and start over.
3. There may still be problems because uuid/guid will be different and needs to be changed back to the original
Last edited by colorpurple21859; 09-23-2023 at 02:01 PM.
" GRUB 2 and elilo serve as conventional, full-fledged standalone UEFI boot loaders for Linux. Once loaded by a UEFI firmware, they both can access and boot kernel images from all devices, partitions and file systems they support, without being limited to the EFI system partition. "
This explains how am able to boot into openSUSE and Ubuntu. :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.