View previous topic :: View next topic |
Author |
Message |
wjholden l33t
Joined: 01 Mar 2004 Posts: 826 Location: Augusta, GA
|
Posted: Sun Feb 23, 2014 3:18 am Post subject: dmesg --human (for ~amd64) |
|
|
Greg Kroah-Hartman recently posted a neat tip on Google+ that newer versions of dmesg support a --human option.
The dmesg command is in the sys-apps/util-linux package. The stable version, at time of writing, is sys-apps/util-linux-2.22.2. The newest versions of sys-apps/util-linux depend on a newer (masked) version of sys-apps/sysvinit, so I'll walk you through this as well. These instructions only apply for amd64; I have no means to experiment with other platforms.
First - make a backup of both packages. This is pretty easy. Code: | quickpkg util-linux
quickpkg sysvinit | If something in all this goes wrong, you might have some difficulty booting your box, but once you do you can reinstall the old version easily with a command such as: Code: | (For emergencies only! Version numbers may differ.)
emerge -1 /usr/portage/packages/sys-apps/util-linux-2.22.2.tbz2 /usr/portage/packages/sys-apps/sysvinit-2.88-r4.tbz2 | Second - unmask both packages in /etc/portage/package.accept_keywords. Code: | =sys-apps/util-linux-9999 **
sys-apps/sysvinit ~amd64 | Upgrade sysvinit first. Code: | emerge -u sysvinit -1 | Now you can upgrade util-linux. Code: | emerge -u sys-apps/util-linux -1 | Reboot. Everything worked perfectly on the first shot on my laptop.
Now you can enjoy dmesg --human! You can combine it with -w to monitor your system.
Last edited by wjholden on Sun Feb 23, 2014 2:08 pm; edited 2 times in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Sun Feb 23, 2014 1:47 pm Post subject: |
|
|
wjholden,
That just works an an ~amd64 install. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
wjholden l33t
Joined: 01 Mar 2004 Posts: 826 Location: Augusta, GA
|
Posted: Sun Feb 23, 2014 9:19 pm Post subject: |
|
|
NeddySeagoon wrote: | wjholden,
That just works an an ~amd64 install. | You're right, I've added this caveat to the text and subject line of this thread. |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Fri Feb 28, 2014 12:21 pm Post subject: |
|
|
Still I find that very helpful
Many thanks for that tip! |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2283 Location: Adendorf, Germany
|
Posted: Fri Feb 28, 2014 2:13 pm Post subject: |
|
|
Just a note: I just upgraded sysvinit and util-linux to the most recent non-live-versions and "dmesg -HwT" works without a reboot.
Versions: Code: | ~ # eix -I "(sysvinit|util-linux)" -c
[I] sys-apps/sysvinit (2.88-r7@28.02.2014): /sbin/init - parent of all processes
[I] sys-apps/util-linux (2.24.1-r2@28.02.2014): Various useful Linux utilities | Result: Code: | ~ # dmesg -HT | head -n 4
[Mi Feb 26 15:49:13 2014] Initializing cgroup subsys cpu
[Mi Feb 26 15:49:13 2014] Initializing cgroup subsys cpuacct
[Mi Feb 26 15:49:13 2014] Linux version 3.12.11-geek (root@sed-notebook) (gcc version 4.8.2 (Gentoo 4.8.2 p1.1, pie-0.5.8) ) #2 ZEN SMP PREEMPT Wed Feb 26 13:40:53 CET 2014
[Mi Feb 26 15:49:13 2014] Command line: BOOT_IMAGE=/kernel-3.12.12-geek root=ZFS=gpool/ROOT/system ro dozfs resume=/dev/sda3 intel_iommu=igfx_off enable_mtrr_cleanup mtrr_spare_reg_nr=1 mtrr_gran_size=32M mtrr_chunk_size=128M |
_________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
|