• HOW TO: Obtain system logs when unable to boot into GUI


    @“cgrif”:126clgzu said:

    I could not get into a command prompt by hitting Alt-F3.[/quote:126clgzu]Did you mean Ctrl-Alt-F3? Not sure if it was a typo or if you did not include “Ctrl”. It should be Ctrl+Alt+F3. If you didn’t use Ctrl go ahead and try that to see if you can switch VTs. If that doesnt work then remove “quiet” from the kernel boot command (press " e " when grub starts) and put this in its place:

    That should bring you to a login prompt. From there you can copy the journal logs to a usb flash drive (if you have one it makes it a lot easier). Be sure to boot normally at least once before grabbing the logs so that the failure will be in the logs.  
    >   
    > \#Write the journal from the previous 3 boots to a file  
    > \# NOTE: If you are troubleshooting the live install image there wont be any previous journals so just do the first one.  
    > mkdir /tmp/journals && cd $\_  
    > sudo journalctl -b 0 \> journal  
    > sudo journalctl -b 1 \> journal.last  
    > sudo journalctl -b 2 \> journal.2last  
    > sudo journalctl -b 3 \> journal.3last  
    >   
    > \#Copy xsession-errors and Xorg logs \*\*Don't forget the period at the end of each command...im lazy ;-)  
    > cp ~/.xsession-errors .  
    > cp ~/.xsession-errors.old .  
    > cp /var/log/Xorg.0.log .  
    > cp /var/log/Xorg.1.log .  
    >   
    > \#Copy the files to USB drive  
    > sudo mount /dev/sdb /mnt  
    > sudo cp -R /tmp/journals /mnt  
    > sudo umount /mnt
    

    That should tell us what we need to know

    Cheers!

  • @“cgrif”:126clgzu said:

    I could not get into a command prompt by hitting Alt-F3.[/quote:126clgzu]Did you mean Ctrl-Alt-F3? Not sure if it was a typo or if you did not include “Ctrl”. It should be Ctrl+Alt+F3. If you didn’t use Ctrl go ahead and try that to see if you can switch VTs. If that doesnt work then remove “quiet” from the kernel boot command (press " e " when grub starts) and put this in its place:

    That should bring you to a login prompt. From there you can copy the journal logs to a usb flash drive (if you have one it makes it a lot easier). Be sure to boot normally at least once before grabbing the logs so that the failure will be in the logs.  
    >   
    > \#Write the journal from the previous 3 boots to a file  
    > \# NOTE: If you are troubleshooting the live install image there wont be any previous journals so just do the first one.  
    > mkdir /tmp/journals && cd $\_  
    > sudo journalctl -b 0 \> journal  
    > sudo journalctl -b 1 \> journal.last  
    > sudo journalctl -b 2 \> journal.2last  
    > sudo journalctl -b 3 \> journal.3last  
    >   
    > \#Copy xsession-errors and Xorg logs \*\*Don't forget the period at the end of each command...im lazy ;-)  
    > cp ~/.xsession-errors .  
    > cp ~/.xsession-errors.old .  
    > cp /var/log/Xorg.0.log .  
    > cp /var/log/Xorg.1.log .  
    >   
    > \#Copy the files to USB drive  
    > sudo mount /dev/sdb /mnt  
    > sudo cp -R /tmp/journals /mnt  
    > sudo umount /mnt
    

    That should tell us what we need to know

    Cheers!

  • Many thanks! It’s saves me from losing whole day on searching for small problem…

Posts 3Views 1597
Log in to reply