LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-28-2013, 11:26 AM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
32-bit will not reboot (64-bit does OK)


I was testing out a 32 bit install of -current (14.1-beta) for the first time. I've been doing all 64-bit up to now. There is a strange problem: the reboot will not finish. It goes through all the shut down and unmounting steps, and outputs the last message "Rebooting." and just stays there. If I press Ctrl+Alt+Sysrq+b then the kernel does reboot OK so I believe there is no hardware issue causing this. The reboot command when done on the system running from the install disk works OK for either bit size. It's only the installed system that is having trouble in 32-bit mode.

Which actual program is calling the kernel to do the reboot at the end of all this? Is that init? I'm guessing maybe init is not performing the reboot syscall correctly.

Or MAYBE because NVIDIA always crashes, the kernel is somehow hosed up?

Last edited by Skaperen; 09-28-2013 at 11:29 AM.
 
Old 09-28-2013, 01:16 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
here is a quick explanation on how the boot process works: https://en.wikipedia.org/wiki/Linux_startup_process
I think you mixed the 32bit/64bit environments (probably some kernel modules?) but we should know much more about partitions and installations to be able to give you further help
 
Old 09-28-2013, 02:56 PM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by pan64 View Post
here is a quick explanation on how the boot process works: https://en.wikipedia.org/wiki/Linux_startup_process
I think you mixed the 32bit/64bit environments (probably some kernel modules?) but we should know much more about partitions and installations to be able to give you further help
Booting UP works fine. It's booting DOWN that fails. Do you have any documentation on THAT?

I know that kernel syscall reboot(2) needs to be called. I suspect that /sbin/shutdown should be making this call and for some reason is not doing so. Could it be waiting for something that isn't happening?

Ctrl+Alt+SysRq+b does work, so the kernel can at least do that much. Ctrl+C echos a "^C". Ctrl+Alt+Del causes the string "shutdown: warning: cannot open /var/run/shutdown.pid" to be output. So this suggests to me that userland is still up.

OTOH, if I do "reboot -f" it just freezes. Then Ctrl+C does nothing and Ctrl+Alt+Del does nothing. But Ctrl+Alt+SysRq+b still works.

Edit:

I was wrong about the reboot(2) call. I edited the /etc/rc.d/rc.6 script and where it invokes "/sbin/reboot", I made it invoke "/sbin/strace -ftt /sbin/reboot" (I copied /usr/bin/strace to /sbin/strace to be sure it was available). It showed that reboot(LINUX_REBOOT_MAGIC1, LINUX REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART) was being called. So it is the kernel that is hanging on this.

I'm going to change this script to do "echo b > /proc/sysrq-trigger" instead of /sbin/reboot. Maybe that will work better (if /proc is still mounted).

Edit2:

The "echo b > /proc/sysrq-trigger" works (so /proc was still mounted OK).

Last edited by Skaperen; 09-28-2013 at 03:09 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
64 bit cpu-64 bit Ubuntu-are there 32 bit app issues? sofasurfer Ubuntu 7 04-09-2014 02:02 PM
[SOLVED] Installing 32 bit RPMs on 64 bit Linux conflicts with 64 bit packages gheibia Linux - Server 1 08-18-2011 01:33 AM
64 bit or 32 bit Ubuntu 10.04 in a multiple boot with windows 64 and 32 bit ? james2b Linux - General 7 09-22-2010 04:12 PM
LXer: Ubuntu 32-bit, 32-bit PAE, 64-bit Benchmarks LXer Syndicated Linux News 0 12-30-2009 11:00 AM
32 bit or 64 bit install - is 32 bit easier for a newbie? dms05 Linux - Newbie 3 05-19-2006 03:05 PM

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

All times are GMT -5. The time now is 04:17 AM.

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