will show the "tail" of the file, in real-time.
If you want to save it to a file, use
Code:
$ dmesg -w | tee /tmp/log.dmesg
[884072.532135] usb 2-3: USB disconnect, device number 5
[884078.957120] usb 2-3: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[884078.984199] usb 2-3: New USB device found, idVendor=11b0, idProduct=3307, bcdDevice=0.13
[884078.984203] usb 2-3: New USB device strings: Mfr=3, Product=4, SerialNumber=2
[884078.984205] usb 2-3: Product: UHSII uSD Reader
[884078.984207] usb 2-3: Manufacturer: Kingston
[884078.984209] usb 2-3: SerialNumber: 000000000013
[884078.991763] usb-storage 2-3:1.0: USB Mass Storage device detected
[884078.991936] scsi host16: usb-storage 2-3:1.0
[884080.002716] scsi 16:0:0:0: Direct-Access Kingston UHSII uSD Reader 0013 PQ: 0 ANSI: 6
[884080.003249] sd 16:0:0:0: Attached scsi generic sg2 type 0
[884080.394000] sd 16:0:0:0: [sdc] Spinning up disk...
[884081.408185] .ready
[884081.770634] sd 16:0:0:0: [sdc] 15954944 512-byte logical blocks: (8.17 GB/7.61 GiB)
[884081.771436] sd 16:0:0:0: [sdc] Write Protect is off
[884081.771438] sd 16:0:0:0: [sdc] Mode Sense: 21 00 00 00
[884081.772213] sd 16:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[884081.804506] sdc: sdc1
[884081.807440] sd 16:0:0:0: [sdc] Attached SCSI removable disk
[884089.400357] usb 2-3: USB disconnect, device number 6
That example shows a USB3 converter with a microSD being removed, inserted and removed.
The log.dmesg will have much more of dmesg output than we expect. Jump to the bottom, but in the terminal, just the last few lines are displayed.
Bookmarks