Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

I need to apparently be able to run aptitude such that I can fix the following errors in my T60s.

(EE) intel(0): Failed to set tiling on front buffer: rejected by kernel
(EE) intel(0): Failed to set tiling on back buffer: rejected by kernel
(EE) intel(0): Failed to set tiling on depth buffer: rejected by kernel
(EE) XKB: No component provided Virtual core keyboard

#1 solution: Xorg.conf

#1.1

I run replaced the xorg.conf with the backup files at /mnt/sda5/etc/xorg.conf unsuccessfully. My T60s still goes to the gray-error screen although I use different xorg.conf -files.

I booted my system by Cmd-Alt-SysRq {r,e,i,s,u,b} so the new xorg.conf should be in the mounted sda5.

#1.2

I removed my /etc/X11/xorg.conf, but the same problem remains. This suggests to me that the problem is not in X11.

#2 Solution

Daubers at Ubuntu-uk suggests to

  1. mount /proc /dev /sys into your old fs using a loopback interface
  2. run chroot

This means that I need to run

   mount /dev/sda5 /proc 
   mount /dev/sda5 /dev 
   mount -o loop /chroot/sys /sys

The last command gives me the output

could not find any loop device. Maybe this kernel does not know about the loop device? (if so, recomplie or `modprobe loop`.)

The output means apparently that Ubuntu's Linux Kernel does not support the feature loop.

The command fdisk -l gives me:

alt text

How can you run mount -o loop /chroot/sys successfully? I need to apparently add some module to Linux kernel

#3 by Ubuntu Live CD

#3.1 By updating applications in Ubuntu by a Live CD

The following commands are not accurate according to popey at #ubuntu-uk.

I run

sudo mkdir /mnt/repair
sudo mount /dev/sda5 /mnt/repair
sudo chroot /mnt/repair              // after this I did not manage to run other commands    

sudo apt-get update                  // I cannot run these, I get no traffic outside
sudo apt-get upgrade
sudo aptitude upgrade
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get upgrade

exit
sudo reboot
share|improve this question

migrated from stackoverflow.com Nov 24 '09 at 13:21

This question came from our site for professional and enthusiast programmers.

1  
Missing loop? Try modprobe loop. This does not belong on Stack Overflow, though -- try Super User instead. –  ephemient Nov 23 '09 at 19:32
    
I finally reinstalled Ubuntu to solve the problem. –  Masi Dec 20 '09 at 20:35
add comment

2 Answers

up vote 0 down vote accepted

Why not use a ubuntu live CD of the same version of the distro that went sour? It should be willing to do some repair work?

Also, can you boot your system without X?

Serverfault might get you more help here.

To reconfigure X, read this.

share|improve this answer
    
I can boot my system without X, but my system gets stuck when I try it. –  Masi Nov 23 '09 at 22:11
    
Then you need the command that reconfigures x ... –  bmargulies Nov 23 '09 at 22:17
add comment

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.

share|improve this answer
    
I opened a thread about the problem at stackoverflow.com/questions/1790010/… –  Masi Nov 24 '09 at 13:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.