Hello,
I am new to the Fedora community, but have daily-driven various Linux distros in the past, but what I experience with Fedora now would even be abnormal for Vista, and certainly strange for a Linux distro that never crashed on my friend’s laptop, running Fedora since release 28:
Whenever I attempt to execute a write extensive operation on my external SSD, there is a chance Fedora will completely freeze up. I am using an external SSD, but it hasn’t reported smart errors and achieves 400 megabytes per second sequential write speeds. I lost my Minecraft world today, WHEN I WAS READING THE CREDITS FOR THE FIRST TIME, due to this glitch. The credits froze, the music stopped, and my system crashed, leaving a black screen where I can only write text, not even execute commands. I tested the SSD and USB adapter, it copied 32 gb of random data perfectly, as shown by sha-256 hashes of the original and the copy to this SSD.
My system specs are:
Lenovo IdeaPad 14alc6
Ryzen 3 5300u
8gb ram
Radeon Vega 6 igpu.
I used to run Windows 10 from the same SSD and it never crashed.
I hope someone can help me.
Thank you in advance!
*EDIT: booting on a different kernel doesn’t help and the kernel logs indicate numerous system processes suddenly crash. Also, sometimes after the crashes, I reboot into windows even if the external SSD has a higher boot priority, but is still initialized and fully readable in Windows. I ruled out an SSD firmware crash as just unplugging it shows a black screen with a “failed unmounting swap” message. When my system crashes, sometimes I can still move my mouse but the desktop and windows are frozen.
Your statement that even if the external SSD has a higher boot priority, but is still initialized and fully readable in Windows. seems to indicate that the SSD (or at least a partition there) is either ntfs or vfat formatted (Windows could not read an ext4 or btrfs file system). When running with a non-native file system it is quite possible that the file system on the device may be responsible for the errors. Filling up swap could also result in a crash as you describe.
How are you running fedora on that device? Is it installed normally on a linux file system? with minecraft in a separate partition? or is in installed in some other method?
Please post the output of inxi -Fzx and lsblk so we can see the hardware configuration.
I can’t access my laptop now, but I just wanted to correct myself: what I mean is that my laptop should boot in Fedora as Windows recognizes it, so the SSD is initialized. I think I can only see the boot partition on Windows though. I will send you the outputs of the commands at around 2:30-3:00 pm GMT if I can. Right now, I am sure I installed Fedora normally, and my home folder (which is also the Minecraft install folder), is on the same partition as the system. Thank you for replying so quickly!
See the 360 gb difference between my home partition and my /dev/SDA? That’s because I recently switched from a 120gb SSD, thinking it would solve my problem. Spoiler: it didn’t! I know the SSD is not faulty.
Also I am using over 150gb in total with Windows, so “Local Storage: total: 710.47 GiB used: 15.12 GiB (2.1%)” is not true.
It appears your internal drive (nvme0n1) has an efi partition (nvme0n1p1) and your external SSD also has an efi partition (sda1 mounted at /boot/efi). It also appears you are using btrfs which is seen by having both / and /home on sda3.
Having 2 different efi partitions makes things difficult since the only way to dual boot with grub is to have the linux efi partition be the boot partition and then force it to access the windows efi partition to boot windows.
I always only use the primary efi (ESP) partition that was created by windows and have grub control booting from there, with that partition mounted at /boot/efi when I do the install.
I cannot envision why it would change the behavior when you were able to boot before, but you should be able to use the bios boot menu and select the device to boot from. This should allow you to select the internal device to boot windows or the SSD to boot fedora.
Please post the output of efibootmgr and sudo fdisk -l so we can verify the partition types and the efi boot order.
All I know is that I can boot windows through GRUB: it says windows boot manager on nvme0np1. The reason for why I have 2 boot partitions is simply because I didn’t know Windows Boot Manager and GRUB could “coexist”. I just installed Fedora the default way on the external drive. I’ll send you the outputs of the commands when I get home.
I can show you a picture of a crash (I could still move my mouse but the system was frozen):
The external SSD case, which has a read/write light, did not report any SSD activity, like if it were connected to something else than a computer (USB charger per example), which is pretty normal for a frozen, unresponsive system doing nothing. The strange part, however, is that when I unplugged the SSD, I got this:
Super confusing. Also why is my SSD listed as a sata gen 2 device while the read/write speeds are higher than 3 gbps? The SSD itself is advertised as sata III:
Likely the BIOS is pointing to the internal nvme drives as primary disks, irrespective of your configuration settings. I had an older (era 2006) mobo with an AMI BIOS that did the same thing, but only with certain drives, like it really liked the Samsung EVO to be primary disk, even if I changed the order of their device connections (like from SATA1 to SATA6 for example). This became very frustrating for me to say the least. I found two areas I had to go to and make changes in the BIOS to have it follow my desires, the area you are mentioning, boot order, then also in the HDD configuration area. The Mobo was a Gigabyte UDH3A with SATAIII and USB3 (but before the USB-C connector came along.
Definitely fixup the two ESP’s since this will confuse things. If you can select windows in Grub menu though this means Grub2 must be installed in the first ESP it found, so Likely /dev/sda1. So maybe you just have to get it to have the shim in the ESP to point to /boot on the external drive. This may require a use of Grubby to add the menu entry then a grub2-mkconfig to get the changes installed. Then reboot into your Fedora, or Windows, or …
Install Cinnamon: if Fedora does not crash anymore, GNOME is the culprit.
Plug the SSD into my old desktop, as an internal one, not a USB device. If Fedora still crashes, the problem is Fedora itself, not my hardware. If no crashes occur within 1h, my USB adapter is maybe to blame.
It may actually be a problem with the SSD firmware. It may support Windows normally but not Linux. For example my Kingston SSD had a firmware bug that would cause my Linux system to totally freeze. Back then I was a newbie and though that Linux isn’t good because it freezes for no reason. Months later I found that Kingston SSD manager had a firmware upgrade for my SSD that fixes SSD freezing on some Linux systems (fixed the problem for me).
Also on another laptop a bug in the SSD firmware causes the laptop to never be able to resume from sleep, unless you set the iommu to software.
SSD firmware bugs can cause wild issues and having it working in Windows does not mean that it isn’t the problem.
I did do an SSD firmware for my internal one, that added copy on write support for btrfs. I will try this on my external SSD now. But Linux did not crash on another pc, where the SSD is connected via sata and not USB. The USB adapter may be the problem… Also I don’t think a cheap 50$ (not $$d LOL) can have it’s firmware updated?
EDIT: No firmware update found. After yet another crash, I checked Journalctl, which did not save logs in the minute before the crash… I still don’t know what processes fail. I can still move my mouse when the system freezes, if that helps.
I found when the journal crashed:
“Jun 26 20:19:34 fedora systemd-journald[268]: Journal stopped”
Why is the time the GMT time and not my system time, which is 2h earlier?
Try booting from a live USB and plugging that USB SSD and wait, do some I/O (read/write on the USB SSD) on it and keep checking the logs. Maybe the problem will be properly reported if it is saved to the live USB instead of the flawed USB SSD
I already tried copying a 30+gb file made of data from/dev/random. I did a hash of the file, moved it to my internal SSD, did another hash, and moved it back, did another hash. All three were the same. If the SSD corrupted the data, the hashes would be different.
Have you tried booting the Fedora of the USB SSD from another computer?
Since it is working with windows which is more I/O intensive than Fedora, I think it may be worth to reinstall Fedora. Backup your home then restore it after install, then only you will have to reinstall the applications. Maybe your installation is corrupted for some reason.
Very good point. The unfortunate truth is that I tried this once a week ago. Also Fedora didn’t crash in 4h on a 2011 i7 12gb ram Desktop. What is wrong with my pc??? Anyways Fedora seemed to be stabler on Cinnamon. I can try reinstalling Gnome.
Edit: ran the command to uninstall cinnamon while in cinnamon… Funny results!
I can’t understand why you got critical processes like journald crashing for no clear reason. As a last resort try another Linux distro like Ubuntu and see if you get the same problems.