Talk:Troubleshooting boot issues

m
m (reboot analyse script)
Line 3: Line 3:
== reboot analyse script ==
== reboot analyse script ==
-
I've just written a script to help analyse an unexpected reboot:
+
I've just written a script to help analyse an unexpected reboot.
-
<nowiki>
+
See http://talk.maemo.org/showthread.php?p=1092902#post1092902
-
# cat debug_n900_reboots.sh
+
-
#!/bin/sh
+
-
debug_dir="$(pwd)"
+
-
dt=$(date +%Y%m%d_%H%M)
+
-
mkdir -p /dev/shm/debug_script/$dt
+
-
cd /dev/shm/debug_script/$dt
+
-
cat /proc/bootreason > "$(pwd)/bootreason"
+
-
cat /dev/mtd2 > "$(pwd)/mtd2"
+
-
dmesg > "$(pwd)/dmesg"
+
-
cp -r /var/lib/dsme/stats "$(pwd)"
+
-
cd "$debug_dir"
+
-
tar -cjf "$debug_dir/$dt.tar.bz2" /dev/shm/debug_script/$dt
+
-
ls -lh $dt.tar.bz2
+
-
</nowiki>
+
-
 
+
-
+ See http://talk.maemo.org/showthread.php?p=1092902#post1092902
+
Also I suggest adding "reboot" to the page title.
Also I suggest adding "reboot" to the page title.

Revision as of 23:33, 20 September 2011

Might be useful to add ideas from http://www.internettablettalk.com/forums/showthread.php?t=16056 here

reboot analyse script

I've just written a script to help analyse an unexpected reboot. See http://talk.maemo.org/showthread.php?p=1092902#post1092902

Also I suggest adding "reboot" to the page title.