Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

d-9 boots but fails reboot

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
jamby
Posts: 19
Joined: 2018-08-04 22:23

d-9 boots but fails reboot

#1 Post by jamby »

Hi

I set up a gigabyte j1900n-d3v mother board with debian 9 to run linuxcnc for a mill. It boots up fine but when I select reboot it shows the gigabit splash then the gurb page but after that it comes to a blinking dash in the upper left corner and never starts?
I have no idea even what to look at?? anyone have a hint?

Thanks
Jim

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: d-9 boots but fails reboot

#2 Post by Head_on_a_Stick »

You have the same situation as this poster and I put the same questions to you:

http://forums.debian.net/viewtopic.php?p=680942#p680942
deadbang

jamby
Posts: 19
Joined: 2018-08-04 22:23

Re: d-9 boots but fails reboot

#3 Post by jamby »

Hey

I tried rebooting with systemd.unit=multi-user.target and nomodeset both together and separately and in all cases it comes to the same place, black screen blinking cursor upper left.
right after coming out of editing the grub line there is a flashed message ramdisk, intrad. Or something close on two lines. These are the same lines seen during a normal boot, just after that a message about "failed to connect to lmvetab... scanning instead" appears twice and then "/dev/mapper/ant...." . These appear when the computer boots up normally but it stalls before these during reboot.

on board graphics processor:
VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
driver: AIGLX: Loaded and initialized i965

Can you reproduce this with Debian stable? Not sure how I could test this? dual-boot? what is debian stable?

Thanks
Jim

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: d-9 boots but fails reboot

#4 Post by Head_on_a_Stick »

jamby wrote:Can you reproduce this with Debian stable? Not sure how I could test this? dual-boot? what is debian stable?
That question doesn't actually apply to you, you are already running Debian stable.
jamby wrote:It boots up fine but when I select reboot [...]
So the machine boots successfully from cold but fails to reboot?
deadbang

jamby
Posts: 19
Joined: 2018-08-04 22:23

Re: d-9 boots but fails reboot

#5 Post by jamby »

"So the machine boots successfully from cold but fails to reboot?"

Correct.

Thanks
Jim

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: d-9 boots but fails reboot

#6 Post by bw123 »

jamby wrote:Hi

I set up a gigabyte j1900n-d3v mother board with debian 9 to run linuxcnc for a mill. It boots up fine but when I select reboot it shows the gigabit splash then the gurb page but after that it comes to a blinking dash in the upper left corner and never starts?
I have no idea even what to look at?? anyone have a hint?

Thanks
Jim
It's an odd problem, but I'd probably look at something added to d-9 that is not from the debian repo? Can you reproduce it with other methods of rebooting? ctrl-alt-delete from a tty? systemctl reboot?

Maybe you should describe a little what you mean by, "... I set up a gigabyte j1900n-d3v mother board with debian 9 to run linuxcnc..."

Did you do it like this? if you did, where are the instructions you followed for stretch? Mixing wheezy and stretch would not be good.
http://linuxcnc.org/docs/2.7/html/getti ... uxcnc.html
resigned by AI ChatGPT

jamby
Posts: 19
Joined: 2018-08-04 22:23

Re: d-9 boots but fails reboot

#7 Post by jamby »

I followed the examples here and on the following posts and have debian 9 and linuxcnc.
Its a D9 install with a rtai

https://forum.linuxcnc.org/9-installing ... n-debian-9

heres my /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714-10:25]/ stretch contrib main non-free

# deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714-10:25]/ stretch contrib main non-free

deb http://ftp.us.debian.org/debian/ stretch main non-free contrib
deb-src http://ftp.us.debian.org/debian/ stretch main non-free contrib

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
uname -a
Linux ant 4.9.0-8-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux
Thanks
Jim

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: d-9 boots but fails reboot

#8 Post by Head_on_a_Stick »

I think the added source may have b0rked your system...

Code: Select all

