LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2009, 02:57 PM   #1
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Rep: Reputation: 30
how to use KNOPPIX as a chroot


any suggestions as how to mount a KNOPPIX iso as a chroot or how to make a Knoppix chroot?
 
Old 09-13-2009, 09:49 PM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by donnied View Post
any suggestions as how to mount a KNOPPIX iso as a chroot or how to make a Knoppix chroot?
1. Copy the Knoppix ISO to your hard drive.

2. mount -t iso9660 -o ro,loop /path/name.iso /ISO_mountpoint

3. chroot (somewhere appropriate within the mounted filesystem).

I haven't actually done this, but psychologists regularly counsel suicidal teenagers, and the psychologists haven't committed suicide, so what do they know?
 
Old 09-19-2009, 06:11 PM   #3
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Original Poster
Rep: Reputation: 30
Well, that suggestion might almost work. What I did was:

1) Install cloop utils to extract the Knoppix sytem from the ISO
aptitude install cloop-utils

mount -t iso9660 KNOPPIX_V6.0.1CD-2009-02-08-EN.iso /var/chroot/knoppix -o loop

There's more info here:
http://www.knoppix.net/wiki/Cloop

You'll need to compile the kernel module for cloop:

wget http://debian-knoppix.alioth.debian....2.629-1.tar.gz


tar -xvf cloop*
cd cloop-*

make KERNEL_DIR=/usr/src/linux-2.6.30.4

mkdir -p /lib/modules/misc && cp cloop.ko /lib/modules/misc/
depmod -a
mknod /dev/cloop b 240 0

# need to install zlib_inflate kernel modules

insmod cloop.ko file=/var/chroot/knoppix2/knoppix/KNOPPIX/KNOPPIX

mount -o ro /dev/cloop compressed/
cp -Rupv compressed/* source/

http://www.stirnimann.com/mystuff/doc/knoppix.txt

http://www.knoppix.net/wiki/Cloop#If...d_on_the_disc:


After going through that I was able to chroot into knoppix. (Of course, I had added it to the schroot.conf file.)
The programs worked fine; however there was no internet connectivity despite mounting the same shared files in fstab that worked for other chroots.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot to run hd-installed distro's programs from chroot in live distro? silencestone Linux - Software 0 10-12-2007 06:29 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
Knoppix - Remastering - unable to chroot mikedeatworld Linux - Newbie 1 10-29-2006 09:45 PM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 03:57 AM
knoppix not allowing me to chroot into sarge linuxmandrake Debian 1 01-02-2006 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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