Page 1 of 5 123 ... LastLast
Results 1 to 10 of 50

Thread: HOWTO: Log Boot Messages

  1. #1
    Join Date
    Jul 2005
    Location
    New York
    Beans
    57

    HOWTO: Log Boot Messages

    At times I find it very difficult to see what has succesfully loaded or not during boot up, and at those times I wish I could have a log to look over in calm. After inquiring, someone (namely Nequeo) discovered this logging functionality.

    Here's how to set it up:

    You need to enable boot logging by opening a terminal and typing the following:
    Code:
    $ sudo gedit /etc/default/bootlogd
    The text editor will open, and the following will be show:

    Code:
    # Run bootlogd at startup ?
    BOOTLOGD_ENABLE=No
    Change BOOTLOGD_ENABLE to yes

    Now, everytime you restart, /var/log/boot will be created, and it will contain a log of all your boot messages. You need to be root to open it, so you can easily open it up again with sudo.

    All thanks go to Nequeo for figuring this out, he also added the following:

    NOTE: On my machine, I get a message on my screen during boot saying that the boot log has failed. But it was lying, the boot log worked just fine.

    ALSO NOTE: The boot log will be full of lines like this '^[[A^[[74G[ ok ]'. All that 'garbage' is just the color code used to display the text as white or red during boot. It seems to get captured along with all the rest of the text.
    So there you have it! This is a really useful feature, and I was slightly surprised that this was disabled by default.

  2. #2
    Join Date
    Nov 2004
    Beans
    19

    Re: HOWTO: Log Boot Messages

    This is a really useful feature, and I was slightly surprised that this was disabled by default.
    Totally agreed!

  3. #3
    Join Date
    Aug 2005
    Beans
    38
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Log Boot Messages

    Very helpful indeed, thank you Sephiriz
    raph

  4. #4
    Join Date
    Apr 2005
    Location
    Sintra, Portugal
    Beans
    835

    Re: HOWTO: Log Boot Messages

    Very helpful! Thanks a lot.

  5. #5
    Join Date
    Aug 2005
    Location
    Saint Paul, MN
    Beans
    2,907

    Re: HOWTO: Log Boot Messages

    I was looking for this the other day and couldn't find it. I assumed that since it was running out of rcS.d that it must just be the kernel.log or something.

    As I open a terminal to read through ALL of the files in /etc/default...

  6. #6
    Join Date
    Oct 2005
    Location
    São Paulo, Brazil
    Beans
    86
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Log Boot Messages

    Quote Originally Posted by renoir98
    Totally agreed!
    For Christ sake!! I've lost hours trying to figure out where I could read the boot log. I really don't know why the developers disabled this log. Thanks!

  7. #7
    Join Date
    Apr 2006
    Location
    Tejas
    Beans
    445
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Log Boot Messages

    Hmm, I tried this and rebooted, but I see no boot file in /var/log
    Any ideas what is going on?

    There is a bootstrap.log, but I don't think that is the same thing.
    Last edited by Peepsalot; July 4th, 2006 at 05:43 PM.
    Quote Originally Posted by smcnally
    For me, it's all about the penguin...If the Linux mascot was a tiger or an elephant, I would have never even tried it.

  8. #8
    Join Date
    Mar 2005
    Location
    MD, US
    Beans
    102

    Re: HOWTO: Log Boot Messages

    bootlogd seems to be borked:

    bootlogd: cannot find console device 136:0 in /dev

    Trying this to start it up before udev:

    update-rc.d -f bootlogd remove
    update-rc.d bootlogd defaults 08

    Update: Yeah, that fixed it for me.
    Last edited by jfdill_2; July 7th, 2006 at 08:02 PM.

  9. #9
    Join Date
    Nov 2005
    Location
    Vienna
    Beans
    114
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Log Boot Messages

    Hallo!

    i also want to use this usefull feature.
    but after changing
    BOOTLOGD_ENABLE=No
    to
    BOOTLOGD_ENABLE=yes
    in /etc/default/bootlogd

    and rebooting twice still no file nameed "boot" exists in /vat/log or anywhere on the hard disk (after serching for "boot")

    anybody have an idea why?
    thanks!

    PS i use the dapper version of ubuntu i dont know if this makes a difference...

  10. #10
    Join Date
    May 2006
    Location
    Kelowna, BC
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: HOWTO: Log Boot Messages

    Quote Originally Posted by Peepsalot View Post
    Hmm, I tried this and rebooted, but I see no boot file in /var/log
    Any ideas what is going on?
    There is a bootstrap.log, but I don't think that is the same thing.
    I have the same problem....I can't find a "boot"file in /var/log either, actually nowhere on the HDD!
    Can anybody help us to find it?

Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •