1

I have Ubuntu 12.04 lts and I want was opening my pc and after the grub menu, the screen went purple. Ubuntu didn't load after that and the hard drive activity stopped. So I restarted the pc inti recovery with Linux and ran dpkj and fsck to check file system. It doesn't help, so I clicked on recovery ( the last option on the grub menu). It replied:

Error: file not found
Error: file not found
Error: load kernel first

I don't have windows or any other OS. So in recovery mode I enabled networking and when it finished, it directed me to tty1 so I pressed ctrl+alt+F7 and F8 but nothing happened. Now it always directs me to the tty1 and I cannot access the GUI or X mode.

Please help. I am really in trouble with this.

Avinash Raj
  • 80,446
Jatttt
  • 2,367
  • 12
  • 33
  • 43

3 Answers3

6

It's because you don't have a X session running, try to start a fresh one with

startx

Alternatively try to start the display manager (as suggested by user31389)

service lightdm start
4

There can be many things wrong here. You have to find the source of the problem. I suspect something happened to the boot partition and/or root partition. Try

  • enter recovery mode and check the partitions mounted:

    root@localhost:# df

  • you should see something like:
 Sist.fichs     1K-blocos      Ocup    Livres Uso% Montado em     
 /dev/sda1       39241336  30366172   6858756  82% /              
 /dev/sda3      433336096 178292700 233008148  44% /home          
  • the first column shows the partitions
    • /dev/sda1 is my first partition on my first disk
    • /dev/sda3 is my third partition on my first disk
  • the last column shows where the partitions are mounted
    • / OS partition
    • /home users home directories partition

You probably have a different partitions layout, but what's important is that you need to be able to:

  1. load and boot the kernel (GRUB needs to know where it is)
  2. mount the OS partition
  3. mount other partitions that may exist, especially the /home partition

If what you problem is the GRUB you can check the Boot-Repair wiki page for more info. But if not, you need to check if you can mount the partitions (if not already mounted) with mount /dev/sdX# /

If you can manually mount the partitions, it's possible that the /etc/fstab is broken and you need to correct it. Check Fstab for more info.

Good luck

2

From the virtual terminals, try just Alt+F7, no control. That might work for you provided the X server is still running.

Zanna
  • 72,312
ubfan1
  • 19,049