grep -v '^#\|^$' /etc/apt/sources.list{,.d/*}
Perhaps ask on the LinuxCNC forums?
deadbang

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: d-9 boots but fails reboot

#9 Post by debiman »

so linuxcnc is a software you added to a standard debian install? but it is not in the repos, so you added more sources.

Code: Select all

cat /etc/apt/sources.list.d/*

and you really should look at the logs.
immediately after a failed reboot, and a succesful cold boot:

Code: Select all

journalctl -1
but since i'm not 100% sure about the offset, probably best to just sift through all of it:

Code: Select all

journalctl
and look at the last pages (by date).
btw, i'm not promising i will look through all of it. please at least try to make some sense of it yourself.

jamby
Posts: 19
Joined: 2018-08-04 22:23

Re: d-9 boots but fails reboot

#10 Post by jamby »

Head
grep -v '^#\|^$' /etc/apt/sources.list{,.d/*}
/etc/apt/sources.list:deb http://ftp.us.debian.org/debian stretch main contrib non-free
/etc/apt/sources.list:deb http://security.debian.org/debian-security stretch/updates main contrib
/etc/apt/sources.list:deb-src http://security.debian.org/debian-security stretch/updates main contrib
grep: /etc/apt/sources.list.d/*: No such file or directory
Debianman
cat /etc/apt/sources.list.d/*
cat: '/etc/apt/sources.list.d/*': No such file or directory
I have rebooted the computer through "System/Shut Down/Restart" and through ssh sudo shutdown -r 0. The result is the same each time, system hangs. I will lookup how to use systemctl.
I will be able to look through the journalctl -l data later today when I return home as I have to leave now for the golf course.

Thanks both of you
Jim

jamby
Posts: 19
Joined: 2018-08-04 22:23

Re: d-9 boots but fails reboot

#11 Post by jamby »

Well maybe I need to work on this more than my golf game.

Here's the output of the sudo journalctl -l
http://lightbythesea.com/debian/journal.dat

This was run minutes after a unsuccessful reboot.
I tried comparing it to the output after a normal shutdown cold boot and didn't find anything. But I have no idea what I am looking for.

Jim

jamby
Posts: 19
Joined: 2018-08-04 22:23

Re: d-9 boots but fails reboot

#12 Post by jamby »

Ouch.... while testing the reboot.. suddenly... it was working for about 4 reboots in a row of all kinds systemctl reboot, shutdown -r 0, or thru the gui , and thru ssh. It all worked..... and then it didn't.
Now If I could only remember the sequence of how I got there?

Is it possible that during a reboot some parts of the system are suppose to remain running (networking etc.) that are being shutdown thus not enabling a restart?? Yeah I didn't think so.


Thanks
Jim

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: d-9 boots but fails reboot

#13 Post by debiman »

wild guess, some acpi issue.
hard to troubleshoot if "it fixed itself".
btw, i was asking for journalctl -1 (that's 'one', not 'ell'), and i was asking you to at least make an effort to filter out the relevant parts.
this sort of output causes me headaches just like it does you; 7 years of Linux experience have not changed that.

jamby
Posts: 19
Joined: 2018-08-04 22:23

Re: d-9 boots but fails reboot

#14 Post by jamby »

debman

sudo journalctl -1
journalctl: invalid option -- '1'

Sorry about that
Jim

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: d-9 boots but fails reboot

#15 Post by debiman »

my bad, it was supposed to be 'journalctl -b -1'

jamby
Posts: 19
Joined: 2018-08-04 22:23

Re: d-9 boots but fails reboot

#16 Post by jamby »

debiman

1.
I got output using sudo journalctl -b -0 using -1 or -2 results in a message " Specifying boot ID has no effect, no persistent journal was found"
I went through the output and couldn't find anything that when googled looked like a problem.

2.
I loaded debian 9 and linuxcnc onto a standard WD hard drive and booted the computer with that h-drive to compare problems. The WD h-drive is much slower than the PYN SSD drive all other information was collected from. The WD failed only once where it was identical to the issue with the SSD, blank screen blinking cursor - hung. Twice it failed on boot entering a EFI shell. Other that those three exceptions it booted into debian 9 on reboot fine. I would like to believe this indicates the problem is not with the motherboard.
I have also booted the WD on a dell precision 390 and it's journalctl output is very close to the SSD on the gigabyte mb.

3.
When the gigabite/SSD hangs on reboot (not cold start) nothing from that time is written into the journalctl or syslog files. During the reboot process the gigibyte splash appears then the grub menu and the messages "Loading Linux 4.9.0-8-rt-amd64" and "Loading initial ramdisk" then everything halts with the screen hung with a blinking cursor in the upper left corner. Ctl-Alt-Del will not recover the system, holding the computer start button down long enough will kill the computer, the other way is to reach around back and flip off the AC power and then restart the power and the computer.

4.
I added the output of sudo journalctl -b -0 to the second line at http://lightbythesea.com/debian/journalctl0.dat for what its worth.

Thanks for your time and help
Jim

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: d-9 boots but fails reboot

#17 Post by debiman »

jamby wrote:Specifying boot ID has no effect, no persistent journal was found
oh right, persistant journaling has to be enabled first!
you might want to do it now in case you run into similar problems later.
can be useful.
https://manpages.debian.org/stretch/sys ... .5.en.html
I added the output of sudo journalctl -b -0 to the second line at http://lightbythesea.com/debian/journalctl0.dat for what its worth.
but since it's not persistent, it can't have caught a failed reboot, because you have to cold boot afterwards, afaiu???
at what time did the failed reboot occur?

jamby
Posts: 19
Joined: 2018-08-04 22:23

Re: d-9 boots but fails reboot

#18 Post by jamby »

debman

Not sure what time any particular reboot happened. But I may have stumbled over the answer to my problem, only a weeks worth of testing will be sure.

I was digging around the google-vers looking for an answer and came across something that had me looking at hard "drive delay time". But my Bios has nothing on that but did have "boot option filter" which did the trick so far. Under the Advanced tab of the Bios is csm support and it that tab is [see below]
csm [enabled]
boot option filter [legacy only] <===
network [do not launch]
storage [legacy only]
video [legacy only]
other pci devices [uepi first]
The "boot option filter" was the one that made the difference. By changing it (and restoring all the others I had changed) the computer now is rebooting on every attempt.
So I wouldn't mark it solved yet but its looking good.

Thanks for all your help
Jim

Post Reply