LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-30-2004, 06:08 AM   #1
vintermann
LQ Newbie
 
Registered: Jan 2004
Distribution: Fedora
Posts: 28

Rep: Reputation: 15
I have a problem with chroot.


Because of a slightly buggy/eccentric harddisk (remind me to back up!) I have to chroot into another partition where I have knoppix and run lilo from there. I've done this before, the problem is that when I chroot I get an infinite loop like this:
/dev/null : access denied
/dev/null : access denied
/dev/null : access denied
/dev/null : access denied
/dev/null : access denied
/dev/null : access denied
...etc

I am running as root of course. The access denied must have something to do with shell permissions and/or what chroot actually does beneath the hood.

But I have no idea how to avoid it. I've avoided it before, but I can't remember how!

I wonder if I should send a bug to gnu coreutils? True, it is something in my (Fedora core 1) setup, but going into a loop like this is in any case a pretty bad handling of whatever the problem is... If I had a sensible error message it would have been a lot easier.
 
Old 01-30-2004, 07:34 AM   #2
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
What's the command you issue to chroot?
What's the actual problem you face when you try to run lilo from your normal shell?
That error is a bug, but if Fedora wraps chroot (bad idea, but you never know), for example, then it's not necessarily GNU's fault. Before you file a bug report, you'll want to make sure you're filing it with the right group. . .
 
Old 01-31-2004, 07:57 AM   #3
vintermann
LQ Newbie
 
Registered: Jan 2004
Distribution: Fedora
Posts: 28

Original Poster
Rep: Reputation: 15
The issue is something with the MBR on my hda. I tried to install grub from redhat after I got stuck on this problem. When I did that I got a useful error message from grub for the first time: Error 5. From the info file it says "this is bad" because some sanity checks failed.

I later managed to chroot. I remembered what I had to do: I had to mount hda2 manually with

mount -t reiserfs /dev/hda knoppix/

instead of just

mount knoppix

Then it works as it should (and I have lilo in my mbr again... but I think I'll backup that drive!!)

The weird thing is that the same problem exists when I boot with a knoppix cd! So I wonder if it is kudzu? I'll take a look in my fstab and I will try different combintations to see precisely when the bug appears.
 
  


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 rjkfsm Linux - Software 1 07-19-2005 10:46 AM
chroot problem bruse Linux - Security 3 07-04-2005 06:57 AM
Chroot problem PhuckFonix Linux - Newbie 3 05-02-2005 09:15 PM
problem with chroot ef_ Linux - Security 6 10-14-2004 06:46 AM
Chroot problem lokiz Linux - Networking 2 06-14-2001 09:58 AM

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

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