A cute CLI trick for emergencies

jdow jdow at earthlink.net
Fri Dec 9 01:54:12 UTC 2011


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.

{^_^}


More information about the users mailing list