It seems your initramfs can't find your root disk with the given UUID. What happens when you ls /dev/disk/by-uuid
?
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
these for listings come up
OK, but I meant from the actual emergency shell. How did you get to your terminal with the failing boot if I may ask?
This is a live usb boot repair. It has sudo privileges.
Oh, ok, thanks. It seems the UUID is correct, so the question why your initramfs doesn't find it remains unsolved. Which distribution are you using in the first place? An ubuntu derivative as well?
It’s Ubuntu cinnamon. I believe the hard drive had failed/ been corrupted. I tried reinstalling and it said the computer only has 8 gb of space. So it was trying to install it on the live usb I was using.
Sounds like your hard drive has failed or has been disconnected.
-
Ensure all usb sticks are removed and your hard drive is connected (disconnect and reconnect).
-
If it still won't boot, create an iso live usb image for your distro and boot from that usb stick.
-
Try to mount your old hard drive partition (it'll look something like /dev/sda1 or /dev/nvme0n1p1). For example, to mount /dev/sda1 under /mnt you would use "mount /dev/sda1 /mnt/ext". Then the files on the partition should be available under /mnt.
-
If you can mount it and see files, verify the entries under /etc/fstab. Ensure the UUID in fstab matches the UUID of the drive. Use a command like: "sudo lsblk -f | grep -v loop"
-
If you can't mount it or it says it has errors, run fsck on the partition (eg: fsck /dev/sda1),but be sure it IS NOT MOUNTED.
-
If you still can't get it to work, it's probably dead. You may be still able to bring it back to life, but you will definitely LOSE YOUR DATA: Plug the drive into a windows machine and let it format it as NTFS. Then pull it out, plug it into linux and reformat as ext4 or whatever. Use a tool like smartctl to verify your drive's health. If it's looking good then reinstall Linux.
“Sudo mount /dev/nvme0n1 /mnt/ext” brings up “mount point does not exist”. Same with /dev/sda.
Check that /mnt exists. If it does, just to a mkdir there of whatever you want to call the partition. For example you could mkdir /mnt/bad_disk if you want. Then your mount command becomes 'sudo mount /dev/nvme0n1 /mnt/bad_disk' . Then you'd see its contents with 'ls /mnt/bad_disk'