# Gathering Logs

# GearDump automated log gathering

GearDump is an automated log collection tool to help boost the debugging process on user-reported issues. It was originally made for GearLock but now it can be helpful for the whole operating-system log collection as well.

  • Press ALT+F1 or use any terminal emulator/tty.
  • If you can't boot into the android-GUI then get into recovery mode from your grub menu and open Virtual Command Terminal there.
  • Run geardump command.
  • Then you can find the zipball at both /data and at the root of your operating-system-Partition. You may grab it from one of these suitable locations in your favor.

# Manual log gathering

Manual log gathering is useful when you can not run geardump.

First of all you will need to get into a terminal where you can execute commands.

Press Alt + F1 or fn + Alt + F1(laptop)

If that is not working then install TermOneplus app and open it.

Then run su in TermOneplus app.

  • Boot into recovery mode from grub
  • Select option 3. Open Virtual Command Terminal

We will create a directory and save all the logs there.

mkdir -p /data/mylogs
cd /data/mylogs

Now you can proceed with grabing logs from the components stated below.

# dmesg

dmesg > dmesg.log

# lsmod

lsmod > lsmod.log

# lsusb

lsusb > lsusb.log

# logcat

logcat > logcat.log

Assuming that you are in /data/mylogs directory as instructed above.

Run the following command while being in /data/mylogs:

tar -cf logs.tar *

Now lets find the archived logs.tar file for uploading to a dev

Run the following command in your terminal:

cp /data/mylogs/logs.tar /sdcard

Then you can find it on your Internal Storage from a file-manager.

  • Mount your Android-x86 partition
  • If you have a directory called data inside it then you should find logs.tar at data/mylogs
  • Or if you have data.img then mount it with the following command and look at dmount/mylogs for logs.tar:
mkdir dmount
sudo mount -oloop,ro data.img dmount
  • Open the folder where you have Android-x86 installed.
  • If you have data.img then use 7-zip to open it.
  • If you have data folder then open it normally.
  • Look for a folder called mylogs and you should find logs.tar there.