Good morning everyone, as I am a goat or so, in trying to format a USB I think I formatted the boot part of my operating system! Now, is there a method to fix it or do I have to format it all over again? If so, how?
The message I get as soon as I turn on the computer is the following:
“reboot and select proper boot device for inserted boot media in selected boot device and press key”.
I thank everyone in advance for any valuable help you can give me
[liveuser@eos-2024.01.25 ~]$ sudo mount /dev/sda2 /mnt
[liveuser@eos-2024.01.25 ~]$ sudo mount /dev/sda1 /mnt/efi
mount: /mnt/efi: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
[liveuser@eos-2024.01.25 ~]$ sudo arch-chroot /mnt
mount: /mnt/proc: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
==> ERROR: failed to setup chroot /mnt
[liveuser@eos-2024.01.25 ~]$ ls /efi
ls: cannot access '/efi': No such file or directory
[liveuser@eos-2024.01.25 ~]$ ls /boot/efi
ls: cannot access '/boot/efi': No such file or directory
[liveuser@eos-2024.01.25 ~]$
[liveuser@eos-2024.01.25 ~]$ sudo mount /dev/sda2 /mnt
[liveuser@eos-2024.01.25 ~]$ cat /mnt/etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=8532-9F99 /efi vfat fmask=0137,dmask=0027 0 2
UUID=59741aff-fcd0-4fff-af96-2ae3e907d1d4 / ext4 noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
[liveuser@eos-2024.01.25 ~]$
[liveuser@eos-2024.01.25 efi]$ cd ..
[liveuser@eos-2024.01.25 mnt]$ ls
bin dev etc lib lost+found opt root sbin sys usr
boot efi home lib64 mnt proc run srv tmp var
[liveuser@eos-2024.01.25 mnt]$ fsck /dev/sda1
fsck from util-linux 2.39.3
e2fsck 1.47.0 (5-Feb-2023)
fsck.ext2: Permission denied while trying to open /dev/sda1
You must have r/w access to the filesystem or be root
[liveuser@eos-2024.01.25 mnt]$ sudo fsck /dev/sda1
fsck from util-linux 2.39.3
fsck.fat 4.2 (2021-01-31)
There are differences between boot sector and its backup.
This is mostly harmless. Differences: (offset:original/backup)
65:01/00
1) Copy original to backup
2) Copy backup to original
3) No action
[123?q]? 3
Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
[12?q]? q
No changes have been written to the filesystem yet. If you choose
to quit, it will be left in the same state it was in before you
started this program.
1) Quit now
2) Continue
[12?]? q
[12?]? 1
[liveuser@eos-2024.01.25 mnt]$