LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-23-2015, 12:01 AM   #1
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Rep: Reputation: 34
Cannot reboot/shutdown after upgrade to new kernel (4.2.3)


Was so delighted with the upgrade, everything worked perfectly apparently, had no issues with sound or graphics, the system freeze problem from before was no more and iceweasel was never snappier; it was enough to convince me that i could safely remove the old kernel and it's modules and now this, drat!
No journal files in the /var/log folder
Booting with the recovery option also fails. Please, where do i start looking?

Last edited by mzsade; 10-29-2015 at 12:09 PM.
 
Old 10-23-2015, 12:04 AM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
What DE/WM are you running? Does running the shutdown command from a console still work?
 
Old 10-23-2015, 12:20 AM   #3
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Original Poster
Rep: Reputation: 34
Standalone OpenBox. Neither <sudo reboot> nor <sudo shutdown -h now> works.
 
Old 10-23-2015, 12:32 AM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Do you have your system as sysvinit or systemd?
 
Old 10-23-2015, 01:41 AM   #5
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Original Poster
Rep: Reputation: 34
Systemd and systemd-networkd instead of NetworkManager. Would the output of dmesg be of use?

Same thing with "poweroff -i -f". Uninstalling acpid didn't help.

Last edited by mzsade; 10-23-2015 at 03:48 AM.
 
Old 10-23-2015, 04:33 AM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
As you're only running openbox, is it possible that you can purge systemd and install sysvinit-core and see if that causes, halt, shutdown, poweroff, reboot etc to start working again?

In systemd those are just links provided by the systemd-sysv package. So check if that package is still installed and didn't 'disappear'?

More info is also need besides "doesn't work". What output do you see when you run those commands?

Apart from that I can only state the obvious: You're running unstable and breakage is quite normal.
 
Old 10-23-2015, 07:44 AM   #7
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Yeah, sysvinit would be the next step to rule out a breakage in systemd (not like systemd would EVER have issues...).

Last edited by Timothy Miller; 10-23-2015 at 07:45 AM.
 
Old 10-23-2015, 01:00 PM   #8
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Original Poster
Rep: Reputation: 34
Systemd is the defacto standard and there's no going back to "the good old days" so please don't offer that as a solution. If you google the title of this thread you'll see that my issue, or my hardware are not unique to this problem after an upgrade. The output of the commands that you asked for is invariably, "shutting down processes, unmounting file systems, preparing to shutdown or powering off" at which point the system freezes or hangs, or a blank screen, so i don't see what specific "more info" you were expecting from me which would have helped you arrive at a definitive solution.

Upgrading the kernel from the repos has never gone well for me, if i can reboot into that miserable partition again i will try to compile the new kernel from source and let you know if that takes care of the issue before i reinstall. Thanks.

Last edited by mzsade; 10-23-2015 at 01:03 PM.
 
Old 10-23-2015, 03:14 PM   #9
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Depends on which distro you have. Jessie still has SysvInit installed unless explicitly uninstalled by the user, even though SystemD is the default. I specifically had to use this the other day because SystemD was hanging on boot. Had to boot to SysVInit, fix SystemD, then reboot with SystemD.
 
Old 10-23-2015, 03:18 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
The shutdown syntax has changed with systemd it seems.

Where the old way is:

# shutdown -h -P now

The NEW way is:

# shutdown -H -P +0

No idea why they changed that.
 
1 members found this post helpful.
Old 10-23-2015, 03:35 PM   #11
angryfirelord
Member
 
Registered: Dec 2005
Distribution: Fedora, CentOS
Posts: 515

Rep: Reputation: 66
Debian has its own wayback machine in regards to packages. If it happened after a kernel update, then you can enable a snapshot of a repository and try to install an older kernel.

http://snapshot.debian.org/

The issue tracker will tell you when a package was uploaded, so you can use the timestamp of that for your snapshot repo.

https://tracker.debian.org/pkg/linux

Does journalctl show anything? Are you on testing or unstable?
 
Old 10-23-2015, 03:57 PM   #12
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Original Poster
Rep: Reputation: 34
Unstable, last few lines from the output of
Code:
sudo shutdown -H -P +0
systemd-shutdown[1]: All DM devices detached
systemd-shutdown[1]: Powering off
kvm: exiting hardware virtualization
sd 0:0:0:0: [sda] synchronizing SCSI cache
sd 0:0:0:0: [sda] Stopping disk
This is where the screen freezes so tell me what you make of it. I still think upgrading the kernel from the repos buggers up the system somehow and recompiling the new kernel from source will fix it. It's a wonder that i can still boot into it (albeit after more than one attempt now) and that it's fully functional apart from this glitch. I've been treating my poor hard disk like a rag doll these past few days and i hope it will survive long enough for me to try recompiling the kernel from source and test my uneducated surmise.
 
Old 10-23-2015, 04:19 PM   #13
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Can you not just install an older kernel and boot that instead until things calm down
I had some weird stalls on shutdown on both my machines after some fairly recent dist-upgrades but they did take a few minutes to shut down at one point so, perhaps, you have to wait a long time (I think it took about 5 minutes or so the first few times)? Sorry, I have no explanation as to why this would be the case.
 
Old 10-23-2015, 04:31 PM   #14
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Perhaps leave off the -P if it's a virtualized thing that you're exiting. Since -P is power off (on both versions of shutdown). And tends to be x86 specific.
 
Old 10-23-2015, 04:47 PM   #15
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by 273 View Post
Can you not just install an older kernel and boot that instead until things calm down
Wish i hadn't been in such a darned hurry to remove the old kernel and it's modules. Anyway, give me a couple of days, i will compile from source this time and if that fixes the issue we will know for certain it's not the kernel but the method by which it was upgraded to that was at fault.

Edit: Nope, it finally died on me so we'll never know. R.I.P. Sid, we had a pretty good run together.

Last edited by mzsade; 10-23-2015 at 06:07 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i upgrade linux kernel with a Reboot LittleMaster Linux - Newbie 8 11-24-2012 08:09 AM
Reboot harms hard drive after self compiled kernel... no unmount at shutdown? Pfirti Debian 4 10-26-2012 12:52 AM
[FYI] "last -f <old wtmp> -x reboot shutdown" incorrect for last reboot and shutdown catkin Linux - General 1 03-25-2010 11:52 PM
Kernel oops, during shutdown/reboot Jeebizz Slackware 2 05-03-2008 04:34 PM
MDK 10 hangs on reboot/shutdown (2.6 kernel) Arbitor Mandriva 9 04-16-2004 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration