LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-17-2004, 09:36 AM   #16
Nightfrost
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Original Poster
Rep: Reputation: 30

Hi all,

I reinstalled a debian system (on my goof-around-partition), mostly in order to try apt-build (a very interesting thing btw ) and while I was at it I tried to chroot. Of course, it worked just fine.

I've been by now installing a few things on my new system- not much; x-windows and xfce are the major things; and a few small tools (like links2, fbtv, etc.).

To my surprise, chroot seized working again when I tried it now.

So my question: are there any softwares that could be the cause of my little problem here?

Thanks.
 
Old 11-17-2004, 01:15 PM   #17
farpoint
Member
 
Registered: Sep 2004
Location: France
Distribution: Debian Sarge, Etch. FC1,2,3,4,5. Slackware 10.0. Gentoo. Kubuntu.
Posts: 193

Rep: Reputation: 30
Hi Nightfrost. Don't know if I'm way out here as I had so many problems with Gentoo 3.0 with a stage 3 install using Genkernel. But, I had the same problem with chroot. And seem to remember that it was to do with missing the command "cd /mnt/gentoo" just before extracting the tarball way back at the beginning of the install. It may be worth going back as your not too far into the install, or remembering if you did that cd.
Another couple of errors I made were:
Making a directory /root instead of just mounting the "/" directory (that caused a few problems)
Also I did not make a /boot partition on the earlier installs and think that may have caused a few problems as well. Mekon.
 
Old 11-17-2004, 01:58 PM   #18
Nightfrost
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Original Poster
Rep: Reputation: 30
Thanks alot for the reply. Somehow it feels nice to know that someone else has had a similar problem (it was starting to feel a bit weird for a while there ).

However, I'm not sure if I have the same problem you had. The thing is, I gave up on the gentoo-installation (at least for the moment), and installed a new debian version. And it is from within this new installation that I recently tried to chroot into my main OS, also debian on another patition. Now, the problem is that chroot worked when my base was installed and now it doesn't. The system I'm attempting to chroot to has not been touched at all. The "only" difference between the early attempt of chroot (which worked) and the later attempts (which didn't work), is my installation of a few additional packages.

But thanks again for your tips on gentoo; I'll keep those in mind next time I attempt a gentoo installation.
 
Old 11-17-2004, 05:38 PM   #19
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Hmm..
one way to see what you have updated resently is
Code:
ls -lahFrt /usr/share/doc/ | tail -30
What is the output?
Also what are their versions?
Code:
dpkg -l `ls -hrt /usr/share/doc/ | tail -30`
Do you have something else than debian proper is your /etc/apt/sources.list and/or have you installed any packages outside the debian system?
 
Old 11-19-2004, 05:40 PM   #20
rpdillon
LQ Newbie
 
Registered: May 2004
Distribution: Gentoo (main box, mythtv and laptop)
Posts: 14

Rep: Reputation: 0
OK, well, I've been running gentoo for months (linux for years), and just hit this problem on an AMD64 machine tryig to build a 32 bit chroot to compile/emerge 32 bit stuff (mplayer!)

I'm stumped. I checked tons of permissions (chroot directory, /bin directory, the /bin/bash itself inside the chroot, the libraries in /lib), and have tried various variations on those commands.

I remember messing with chroots when I first installed gentoo and I didn't have any problem - I'm wondering if this an artifact of a more recent stage tarball. I'm using Stage 3 for the chroot, though I used stage 1 for the main install.

Anyone have any other ideas?
 
Old 11-19-2004, 06:02 PM   #21
Nightfrost
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Original Poster
Rep: Reputation: 30
Quote:
Hmm..
one way to see what you have updated resently is

code:

ls -lahFrt /usr/share/doc/ | tail -30


What is the output?
Also what are their versions?

code:

dpkg -l `ls -hrt /usr/share/doc/ | tail -30`



Do you have something else than debian proper is your /etc/apt/sources.list and/or have you installed any packages outside the debian system?

The thing is; I removed the entire system and reinstalled debian again. Right now I only have the base system installed and chrooting works, so I'll go ahead - when I find the time - to install packages again and test chrooting frequently to see when it fails. Thanks a lot for the commands, I'm sure they'll prove to be useful. I had some extra stuff in my sources.list, such as bootsplash, mplayer, radeon-drivers, etc., but I don't think I actually had anything installed which was not debian proper. I'll keep that in mind though, for this new attempt.


Quote:
I remember messing with chroots when I first installed gentoo and I didn't have any problem - I'm wondering if this an artifact of a more recent stage tarball. I'm using Stage 3 for the chroot, though I used stage 1 for the main install.
Could be, I guess; but - as you probably have noticed following this thread - my chroot-problem doesn't really have anything to do with gentoo - I suffer the same problem in debian. Could it be a kernel-thing? (In case I haven't mentioned it earlier, I'm using a 2.6.9-based kernel)
 
Old 11-20-2004, 12:29 PM   #22
rpdillon
LQ Newbie
 
Registered: May 2004
Distribution: Gentoo (main box, mythtv and laptop)
Posts: 14

Rep: Reputation: 0
I figured out my problem...I was in the process of posting something to the Gentoo forums when it hit me that I had not mounted my mount point (/mnt/32) with the right options! I had put in noauto, for example, but I had neglected to put in "defaults", and more specifically, "exec", which will allow me to execute files from that mount point. It fixed it for me, hope this helps for you.
 
Old 11-21-2004, 05:19 AM   #23
Nightfrost
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Original Poster
Rep: Reputation: 30
Talking

Haleluja!

You're so right! That was my problem as well. Can't believe that passed me by. Everything's working now.
 
  


Reply



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
permission denied as root Foosed Slackware 6 06-06-2005 12:38 AM
permission denied when root? TaNeK Linux - Software 8 02-01-2005 12:39 PM
Permission denied as root Cynric Linux - General 4 08-15-2004 11:47 AM
Even as root, Permission Denied RevX Linux - Software 7 04-24-2004 11:10 PM
permission denied even as root awolff01 Linux - Software 8 02-28-2003 07:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:32 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