Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: chroot : /bin/bash No such file?, Cannot chroot for some reason< Next Oldest | Next Newest >
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Nov. 16 2005,17:29 QUOTE

Linux filenames / directorynames are CaSe SeNsiTiVe

Does

source/KNOPPIX work for you?

Also, you can use the TAB key on you keyboard to automatically complete the file path, IE:

cd /mnt/s

and then press TAB and you get

cd /mnt/sda1

Press TAB again and you might get

cd /mnt/sda1/sources

If not, keep pressing the TAB key until the right directory appears.  You can help the process by typing in the first few letters of your next directory name before you press TAB.
Back to top
Profile PM 
aubads Offline





Group: Members
Posts: 11
Joined: Nov. 2005
Posted: Nov. 16 2005,17:48 QUOTE

Just tried the suggested remaster method.

when trying to do a simple:
Code Sample

cp -Rp /KNOPPIX/boot newcd
cp: cannot create symbolic link 'newcd/boot/System.map': Operation not permitted


Same when doing the rest of the copies

Seems like a permission issue?
I am root when doing this.
Back to top
Profile PM 
aubads Offline





Group: Members
Posts: 11
Joined: Nov. 2005
Posted: Nov. 16 2005,18:10 QUOTE

Just getting worse.

Firstly I had the chroot issue (still unresolved).
2ndly I have the cp issue (with symbolic links not copying)

Now when I tried to create the source/KNOPPIX directory, it creates but when I check with an : ls command it showss up in lower case.
eg knoppix?

Help please.... :(
Back to top
Profile PM 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: Nov. 16 2005,18:40 QUOTE

OK, here we go. Quick Knoppix remastering howto.

Spin up the DSL CD
Pick a partition to remaster from. I will choose sda1 as that is in your first post
Code Sample
mount /dev/sda /mnt/sda1

now, as root, do the following commands
Code Sample
mkdir /mnt/sda1/source

Code Sample
mkdir /mnt/sda1/newcd/KNOPPIX

Code Sample
cp -Rp /cdrom/boot /mnt/sda1/newcd


Copy the FS over to /mnt/sda1/source

Code Sample
cp -Rp /KNOPPIX/* /mnt/sda1/source

Code Sample
cp -Rp /KNOPPIX/.bash_profile /mnt/sda1/source


Now your remaster environment is set.
Now these commands, as root

Code Sample
cd /mnt/sda1

Code Sample
chroot source


Now you are in the remastering environment. when you are done type 'exit' at the command prompt.

There are many ways to remaster Knoppix and many other steps to utilize depending on what you're doing. This is a simple way to setup the environment and chroot into it.

Chris
Back to top
Profile PM MSN YIM 
aubads Offline





Group: Members
Posts: 11
Joined: Nov. 2005
Posted: Nov. 16 2005,19:06 QUOTE

Solved the permission, symlink and most importantly the chroot issue...

Thanks to:
- Clacker
- Cbagger01
- Clivesay
for you info, which got me thinking about each step.

In particular the case sensitive statement.
Basically the solution is that you need to create an ext2 filesystem

I guess you guys may have already known this and it was just implied.
I had a dos fat filesystem

When i did a mk2efs on the filesystem and eveything started to copy fine.
This statement needs to be in the FAQ or Remastering doc....


The next step I will be asking is
- compiling new application in the environment.
- booting into the new environment to test
Anyone have any tips?

thanks
Simon
Back to top
Profile PM 
10 replies since Nov. 16 2005,10:55 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: chroot : /bin/bash No such file?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code