0

I have two systems on my machine. One is Ubuntu and the other one is Linux from scratch (LFS) which I built it my self.

Ubuntu has X window system installed but LFS has no windowing system whatsoever.

I chroot from LFS (/dev/sda3) to Ubuntu (/dev/sda1) root partition with following commands:

mkdir /mnt/sda1
mount -v              /dev/sda1    /mnt/sda1
mount -v --bind       /dev         /mnt/sda1/dev
mount -vt devpts      devpts       /mnt/sda1/dev/pts -o gid=5,mode=620
mount -vt proc        proc         /mnt/sda1/proc
mount -vt sysfs       sysfs        /mnt/sda1/sys
mount -vt tmpfs       tmpfs        /mnt/sda1/run
chroot /dev/sda1

Then after chrooting, I ran xinit. X window system started but apparently without detecting mouse.

Currently I'm stuck in X window system and I cannot do anything. When I press ctrl+alt+F1 to F6 or ctrl+alt+backspace nothing happens. To complicate matters further, before I chroot, I was compiling something on another console tty and I don't want to lose that compilation progress with pushing hardware restart button.

Is there a way out of this situation.

  • 1
    Can you post the X server log ? – Johan Boulé Dec 29 '16 at 19:34
  • I don't have access to that system any more, I wish I could see the log now – user3405291 Jan 5 '17 at 16:12
1

Some people have reported you need to bind-mount udev too.

  • Oh, right, i always forget this site has several kind of posts.. should have made it a comment I guess. – Johan Boulé Dec 11 '16 at 0:23
  • Do you know where udev is located on root file-system? – user3405291 Dec 29 '16 at 16:54
  • Sorry, it's actually /dev, which you already have bind-mounted. I didn't see that. I guess I should just remove this answer. – Johan Boulé Dec 29 '16 at 19:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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