LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2009, 12:13 PM   #1
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Rep: Reputation: 37
Question chroot problem.


Why do I always get the weird problems?

so, the info first:

Code:
$ echo $LFS
/mnt/lfs
if I chroot to $LFS I suddenly cant use the key "i" in my keyboard!!
I also cant copy paste any "i" in my screen!!

yesterday i could chroot without issues!

if I chroot to / my keyboard works fine...
I am not sure why chrooting to that specific folder mess up with my keyboard!

the real command that i have been using is:

Code:
chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1="[\w]\$ " PATH=/bin:/usr/bin:/sbin:/usr/sbin:. /bin/bash --login
Which as i said I could use without troubles before today.
I also got a strange problem that vlc would play music but no videos, so something went off in my pc but im not sure what was it (i fixed vlc)

Any hints on this one?
 
Old 08-02-2009, 11:31 PM   #2
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
nobody has any idea?
nothing?
 
Old 08-03-2009, 01:31 AM   #3
legine
LQ Newbie
 
Registered: Apr 2008
Posts: 10

Rep: Reputation: 0
Hi,

My only Idea is that you should have something like /etc and /mnt/lfs/etc/ (For chrooting)
Maybe something changed at update in /etc and didnt change in /mnt/lfs/etc?

Thinking in that Direction it should be something like this I bet. (Could be also something if you changed Kernel...)

I am guessing that because of
Code:
chroot $LFS [...] bash -root
.

Hope that helps you

GL!
Legine
 
Old 08-03-2009, 12:54 PM   #4
epilitimus
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 35

Rep: Reputation: 17
Is it possible someone messed with the directory you are chrooting to? I'm thinking maybe your keyboard is getting remapped as a result of the chroot. The only reason I mention someone messing with the directory is a friend of mine had a prank pulled on him years ago involving his keyboard getting remapped.
 
Old 08-03-2009, 11:31 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,351
Blog Entries: 4

Rep: Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334Reputation: 3334
Yeah, this sounds like shell mischief, caused by some errant keyboard-map. Is "i" the only key that doesn't work? Does it fail-to-work when shifted, Ctrl, etcetera?
 
Old 08-04-2009, 05:12 AM   #6
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
Hi guys,

thanks for the pointers...

> Is it possible someone messed with the directory you are chrooting to?

myself probably, since this is a Linux from Scratch root and I did modify some things, but the problem appeared when i tried to boot the system... I am having a Kernel Panic, and since then when i chroot in $LFS i get this issue with the "i".

I can use "shift-i"~ and "CAPS-i"

but if I do "ls" and try to copy "/lib" and when i paste it I get "/lb", so I cannot even copy/paste it.

Quote:
[~]$ echo $LANG
en_US
I am not sure if there is a problem with the keyboard map... how do i check on it?
 
Old 08-04-2009, 04:32 PM   #7
epilitimus
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 35

Rep: Reputation: 17
You can check the current keymap with loadkeys. If you are having a kernel panic the problem may well be that the kernel console driver is messed up.
 
Old 08-05-2009, 12:03 AM   #8
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
thanks for the hint, yesterday I fixed the kernel issue, it was a sata driver missing, but when the LFS system finished loading i got the same problem with the 'i', I will check what loadkeys does for me.
 
Old 08-05-2009, 01:26 AM   #9
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
i did a dumpkeys and this is what i got:

keycode 23 = i

I also did a dumpkeys in my slackware machine and it is the same... so basically the i IS mapped correctly, but i dont get it why it doesnt work, and it doesnt allow me to copy paste it either!!
 
Old 08-05-2009, 05:13 AM   #10
ism
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Rep: Reputation: 1
hi Raptor,

i am sure you are aware of this resource - but just in case you are not then
http://en.wikipedia.org/wiki/Chroot

explains a lot - much of which is certainly new to me.
 
Old 08-05-2009, 01:39 PM   #11
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by ism View Post
hi Raptor,

i am sure you are aware of this resource - but just in case you are not then
http://en.wikipedia.org/wiki/Chroot

explains a lot - much of which is certainly new to me.
Thanks for the link, it was a good reading, learning new things always feels good.

But it did not help in this particular case, since basically chroot is working fine... it seems to be a problem with the keyboard map as far as we have been pointing out but i dont seem to get it right since the keys are mapped in chroot the same way as in my slackware host...

I also tried loading the default keys and it came up with "Cannot find defkeymap.kmap" but again dumpkeys mentions that key 23 = i so I think it IS loading a default keyboard somewhere over the rainbow.
 
Old 08-06-2009, 12:18 AM   #12
epilitimus
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 35

Rep: Reputation: 17
Just for giggles...
if you do an ls /lib do you actually get the right listing. I know the 'i' won't show up but if you get the right listing regardless then the problem is on the output/display side rather than in the input/keyboard side.
 
Old 08-06-2009, 12:20 AM   #13
epilitimus
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 35

Rep: Reputation: 17
Just noticed that you said that dumpkeys shows an 'i'. Is this under the chroot condition?
 
Old 08-06-2009, 12:42 AM   #14
epilitimus
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 35

Rep: Reputation: 17
one more test:

# echo -e "\151"
i

since you are forcing an 'i' to be displayed by ascii code (in octal) the output side is completely isolated from the input side.
 
Old 08-06-2009, 01:52 AM   #15
RaptorX
Member
 
Registered: Jun 2009
Location: Emden, Germany
Distribution: Slackware 12.2, Slax 6.1
Posts: 254

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by epilitimus View Post
one more test:

# echo -e "\151"
i

since you are forcing an 'i' to be displayed by ascii code (in octal) the output side is completely isolated from the input side.
Code:
[~]$ echo -e "\151"
\151
I guess thats where the problem is!
thanks for pointing this one out... now what can i do about it?

EDIT
actually none of the ascii codes that i pass works...

Last edited by RaptorX; 08-06-2009 at 02:03 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot problem aditya_gpch Linux From Scratch 2 05-08-2008 10:58 AM
chroot to run hd-installed distro's programs from chroot in live distro? silencestone Linux - Software 0 10-12-2007 06:29 AM
chroot problem bujecas Linux - General 1 01-02-2006 05:09 AM
chroot problem rjkfsm Linux - Software 1 07-19-2005 10:46 AM
problem with chroot ef_ Linux - Security 6 10-14-2004 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration