Re: A cute CLI trick for emergencies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/09/2011 01:54 AM, jdow wrote:
> On 2011/12/08 16:56, Craig White wrote:
>> On Thu, 2011-12-08 at 09:27 -0600, Aaron Konstam wrote:
>>
>>>> And thus the drive is /dev/sdf, with the data partition /dev/sdf1.
>>>>
>>>> You may need to scroll back a bit if a lot of stuff is going on in
>>>> dmesg.
>>>>
>>> Great, but could the displaying of the information be made more obscure?
>> ----
>> dmesg | grep usb
>>
>> Craig
>
> After the kernel ring buffer has wrapped?
>
> Try this:
> grep usb /var/log/dmesg
>
> Then you have to decode it. And, of course, the drive on which "grep" lives
> AND the drive on which /var/log/dmesg lives, if different, will be spun up.

The /var/log/dmesg file is a snapshot taken during booting (when 
rc.sysinit runs) on systems using traditional SysV init (inc. upstart) 
so if a device was not present during boot (or had its drivers loaded 
after the snapshot was taken) it will not appear here.

It's not updated later and does not seem to be created on systems using 
systemd.

Either look in /var/log/messages or specify log_buf_len=n[KMG] on the 
kernel command line to set a lager ring buffer (modern systems with 
plenty of RAM can comfortably increase this to 10s of MB rather than the 
128k default).

Regards,
Bryn.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux