Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dmesg --human (for ~amd64)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
wjholden
l33t
l33t


Joined: 01 Mar 2004
Posts: 826
Location: Augusta, GA

PostPosted: Sun Feb 23, 2014 3:18 am    Post subject: dmesg --human (for ~amd64) Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32298
Location: 56N 3W

PostPosted: Sun Feb 23, 2014 1:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
wjholden
l33t
l33t


Joined: 01 Mar 2004
Posts: 826
Location: Augusta, GA

PostPosted: Sun Feb 23, 2014 9:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1291
Location: Netherlands

PostPosted: Fri Feb 28, 2014 12:21 pm    Post subject: Reply with quote

Still I find that very helpful ;-)
Many thanks for that tip!
Back to top
View user's profile Send private message
Yamakuzure
Veteran
Veteran


Joined: 21 Jun 2006
Posts: 1442
Location: Bardowick, Germany

PostPosted: Fri Feb 28, 2014 2:13 pm    Post subject: Reply with quote

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

_________________
systemd - The biggest fallacies
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum