Listing devices - quick question

Patton Echols p.echols at comcast.net
Sat Feb 19 20:10:02 UTC 2011


On 02/19/2011 12:01 PM, Pongo A. Pan wrote:
> On Sat, 2011-02-19 at 11:42 -0800, Patton Echols wrote:
>> I'm writing up my notes for someone who asked about data recovery and
>> I'm having a serious brain fade.  It's the part about discovering the
>> device that you just plugged in.  I know I can use
>> $ fdisk -l to list devices or
>> $ blkid to do the same and more.  But there is something that lists the
>> last system events, you run this command, then plug the usb device, then
>> run it again and see what got added to the end of the list.  Anyone want
>> to throw out the name for an idiot?
> Minor brain fade isn't proof of idiocy.
>
> Try "dmesg | tail -n40"
>
> Gets the last 40 lines.
DOH!  dmesg!  that's it!

Thanks,

It probably would have come to me after lunch . . .




More information about the ubuntu-users mailing list