You are not logged in.

#1 2012-12-11 10:40:48

farmerdave
Member
Registered: 2011-11-23
Posts: 114

how to read journalctl when Arch fails to boot

I had a recent strange experience where some hardware failed - my best guess is a small power surge that reset the CMOS time on my motherboard to the manufacture date. After that, I couldn't successfully boot Arch to a graphical environment. I eventually found out it was because the last hard drive mounts occurred too far in the future.

But, it was really quite difficult to find out. I tried to alter my grub boot entry by appending the number 3 on the end for runlevel 3, no luck. I tried to disable my .xinitrc and login manager, but that didn't seem to work either. I tried to boot gparted-live cd but even this wouldn't boot properly. It would show the typical Linux boot process, all until it switches from output text to a graphical, and then the screen would just stay black. My best hope was to use the Arch installation disk, which gave me a root prompt. I eventually got a connection to an ntp server and fixed things right up, once it was diagnosed.

It got me thinking, how could I actually boot up a different distro and read the Arch journalctl? If I open the file in an editor like nano it isn't human-readable.

Last edited by farmerdave (2012-12-11 10:42:26)

Offline

#2 2012-12-11 12:11:35

p0x8
Member
Registered: 2012-09-20
Posts: 70

Re: how to read journalctl when Arch fails to boot

Reading journal files from an arbitrary location is supported according to the journalctl man page:

       --directory=, -D
           Takes an absolute directory path as argument. If specified journalctl will operate on
           the specified journal directory instead of the default runtime and system journal
           paths.

Assuming that the different distro has a journalctl binary whose version is compatible with Arch's systemd-journald, it should work.

Offline

#3 2012-12-11 12:11:40

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: how to read journalctl when Arch fails to boot

The man page says

  --directory=, -D
           Takes an absolute directory path as argument. If specified journalctl will operate on the specified
           journal directory instead of the default runtime and system journal paths. 

I assume that as long as the distro you are using on the live cd has systemd you can just enter the full path to the file.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2012-12-11 20:27:36

farmerdave
Member
Registered: 2011-11-23
Posts: 114

Re: how to read journalctl when Arch fails to boot

Thanks for the responses.

Offline

Board footer

Powered by FluxBB