Home » Questions » Computers [ Ask a new question ]

Fixing X11's startup Errors by Xorg.conf or modprobe

Fixing X11's startup Errors by Xorg.conf or modprobe

I am using Ubuntu Live CD to get an access to the broken Ubuntu after running a few Linux Kernel Magic commands without knowing completely what I did. I mounted the system to Live CD.

Asked by: Guest | Views: 165
Total answers/comments: 1
Guest [Entry]

"I get an excellent answer by Popey at #Ubuntu-uk

Paste from popey at Tue, 24 Nov 2009 12:04:21 +0000

Repairing a stuffed up install

== Asumptions ==

* Booted off live cd
* Local hard disk is /dev/sda
* Root partition is /dev/sda1
* Home partition is /dev/sda2

== Make directories ==

$ mkdir ~/target
$ mkdir ~/target/proc
$ mkdir ~/target/dev
$ mkdir ~/target/sys
$ mkdir ~/target/home

== Mount filesystems ==

$ sudo mount /dev/sda1 ~/target
$ sudo mount /dev/sda2 ~/target/home

== Mount other bits ==

$ sudo mount -o bind /dev ~/target/dev
$ sudo mount -o bind /sys ~/target/sys
$ sudo mount -o bind /proc ~/target/proc

== Chroot into it ==

$ sudo chroot ~/target

I get the following in running one of the commandss

root@ubuntu:/# sudo dpkg --configure -a
sudo: unable to resolve host ubuntu

This may be the reason why Popey's pieces of advice did not solve the problem."