View previous topic :: View next topic |
Author |
Message |
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Fri Dec 10, 2010 12:47 pm Post subject: where to view the boot sequence after startup is completed |
|
|
When i boot my system, i notice lots of text floating by.I don't fully understand what is happened because the process is too fast. I want to view these boot sequence when the system is go into GUI desktop.where to view these sequence? |
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Fri Dec 10, 2010 2:00 pm Post subject: |
|
|
The kernel log is written to /var/log/dmesg
If all the starting services have a common log somewhere, then I don't know about.
Obviously you could just CTRL+ALT+F1 to get back to tty1 again and look at the log, but I'm not sure under what exact circumstances the scroll back is kept.
You also have [I]interactive mode, where you can step through sysinit one service at a time.
From /etc/rc.conf (I'm using baselayout 2, yours may be /etc/conf.d/rc.conf)
Quote: | # Set rc_interactive to "YES" and you'll be able to press the I key during boot so you can choose to start specific services. Set to "NO" to disable this feature. |
|
|
Back to top |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Sat Dec 11, 2010 12:42 pm Post subject: |
|
|
The file "/var/log/dmesg" is a bit too complicated for me.I just want to see that start information because it is very concise.I would like to have a good understanding of the system startup.
I could use CTRL+ALT+F1 to tty1 again and look at some log,but I also don't find some way to scroll back the screen.ha ha...
I will continue to study this issue if I have time.Thank you very much!! |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2575 Location: Here and Away Again
|
Posted: Sat Dec 11, 2010 5:44 pm Post subject: |
|
|
Something you might be interested of:
http://www.bootchart.org/ _________________ Kindest of regardses. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sat Dec 11, 2010 8:13 pm Post subject: |
|
|
Set rc_logger="YES" in /etc/rc.conf to log the initscript startup messages. |
|
Back to top |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Sun Dec 12, 2010 6:17 am Post subject: |
|
|
Chiitoo wrote: | Something you might be interested of:
http://www.bootchart.org/ |
The Bootchart documents say:
"Finally, the performance and dependency charts are renderer as a single image in either PNG, SVG or EPS format."
but where can i find the PNG?
Ant_P:
I have set rc_logger="YES" in /etc/rc.conf,where can i find the log for startup messages? |
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1344 Location: Sweden
|
Posted: Sun Dec 12, 2010 3:14 pm Post subject: |
|
|
I think it goes somewhere to /var/log, but I don't think bootchart auto generates the images unless it's conf file says so. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Dec 12, 2010 5:01 pm Post subject: |
|
|
xiwang wrote: | I have set rc_logger="YES" in /etc/rc.conf,where can i find the log for startup messages? |
rc.conf wrote: | Code: |
# rc_logger launches a logging daemon to log the entire rc process to
# /var/log/rc.log
# NOTE: Linux systems require the devfs service to be started before
# logging can take place and as such cannot log the sysinit runlevel.
#rc_logger="YES"
|
|
|
|
Back to top |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Mon Dec 13, 2010 3:00 pm Post subject: |
|
|
In my system there are no notes about rc_logger:
Code: | $ cat /etc/rc.conf | grep rc_logger
rc_logger="YES" |
And i can't find the devfs service so there is no rc.log in /var/log/.
any ideas? |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2575 Location: Here and Away Again
|
Posted: Mon Jan 03, 2011 2:05 am Post subject: |
|
|
xiwang wrote: | In my system there are no notes about rc_logger:
Code: | $ cat /etc/rc.conf | grep rc_logger
rc_logger="YES" |
And i can't find the devfs service so there is no rc.log in /var/log/.
any ideas? |
A bit late reply but, just confirming that both the bootchart and rc.log go to /var/log by default.
I think the lines about devfs is more like explaining why the logger cannot log before that certain point of start-up and might even be obsolete information.
See Device File System Guide for more info.
As to why you don't have the rc.log, did you install a System Logger?
I'm not certain, but one might be needed for it (I'm only guessing though).
http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?full=1#book_part1_chap9 wrote: |
Gentoo offers several system loggers to choose from. There are sysklogd, which is the traditional set of system logging daemons, syslog-ng, an advanced system logger, and metalog which is a highly-configurable system logger. Others might be available through Portage as well - our number of available packages increases on a daily basis.
If you plan on using sysklogd or syslog-ng you might want to install logrotate afterwards as those system loggers don't provide any rotation mechanism for the log files.
To install the system logger of your choice, emerge it and have it added to the default runlevel using rc-update. The following example installs syslog-ng. Of course substitute with your system logger:
Code: |
Code Listing 1.1: Installing a system logger
# emerge syslog-ng
# rc-update add syslog-ng default
|
|
Personally, I use syslog-ng. ^^
I hope this helps! _________________ Kindest of regardses. |
|
Back to top |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Sat Jan 15, 2011 2:35 pm Post subject: |
|
|
Sorry!I reply so late.
I have install a package name "pybootchartgui" in UBUNTU,and it can generate a picture in /var/log
But i still don't know the system how to boot,it is so complicate for me.
Well! i give up.
Last edited by xiwang on Mon Jan 17, 2011 2:47 pm; edited 1 time in total |
|
Back to top |
|
|
pblinux2 n00b
Joined: 16 Mar 2006 Posts: 29
|
Posted: Sat Jan 15, 2011 9:43 pm Post subject: Re: where to view the boot sequence after startup is complet |
|
|
xiwang wrote: | When i boot my system, i notice lots of text floating by.I don't fully understand what is happened because the process is too fast. I want to view these boot sequence when the system is go into GUI desktop.where to view these sequence? |
The quick-and-dirty way to simply view them, assuming your setup is mostly default settings:
Press CTRL-ALT-F1 to switch to the first console
Use CTRL-PGUP and CTRL-PGDN to view the text that has scrolled off the screen.
When you are done, press CTRL-ALT-F7 to get back to your GUI
This will also let you see the not-easily-logged stuff that appears early on. |
|
Back to top |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Mon Jan 17, 2011 3:24 pm Post subject: |
|
|
I have used CTRL-PGUP and CTRL-PGDN,but it only show "[5~" and "[6~" just like this
Code: | localhost login:[5~ [6~ ... |
It didn't scroll back the screen.Any ideas? |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2575 Location: Here and Away Again
|
Posted: Mon Jan 17, 2011 9:12 pm Post subject: |
|
|
For at least me, it's Shift+PageUP/DOWN.
Also note that NumLock may or may not be required to be enabled.
Also, I'm unsure of how much the scrollback buffer shows by default, but it can be changed with this Kernel option (as long as I understand it right):
Code: | CONFIG_VGACON_SOFT_SCROLLBACK:
The scrollback buffer of the standard VGA console is located in
the VGA RAM. The size of this RAM is fixed and is quite small.
If you require a larger scrollback buffer, this can be placed in
System RAM which is dynamically allocated during initialization.
Placing the scrollback buffer in System RAM will slightly slow
down the console.
If you want this feature, say 'Y' here and enter the amount of
RAM to allocate for this buffer. If unsure, say 'N'.
Symbol: VGACON_SOFT_SCROLLBACK [=y]
Type : boolean
Prompt: Enable Scrollback Buffer in System RAM
Defined at drivers/video/console/Kconfig:22
Depends on: HAS_IOMEM [=y] && VT [=y] && VGA_CONSOLE [=y]
Location:
-> Device Drivers
-> Graphics support
-> Console display driver support
-> VGA text console (VGA_CONSOLE [=y]) |
_________________ Kindest of regardses. |
|
Back to top |
|
|
xiwang n00b
Joined: 28 Nov 2010 Posts: 58 Location: China
|
Posted: Tue Jan 18, 2011 4:02 pm Post subject: |
|
|
No luck!the Shift+PageUP/DOWN still don't works.
There is my kernel options for " CONFIG_VGA_CONSOLE"
Code: | -*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(64) Scrollback Buffer Size (in KB) |
then what can i do?
Did you mean i need to set a large number for "Scroolback Buffer Size"? |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2575 Location: Here and Away Again
|
Posted: Tue Jan 18, 2011 5:32 pm Post subject: |
|
|
Hmm, not really sure what the problem is, but I found some ideas you could look into at least.
https://forums.gentoo.org/viewtopic-t-830469-start-0.html _________________ Kindest of regardses. |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2575 Location: Here and Away Again
|
Posted: Thu Jan 20, 2011 4:44 am Post subject: |
|
|
Just thought of this while I was away from my computer, something I forgot to mention but I guess comes up in the thread I linked up there.
That is the fact that you lose the data in the buffer when you change terminals.
So if you go to, say, F1 and try to scroll up, you can't, until more text comes out.
After a boot, without any terminal switching, I'm not sure how much one would normally be able to scroll up, I guess it's all about the buffer size there. I still have to look more into this myself, too. _________________ Kindest of regardses. |
|
Back to top |
|
|
|