Hello MX users,
After using my laptop and leaving it on for a few days, I didn't do a proper shutdown. When I first went to turn it back on it would boot to the GRUB menu then goes to the default choice for loading MX Linux off the HDD. But then it goes to a terminal screen and gets stuck with a prompt "initrasmfs". It mentions file corruptions and requests mainly running fsck. I have tried to understand and researched online but I'm too confused.
The first time this happened, my screen mentioned file corruption and mainly running fsck. I now have a screen mentioning error messages and the same prompt - the pictures attached.
Boot to terminal /Improper ShutDown [Solved]
Boot to terminal /Improper ShutDown
You do not have the required permissions to view the files attached to this post.
Re: Boot to terminal /Improper ShutDown
Basically, it's saying that there are problems with your HDD/SDD especially within the root partition. It's also suggesting that you use the fsck utility to try and fix those problems. Here's a tutorial on how to use fsck:
https://phoenixnap.com/kb/fsck-command-linux
I also think that it would be a good idea to access the bios of your laptop and see what the SMART status of your HDD/SDD is. If it says anything other than Healthy, you should be prepared to purchase a replacement drive and install it in the laptop.
Hopefully, it's just a bad block or two and fsck will do the necessary repairs.
https://phoenixnap.com/kb/fsck-command-linux
I also think that it would be a good idea to access the bios of your laptop and see what the SMART status of your HDD/SDD is. If it says anything other than Healthy, you should be prepared to purchase a replacement drive and install it in the laptop.
Hopefully, it's just a bad block or two and fsck will do the necessary repairs.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;
In Linux, newer isn't always better. The best solution is the one that works.
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;
In Linux, newer isn't always better. The best solution is the one that works.
Re: Boot to terminal /Improper ShutDown [Solved]
https://forum.mxlinux.org/viewtopic.php ... 70#p694670
Or boot live session:
Or boot live session:
- On GParted you can right-click on partition(s): "Check".
- Or just open a terminal:
(let's say it's sda7 , you can first lsblk -f to see which's which)
Code: Select all
sudo e2fsck -fyvC0 /dev/sda7
Re: Boot to terminal /Improper ShutDown
... In case you succeed booting, run:
Also you can run badblocks
(You can also do these when on live session if you can't boot the installed MX, we'll go on "how to")
Code: Select all
sudo update-initramfs -uk all
(You can also do these when on live session if you can't boot the installed MX, we'll go on "how to")
Re: Boot to terminal /Improper ShutDown
The post #3 by Huckleberry Finn make it for me, thanks
sorry for bad english...
Problem was : fsck error 4 pointing to home directory, ctrl+D was allowing to boot. Probably due to bad shutdown (I was creating a zip/7z archive, i checked after there was a bad file causing an error message needing to click ok, but the first time I launched the archive program I asked a programmed shutdown and probably it couldn't stop due to the archive program waiting to click ok)
Solution working for me : gparted live session, right click on verify for the home partition (and the same on the root partition).
Normal boot now.
Thanks all for sharing

Problem was : fsck error 4 pointing to home directory, ctrl+D was allowing to boot. Probably due to bad shutdown (I was creating a zip/7z archive, i checked after there was a bad file causing an error message needing to click ok, but the first time I launched the archive program I asked a programmed shutdown and probably it couldn't stop due to the archive program waiting to click ok)
Solution working for me : gparted live session, right click on verify for the home partition (and the same on the root partition).
Normal boot now.
Thanks all for sharing

Re: Boot to terminal /Improper ShutDown
First off: Thx for the fast responses I got for my problem (j2mcgreg and Huckleberry Finn)
I'm a novice so I couldn't figure out solution #1.
Finn's was more novice friendly and led me to the solution: Boot to USB version, KDE Partition Manager under System menu of programs. I 'right clicked' 'check' then 'apply' against sda1 (fat32) on the laptop's HDD. It didn't like it*. Repeat against sda2 ext4 and it fixed something. Re-boot to the HDD's version of MX Linux and it works! THANK YOU!!!
(* I thought I only had Linux on the laptop but maybe there is Windows on there too. It has been a long time since I first installed MX Linux)
I'm a novice so I couldn't figure out solution #1.
Finn's was more novice friendly and led me to the solution: Boot to USB version, KDE Partition Manager under System menu of programs. I 'right clicked' 'check' then 'apply' against sda1 (fat32) on the laptop's HDD. It didn't like it*. Repeat against sda2 ext4 and it fixed something. Re-boot to the HDD's version of MX Linux and it works! THANK YOU!!!
(* I thought I only had Linux on the laptop but maybe there is Windows on there too. It has been a long time since I first installed MX Linux)
Re: Boot to terminal /Improper ShutDown
Thank you both for the feedback, and glad it worked for 2 users at once :)