Hi so recently my psu died so I replaced it and when booting now the system boots to a command prompt with a bunch of stuff at the end it says to try and regenerate thj e initreamfs I have done the basic step of internet search/AI search and tried the suggestion commands but they don’t work I’m guessing and hoping it’s a pretty simple fix, can anyone help me out to resolve this? would be much appreciated
search results say to 1)sudo mount /dev/sdXn /mnt
2)sudo mount -o subvol=root /dev/sdXn /mnt
sudo mount /dev/sdXp /mnt/boot # Mount separate boot if applicable
sudo mount /dev/sdXq /mnt/boot/efi # Mount EFI partition
I tried the commands with no result i’m no expert mybe need some simple additions
thanks for your reply, the new psu is one i had sitting around and is probably far more than this system needs 1000w evrycomponent appears to be fine as far as I can tell eitherway is it possible to recover the initramfs or is that a difficult process just for various reasons I’ve already had to format/recover/reastore fedora and I’d really prefer not to do it again if there is a simple command or something to recover/reastore initramfs I haven’t had a good tome with fedora
Your first priority before attempting recovery is to ensure the hardware is working properly. A Live USB can check the “health” of the system storage device and allow you to mount storage devices to check for damaged filesystems. Some vendors have hardware test software.
It’s not that it’s a difficult process, it’s that it’s probably not a valid solution to your issues.
If your system was booting fine before the PSU change, and then after the change it reports the error, then the most likely explanation is a hardware issue, not a true initramfs issue.
The only scenario I can think of where regenerating the initramfs might be the right thing is maybe if immediately before changing the PSU, you had installed a new kernel and never yet booted into it. In that case, it might be that the kernel install (which includes the generation of a new initramfs) went wrong. But it would be quite a coincidence!
thanks for replying, no there was no smoke, I am currently using the pc in question using a live usb , I will say due to lack of time I did not change the psu myself I took it to a “professional” pc shop who I paid to do the install mainly because I didn’t have the time , I think I learned my lesson I just realized I have a bluray/dvd drive in the pc and the pc pace unplugged it so it isn’t connected to the pc, I am unsure as to why they’'ve done this but I wont be using them again I’ll make the time to do things myself, everything seems to be plugged in and working the hdd’s are fine one 3.5" disk one m.2 cpu and ram and graphics cards so i’m unsure why this error is occurring
yeah fair enough I took my to a "professional pc repair shop I never thought thaey’d unplug a componrnt and not tell me, I will post the exact message I get I’m gguessing a screenshot wouldnt be wlcome so i’ll type it our when I next reboot.
So from that message, it looks very clear that a disk is missing that was previously connected.
I don’t think that a missing DVD drive would cause this though, because the system doesn’t expect that the same DVD will be continuously present. Maybe I’m wrong though.
From the live USB, what does lsblk show? Does it include every partition that you expect on every SATA and NVMe disk? (Remember that it will also show the USB itself as /dev/sdX, where X is some letter - don’t confuse that for your SATA disks.)
thanks for replying yeah I dont think the missing Bluray/dvd drive is the issue. I only have 2 discs in the system one m.2 and one 3.5" and lsblk shows them both the results are as expected , would changing the drive from one port/connection to another cause this? I’ll have a look see if the pc place for some reason moved the discs to different slots if that would cause the issue, either does anyone know a quick or any solution to this problem I really need to get ky system up and running asap I have had to format/reinstall fedora like 4 times since I started using it everytime I seem to get issues like this and noone knows a solution I’m really over it, I know fedora is free so I’m not complaining as such just having used pop/ubuntu for like 3 years I never had a single problem/issue for some reason with fed it keeps throwing this kind of shit up to commonly for me for some reason I might have to migrate to s different distribution.
I use Fedora precisely because it tends to give early warning when Linux changes things, but for my work the critical changes have been churn in numerical libraries: better algorithms, changes to take advantage of newer hardware, and consolidation where standalone libraries were adopted into larger collected libraries. Other Linux changes are being driven by support for new hardware, security, changes in user expectations away from command-line to more reliance on GUI’s for system management.
Ultimately, Linux support is driven by vendors and the user community has to fill in the gaps. Windows has trained a large segment of the population to reinstall when something breaks, but with Linux broken things may not be addressed until an affected user engages the help of the broader user community. There are often workarounds such as LTS kernels and external network and sound USB devices that can be used while looking for solutions to a problem.
ok thanks I see 4 discs as I have another exteranl drive connnected . My only gripe using fedora is that it throwsup these errors and I dont know why and then can’t find a solution or workaround I’m grateful for the community help and support just now I need tp use my pc where a livedisc doesn’t really let me do all the things I would like so now there is a problem as described and I’m unsure what caused it or how to fix it but I’m forever grateful to have put virus ridden windows in the bin
well thanks for the help but as always weeks go by and I have a pc that I cant really use so unless anyone knows some way to resolve this issue or some way to make fedora boot I’ll be forced to format/reinstall I’m probably better to figure out how to setup dual boot so when fedora has the usual issue and wont boot I can try to fix it or hust load the other os probably a better solution.
This is a bit puzzling, because you can see your devices, but the error message on boot definitely says one is missing.
It would be interesting to see the output of lsblk -f and sudo blkid from the live USB. Those should show all the relevant IDs and might shed more light on what is happening.
thanks for replying, is it ok for me to copy/paste the results here? also when i boot now there is no error it goes to loading screen with fedora logo in the bottom middle of the screen and loading circle in the middle spining and then stops and just sits on the screen forever till i poweroff/reset.