Talk:Troubleshooting boot issues

(reboot analyse script: new section)
m
Line 4: Line 4:
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>
# cat debug_n900_reboots.sh
# cat debug_n900_reboots.sh
#!/bin/sh
#!/bin/sh
Line 18: Line 18:
tar -cjf "$debug_dir/$dt.tar.bz2" /dev/shm/debug_script/$dt
tar -cjf "$debug_dir/$dt.tar.bz2" /dev/shm/debug_script/$dt
ls -lh $dt.tar.bz2
ls -lh $dt.tar.bz2
-
 
+
</nowiki>
+ See http://talk.maemo.org/showthread.php?p=1092902#post1092902
+ 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:31, 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: # 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

+ See http://talk.maemo.org/showthread.php?p=1092902#post1092902

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