Unable to shutdown properly Kali and Parrot; restart works
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unable to shutdown properly Kali and Parrot; restart works
*Please note: First post, if better suited for another subforum, please move accordingly*
I've searched and found this problem reported, but none of the suggested solutions worked for me.
While restarting works fine, shutdown does not. System hangs on the shutdown - able to turn off only by physically pressing the power button.
Hardware - Lenovo laptop with not a Nvidia video card.
Software - problem exists on Kali live, Parrot live and Kali 2020.1 installed, works fine on few other live OS including Mint.
Attempted solutions - modifying grub file.
There might be few more details that escape me at this time.
Please help and suggest.
In Kali initially I had
GRUB_CMDLINE_LINUX_DEFAULT="quiet reboot=bios"
To the grub setting I've also tried:
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX_DEFAULT="reboot=acpi quiet"
GRUB_CMDLINE_LINUX_DEFAULT="reboot=pci quiet"
It's Lenovo laptop and I did play with BIOS settings. No luck though.
Not being able to find answers that solve the problem, I actually had very high expectations for this forum community.
The way I see it the problem could be stemming from few sources:
# software
# hardware
# firmware
# user
I chose this sub-forum because of its software (all linux) and hardware (laptops) cross-section.
Here's my breakdown of observations.
^ software - something particular to Kali and Parrot and not other OS's; exists in both Live and installed versions; OS versions are new, not outdated and not modified
^ hardware - relatively not old Lenovo laptop, possible culprit, but don't see anywhere it can't be working with these OS
^ firmware - played with some settings in BIOS, but yielded no positive results, partitions/installed OSs should not have impact on Live systems, right?
^ user - that would be my first guess, but even I can't screw up the shutdown process, so would have to rule this one out.
Well, I hate to say this but kali is not meant to be installed - not saying it can't be, but it works best in a VM. I use it every day at work in a VM and it has been flawless in this configuration for nearly 2 years.
If I had to guess, I would say there is a systemd process/job hanging up shutdown. Can you run
Code:
journalctl -rb -1
in a terminal and see what the output is? Might give some clue as to what is happening. Worth a shot anyway.
Well, I hate to say this but kali is not meant to be installed - not saying it can't be, but it works best in a VM. I use it every day at work in a VM and it has been flawless in this configuration for nearly 2 years.
That's interesting, I didn't know that.
Should Live OS work then? I also have same issues with Live Kali and Parrot OS.
Let me concentrate on those two for now. All restart fine.
Parrot OS does not shutdown
Kali Live (amd64) does not shutdown, hangs on logo
Kali Live (amd64 failsafe) shuts down fine
Kali Live (forensic mode) does not shutdown
Quote:
Originally Posted by sevendogsbsd
If I had to guess, I would say there is a systemd process/job hanging up shutdown. Can you run
Code:
journalctl -rb -1
in a terminal and see what the output is? Might give some clue as to what is happening. Worth a shot anyway.
Thanks for the idea.
In Kali Live I got almost 1300 lines.
What am I looking for?
I see some thinkpad_acpi error and two DMAR errors, but those don't seem to have impact.
What is the fundamental difference in processes involved in restarting and shutting down? Why would restarting work while shutdown not?
Not being able to find answers that solve the problem, I actually had very high expectations for this forum community.
I'm sorry you should feel that way, but you yourself stated earlier:
Quote:
Originally Posted by LENNE3
Don't remember all
and give very fragmented reports of your set up.
How can anyone help you then?
Here's the lesson I learned from using Linux forums for many years:
Even if I ask for help, getting to a solution still requires me to do most of the work.
Often just formulating a help question properly helps me to get there, because it makes me look at the problem in an ordered fashion, explaining it to myself.
Since you're obviously still a beginner with GNU/Linux, I recommend you start with a beginner distro and try to get that running first.
Have you tried on different hardware? Sometimes different hardware has minor differences in how the software reacts. Try it on a different pc and see if the problem persists. Check the logs and see if you can spot the error. Try making a new live image and checking the md5 sum. Try different shutdown commands than the ones posted above. Ex:
That's interesting, I didn't know that. Should Live OS work then? I also have same issues with Live Kali and Parrot OS.
Did you read the Kali and Parrot websites??? They tell you specifically that they are meant for Linux experts, and even then for security/pentesting. NOT for daily use, and they even both recommend installing on virtual machines, not physical hardware, since you then encounter the very types of errors you're getting now.
**WHY** are you wanting to install/use Kali or Parrot????
Quote:
Let me concentrate on those two for now. All restart fine.
Parrot OS does not shutdown
Kali Live (amd64) does not shutdown, hangs on logo
Kali Live (amd64 failsafe) shuts down fine
Kali Live (forensic mode) does not shutdown
Thanks for the idea. In Kali Live I got almost 1300 lines. What am I looking for? I see some thinkpad_acpi error and two DMAR errors, but those don't seem to have impact. What is the fundamental difference in processes involved in restarting and shutting down? Why would restarting work while shutdown not?
The fact that you ask these questions indicate you are not an advanced user, and shouldn't be using Kali.
Restarting is a 'soft/warm' reboot. Halts the SOFTWARE and reloads everything.
Shutting down involves the physical hardware, and sending interrupts to the power supply. You mention the ACPI error, and only now mention using a Lenovo Thinkpad. Did you install this using secure boot? This could be related to the APMD modules, the video driver, or UEFI. Since you don't tell us what kind of Thinkpad you're using, it's hard to say. You can try to add "noefi" to the end of your boot line in GRUB, but you have posted the solution to your problem already.
Mint works; use Mint. You *DO NOT NEED* Kali, and you certainly don't need to install it physically, when you can get the Virtualbox image and use it with zero problems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.