User avatar
LinuxHippy2002
Posts: 107
Joined: Sun Jul 13, 2014 12:07 am
Location: Philadelphia, PA-USA

raspi-config messed up GUI boot

Sat Sep 20, 2014 3:54 pm

I have a strange problem with my raspberry pi B running raspbian. I wanted to boot to a GUI environment, so I used sudo rapi-config to make the change the easy way like I've done many times before with no problems. I did it in an ssh session using a 5" screen in Android and I think this was the problem. It did execute the menu as usual, but when the pi rebooted it looks like it boots ok (no errors on screen) and then starts the X session and stops with a blank screen. The green LED on the board shows that it is still loading something from the SD card. I cannot start a virtual terminal session or an ssh session.

I have Linux setup on other computers and can get into the ext partition and change files. It seems like X session files got messed up...how do I fix them from another computer?

Marty

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: raspi-config messed up GUI boot

Sat Sep 20, 2014 9:16 pm

On the raspberry pi, press CTRL+ALT+F1 to get to the command line and then uninstall the following packages like this:

Code: Select all

sudo apt-get remove xserver-xorg xinit xserver-xorg-video-fbdev lxde lxde-common
and then install them again.
There are 10 types of people: those who understand binary and those who don't.

User avatar
LinuxHippy2002
Posts: 107
Joined: Sun Jul 13, 2014 12:07 am
Location: Philadelphia, PA-USA

Re: raspi-config messed up GUI boot

Sat Sep 20, 2014 9:34 pm

I can't get to a key prompt in the pi...I can mount the card in Linux. Can I do a chroot once the card is mounted?

Marty

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: raspi-config messed up GUI boot

Sat Sep 20, 2014 10:04 pm

Mounting on Linux is trivial (assuming you have a SDCard reader). It's a standard ext4 filesystem and X86/X86_64 linux systems can read/write it without any errors.

Running a chroot won't work, because ALL of the programs on the SDCard are built for an ARMV6 processor NOT for a X86 or X86_64 processor so the chroot will fail with "invalid instruction" errors before it even starts.

You can run a chroot on a Raspberry Pi with a second SDCard mounted in a USB reader.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: raspi-config messed up GUI boot

Sat Sep 20, 2014 10:10 pm

You should be able to do a chroot with qemu. There are instructions somewhere. I did it once.

Return to “Troubleshooting”