Page 1 of 1
raspi-config messed up GUI boot
Posted: Sat Sep 20, 2014 3:54 pm
by LinuxHippy2002
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
Re: raspi-config messed up GUI boot
Posted: Sat Sep 20, 2014 9:16 pm
by kusti8
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.
Re: raspi-config messed up GUI boot
Posted: Sat Sep 20, 2014 9:34 pm
by LinuxHippy2002
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
Re: raspi-config messed up GUI boot
Posted: Sat Sep 20, 2014 10:04 pm
by DougieLawson
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.
Re: raspi-config messed up GUI boot
Posted: Sat Sep 20, 2014 10:10 pm
by rpdom
You should be able to do a chroot with qemu. There are instructions somewhere. I did it once.