UPDATE-- while working on the problem I've noticed that on bootup, Linux generates 2 messages to display on the console before the "Rasbian GNU/Linux 11" prompt. Those are 1st: "[ 4.253891] sd 0:0:0:0: [sda] No Caching mode page found"
and 2nd: "[ 4.253983] sd 0:0:0:0: [sda] Assuming drive cache: write through]" I lookup up the message and discovered that memory devices like USB flash etc "(sda)" don't have a caching mode page but that traditional hard drives do have them. Otherwise, I'm not sure what the significance of the message is. It seems like the desktop should still work? But it doesn't. ALSO, "mpv" command should work from the console. It does on my Debian desktop. But mpv doesn't work on the raspberry pi from console. (I had previously used it from a terminal window in the Desktop, when the desktop was working) --END OF UPDATE
My Rasberry Pi Desktop suddenly failed to bootup. This was after shutting it down the day before, but leaving the power plugged in. After numerous attempts, it boots into tty1 each time. I have the consoles tty1-6 available to ctrl-alt-f1..6 between, but not tty7 (which I think is reserved for the desktop) or above.
I've been logging in through the console, then attempting to startx but that fails to bring up the desktop. The console reports "/usr/bin/X: Permission denied" followed by "xinit: giving up" and "xinit: unable to connect to X server: Connection refused" and finally "xinit: server error"
I've logged in as su with root password, also used my user sudo password, and just issued plain ole "startx" at the console prompt from my regular user. My operating system was this years edition of Raspberry Pi OS, downloaded from the Raspberry Pi's official site. And my card is a new 32GB SD with mostly free space. The last thing I had done was load a lot of ogg files to the card (it was still less than half filled up) ripped from my Music CDs collections, and have been playing them using mpv from Bash, sending the music via bluetooth to my Bluetooth Receiver Deck that's connected to my vintage Stereo Receiver with RCA cables. As I recall, I did a normal shutdown yesterday. This morning I unplugged the power cable then plugged it back in a second later (to restart the pi)
BTW, "mpv" (even though it's a Bash text command) does not work from the console. The console reports "-bash: mpv: command not found"