You are not logged in.

#1 2017-03-19 20:39:46

golden_boyy
Member
Registered: 2016-12-05
Posts: 17

[SOLVED]How to debug Arch from usb?

I recently installed GDM and Gnome and when I rebooted the system after enabling GDM it logs into the login screen and then blackscreens. I was wondering if anyone knew how to debug Arch from a USB drive with Arch on it also? I am unable to post logs due to not being able to login or SSH into the system. To better explain, I want to be able to mount my drives to the USB (if that's possible) so I can disable GDM, or if there are any better ways for me to remove GDM that would be awesome.Thanks in advance!

Last edited by golden_boyy (2017-03-20 03:07:15)

Offline

#2 2017-03-19 20:41:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]How to debug Arch from usb?

You can chroot in from live media. You could also just change the default target on the kernel line to boot to a TTY and fix things from there.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-03-19 21:01:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: [SOLVED]How to debug Arch from usb?

Or just switch to another tty (Ctrl-Alt-F2 or Ctrl-Alt-F3 ...)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2017-03-19 22:38:00

golden_boyy
Member
Registered: 2016-12-05
Posts: 17

Re: [SOLVED]How to debug Arch from usb?

Update: I was able to chroot into the system using this guide http://dominicm.com/enter-chroot-enviro … rch-linux/ in addition to https://wiki.archlinux.org/index.php/change_root. I am able to login to the system and change files except disable the GDM and/or prevent it from starting on startup on the host system. The error message is "failed to stop gdm.service: unit service not loaded." I'm not completely sure on how to proceed from here. Also, due to the black screen, I am unable to use the Ctrl-Alt-F2 or any other key combination. Once again thanks for the assistance.

Offline

#5 2017-03-19 22:41:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: [SOLVED]How to debug Arch from usb?

You don't need to stop it, you need to disable it.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2017-03-19 22:44:43

golden_boyy
Member
Registered: 2016-12-05
Posts: 17

Re: [SOLVED]How to debug Arch from usb?

"Sudo systemctl disable gdm" and sudo systemctl disable gdm.service" return "Failed to disable unit: no such file or directory"

Offline

#7 2017-03-19 22:48:18

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: [SOLVED]How to debug Arch from usb?

Then you weren't actually chrooted into your installation.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2017-03-19 22:49:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]How to debug Arch from usb?

Please post this from the chrooted environment:

systemctl list-unit-files --state enabled

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2017-03-19 23:18:03

golden_boyy
Member
Registered: 2016-12-05
Posts: 17

Re: [SOLVED]How to debug Arch from usb?

Here is the output. https://ptpb.pw/9dkh

Offline

#10 2017-03-19 23:20:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,520
Website

Re: [SOLVED]How to debug Arch from usb?

That's the iso.  You need to chroot into your system.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2017-03-19 23:21:36

loqs
Member
Registered: 2014-03-06
Posts: 17,315

Re: [SOLVED]How to debug Arch from usb?

UNIT FILE             STATE  
autovt@.service       enabled
choose-mirror.service enabled
getty@.service        enabled
pacman-init.service   enabled
default.target        enabled
multi-user.target     enabled
remote-fs.target      enabled

7 unit files listed.

Those units specifically choose-mirror.service and pacman-init.service indicate the command has not been run in the chroot as requested.
Please post the exact commands you are using to chroot.
Edit:
Copying_text_from_a_terminal

Last edited by loqs (2017-03-19 23:35:12)

Offline

#12 2017-03-20 02:57:01

golden_boyy
Member
Registered: 2016-12-05
Posts: 17

Re: [SOLVED]How to debug Arch from usb?

I found the issue gentlemen. I thought I was chrooted into the system but I was not. Thank you all so much for the extremely quick responses which ultimately led me to the solution. Last question, I still am unable to load a window manager without it crashing on me. Should I create a new post about that issue?

Offline

#13 2017-03-20 03:01:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]How to debug Arch from usb?

Yes. You can mark this a [Solved] by editing your first post and prepending it to the title.

Start a new thread with details of your video card(s), drivers and relevant logs.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB