User avatar
davidsstar
Posts: 3
Joined: Thu Apr 24, 2014 7:18 pm
Location: Iceland

GUI unavailible in Raspbian when root on USB

Fri Apr 25, 2014 12:08 am

I'm trying to use a USB stick for Raspbian root directory, instead of an SD card.

So far I have:
1) extracted root.tar.xz to an ext4 formatted USB stick (Raspbian “wheezy” OS, from NOOBS download page)
2) extracted boot.tar.xz to a FAT32 formatted SD card (Raspbian “wheezy” OS, from NOOBS download page)
3) edited boot cmdline.txt flag to "root=/dev/sda1"

The pi boots up nicely into command line but as soon as I try startx the raspbian reports: "unable to connect to X server: No such file or directory"

I don't suppose there is a simple answer to this, like a script somewhere on root that I can edit, so that raspbian "knows" root resides in dev/sda1, not dev/mmcblk0p2?

btw: I have a 512mb sd card for my root directory and a 4gb usb stick for root. I have not tried installing using noobs, seeing as this would be impossible with such a small sd card.

Thanks for your consideration,
Davíð James

Aydan
Posts: 729
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: GUI unavailible in Raspbian when root on USB

Fri Apr 25, 2014 11:37 am

I think you may have a permissions or ownership problem from extracting the archives.
The way I'd do it is DD a working root partition from an SD card to your USB stick.

Regards
Aydan

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: GUI unavailible in Raspbian when root on USB

Fri Apr 25, 2014 11:46 am

It's important to use the p flag when compressing and extracting. It's better to rsync -av the files across, anyway.

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: GUI unavailible in Raspbian when root on USB

Fri Apr 25, 2014 1:22 pm

Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
davidsstar
Posts: 3
Joined: Thu Apr 24, 2014 7:18 pm
Location: Iceland

Re: GUI unavailible in Raspbian when root on USB

Fri Apr 25, 2014 11:37 pm

Great advice guys. I will give all the suggestions a try and report back here tomorrow for anyone that might be interested.

Cheers,
Davíð

Return to “Troubleshooting”