#
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 Terminalthere. - Run
geardumpcommand. - Then you can find the zipball at both
/dataand at the root of youroperating-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
Warning
Logcat does not work in recovery-mode.
Normally you can only run it after the android bootanimation. (Aka android-interface)
logcat > logcat.log
Assuming that you are in /data/mylogs directory
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
datainside it then you should findlogs.taratdata/mylogs - Or if you have
data.imgthen mount it with the following command and look atdmount/mylogsforlogs.tar:
mkdir dmount
sudo mount -oloop,ro data.img dmount
- Open the folder where you have Android-x86 installed.
- If you have
data.imgthen use 7-zip to open it. - If you have
datafolder then open it normally. - Look for a folder called
mylogsand you should findlogs.tarthere.
Ext4 on Windows
If you had installed Android-x86 inside an Ext4 partition from Windows then use the appropriate program to mount it. E.g Paragon LinuxFS, Ext2fsd