Of course you could boot from a live stick and choose "try out Ubuntu". Probably you don't have to re-format the system partition of the hard drive.
1.) You should check if the file system is ok. You might also check the file systems of other partitions. apropos check disk
will give you hints, which commands might be useful. You can learn more about the found pieces by calling e.g. man fsck
, man testdisk
or google for examples how to use them.
2.) If the file systems on the partitions are ok, you might google for the keywords "Ubuntu Boot repair" and find some suggestions how to repair a broken Grub. Hopefully more expert guys than myself can give you more detailed hints on this.
3.) Once you have succeeded with one or the other method, answer your own question telling others how you did it or just mark an answer als the working one, if it left no open questions. Hint: create screenshots when trying your actions and use them to streamline your results to those, which actually lead to the result. I use this script, which I assign as to the key Print for that purpose as sh -c '/home/verwalter/Skripte/Druck_mw.sh'
(of course the storage location must fit to where you store this script and make it executable):
#!/bin/bash
# **************************** Druck_mw.sh ************************
# 2023-04-07 Aus einem Terminal kann ich dieses Skript aufrufen.
# In einem Shortcut muß man es aufrufen als
# sh -c '/home/verwalter/Skripte/Druck_mw.sh'
# Als shortcut funktionierte es nicht bei
# "disable_on_typing": true
# in ~/.config/touchpad-indicator/touchpad-indicator.conf
# Ich habe Debugausgaben eingefügt, um zu sehen, was los
# ist, die sind jetzt wieder auskommentiert.
#
# Es gibt noch eine Variante ShiftDruck_mf7.sh, die das
# gleiche um 7 Sekunden verzögert macht und die danach
# Gimp mit der erzeugten Datei aufruft, damit man da
# gleich das ausscheiden kann, worauf es ankommt.
# Natürlich muß man bei der Variante das zurecht-
# gestutzte Bild mit Gimp unter seinem alten Namen
# wieder abspeichern.
# *****************************************************************
# Der momentane Inhalt der bash-Variablen ssTHEMA wird bei Aufruf
# mit einem Parameter vor dem Datum Bestandteil des Namens der
# zu erzeugenden Screenshotdatei.
#
# Dazu muß der Inhalt der Variablen allerdings mit zulässigen
# Dateinamen kompatibel sein und darf außerdem keine Leerzeichen
# enthalten! So kann man thematisch benannte Screenshots
# verschiedenen Tasten zuzuordnen, z.B.
#
# Shift-Druck ---> ohne Parameter
# Strg-Druck ---> 1
# Fn-Druck ---> 2
# Shift-Strg-Druck ---> 3
# Shift-Fn-Druck ---> 4
# usw.
#
# Man die Variable ssTHEMA als Array auch aus einem Terminal
# definieren als "Überschrift" am Dateinamensanfang.
# Es kann aber nur ein Wort sein!
# *****************************************************************
#echo "Druck_mw.sh aufgerufen."
mkdir -p "/home/$(whoami)/Screenshots" # Verzeichnis erzeugen, wenn es das noch nicht gibt
#echo "Screenshots gehen nach /home/$(whoami)/Screenshots"
#echo "ssTHEMA=»${ssTHEMA}«"
#echo "$(\date -Iseconds | sed -e s"/T/_/" | sed -e s"/:/-/g" | cut -c1-19).png" > "/home/$(whoami)/Screenshots/q"
if [[ ${ssTHEMA} == "" ]] ;
then
ssTHEMA=(0 1 2 3 4 sonst) ; else echo "${ssTHEMA[*]}";
fi
if [[ $1 == "" ]] ;
then
xfce4-screenshooter -wm --save "/home/$(whoami)/Screenshots/$(\date -Iseconds | sed -e s"/T/_/" | sed -e s"/:/-/g" | cut -c1-19).png"
else
sssTHEMA=$1
if [ $1 -gt 6 ]
then
sssTHEMA=6
fi
xfce4-screenshooter -wm --save "/home/$(whoami)/Screenshots/${ssTHEMA[$sssTHEMA]}"_"$(\date -Iseconds | sed -e s"/T/_/" | sed -e s"/:/-/g" | cut -c1-19).png"
fi
This script produces a screenshot file of the actual window named by date and time in ISO-format, so they easily reflect what you have done in which sequence.