LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2018, 02:30 PM   #1
shlomo.hovir
Member
 
Registered: Oct 2018
Posts: 66

Rep: Reputation: Disabled
how init command can be used to diagnose that the distro is not working


how init command can be used to diagnose that the distro is not working can someone clarify me accurately with accurate example i'm tottaly newbie
 
Old 10-12-2018, 02:56 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,142

Rep: Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939
how to use the init
https://www.lifewire.com/how-to-use-...-linux-4066930


what is wrong with your system?
 
Old 10-12-2018, 03:10 PM   #3
shlomo.hovir
Member
 
Registered: Oct 2018
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
how to use the init
https://www.lifewire.com/how-to-use-...-linux-4066930


what is wrong with your system?
how its used to diagnose issues of the system is not mentionned in the article
sorry for my bad english
 
Old 10-12-2018, 03:35 PM   #4
shlomo.hovir
Member
 
Registered: Oct 2018
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
how to use the init
https://www.lifewire.com/how-to-use-...-linux-4066930


what is wrong with your system?
im trying to improve my unix skills
 
Old 10-12-2018, 03:41 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,142

Rep: Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939
init as far as I know is not designed for diagnosing a system, but for initiating the system, then one takes from the errors and warnings it give out, if any, then research what it is doing wrong.
 
Old 10-12-2018, 04:10 PM   #6
shlomo.hovir
Member
 
Registered: Oct 2018
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
init as far as I know is not designed for diagnosing a system, but for initiating the system, then one takes from the errors and warnings it give out, if any, then research what it is doing wrong.
thanks you but it doesn't return me to stage with sudo init 5
 
Old 10-12-2018, 04:40 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,142

Rep: Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939Reputation: 1939
Quote:
Originally Posted by shlomo.hovir View Post
thanks you but it doesn't return me to stage with sudo init 5
what's really going on with you and your system? what ya mean stage init (run level) 5 is a no go? what you running in your box? Discover Card, or Ubuntuututu, or what??

https://www.liquidweb.com/kb/linux-runlevels-explained/

Quote:
Originally Posted by Kernel
After the Linux kernel has booted, the init program reads the /etc/inittab file to determine the behavior for each runlevel. Unless the user specifies another value as a kernel boot parameter, the system will attempt to enter (start) the default runlevel.
 
Old 10-13-2018, 02:46 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,501
Blog Entries: 9

Rep: Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389
which distro?
which init system?
what exactly do you want to diagnose?

hint:
if the distro isn't working, you cannot use the distro to diagnose that it isn't working.
 
Old 10-13-2018, 03:00 AM   #9
shlomo.hovir
Member
 
Registered: Oct 2018
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
which distro?
which init system?
what exactly do you want to diagnose?

hint:
if the distro isn't working, you cannot use the distro to diagnose that it isn't working.
fedora my distro
init systemd
 
Old 10-13-2018, 03:26 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,501
Blog Entries: 9

Rep: Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389
that's two of three questions answered.
and what exactly do you want to diagnose?
 
1 members found this post helpful.
Old 10-14-2018, 07:49 AM   #11
shlomo.hovir
Member
 
Registered: Oct 2018
Posts: 66

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
which distro?
which init system?
what exactly do you want to diagnose?

hint:
if the distro isn't working, you cannot use the distro to diagnose that it isn't working.


in case some services don't work
 
Old 10-14-2018, 10:23 AM   #12
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.6
Posts: 3,797

Rep: Reputation: 1278Reputation: 1278Reputation: 1278Reputation: 1278Reputation: 1278Reputation: 1278Reputation: 1278Reputation: 1278Reputation: 1278
The systemctl and journalctl commands can be used to query and evaluate the state of things on a systemd-based distribution. See
Code:
man systemctl 
and 
man journalctl
 
Old 10-14-2018, 09:24 PM   #13
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
You can run 'init 1' to get to a minimal system to repair the system if it won't work in gui mode.
 
Old 10-16-2018, 01:07 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,501
Blog Entries: 9

Rep: Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389Reputation: 3389
Quote:
Originally Posted by shlomo.hovir View Post
in case some services don't work
Code:
systemctl --all --failed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] keyboard and mouse not working. How to diagnose. maschelsea Slackware 4 07-03-2017 12:00 PM
Ubuntu 13.10 /etc/init.d command not working nickyls Linux - Server 2 06-04-2014 01:24 AM
[SOLVED] Can't copy my distro from one hard drive to another- DD command not working Michmat Linux - Newbie 2 03-04-2014 08:35 PM
working of init command himanshu1987 Linux - Newbie 12 12-15-2009 07:50 AM
i want to know working of init command himanshu1987 Linux - Newbie 2 12-14-2009 06:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration