DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-05-27 18:48:37

Pingu
Member
Registered: 2007-04-07
Posts: 7

Something really weird with etch

Hi all

The rest of this post's title is: Or why am I missing somethig so obvious:
I am using Fonz's new fun_plug (thanks Fonz) and have installed my fun_plug, telnet access and followed pretty much every step on to installing etch.
Then I

Code:

 busybox chroot /mnt/HD_a2/etch

and get a prompt... and then:

Code:

sh-3.1# ls
sh: /mnt/HD_a2/fun_plug.d/bin/ls: No such file or directory
sh-3.1# ./ls
arch   date           egrep   hostname        mknod       nano     pwd        sh        true        zdiff
bash   dd             false   kill            mktemp      nc       rbash      sleep     umount      zegrep
cat    df             fgrep   ln              more        netcat   readlink   stty      uname       zfgrep
chgrp  dir            fuser   login           mount       netstat  rm         su        uncompress  zforce
chmod  dmesg          grep    ls              mountpoint  pidof    rmdir      sync      vdir        zgrep
chown  dnsdomainname  gunzip  lsmod           mt          ping     rnano      tar       which       zless
cp     echo           gzexe   lsmod.modutils  mt-gnu      ping6    run-parts  tempfile  zcat        zmore
cpio   ed             gzip    mkdir           mv          ps       sed        touch     zcmp        znew
sh-3.1# set | ./grep PATH
PATH=/mnt/HD_a2/fun_plug.d/bin:/usr/bin:/bin:/usr/sbin:/sbin
sh-3.1# pwd
/bin
sh-3.1#

This is really weird it's like the shell does not have a path. I am sure I am missing something easy and obvious but what?

Any help would be appreciated

Pingu

Offline

 

#2 2007-05-27 19:18:55

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Something really weird with etch

The chroot must create it's own environment. Just a guess, try:

Code:

busybox chroot /mnt/HD_a2/etch /bin/sh -l

But, before you chroot, you should bind-mount at least /proc to the chroot.

Code:

mount --bind /proc /mnt/HD_a2/etch/proc

And clean it up again, after you leave the chroot:

Code:

umount /mnt/HD_a2/etch/proc

Good luck

Offline

 

#3 2007-05-27 19:55:53

Pingu
Member
Registered: 2007-04-07
Posts: 7

Re: Something really weird with etch

Hi fonz

Thanks 1000 times. It just works.
Now all I have to do is to get netatalk, lpd and kill the original smb server and get my fun_plug to chroot directly to etch... :-)

Pingu

PS: It shouldn't be that bad. I have seen in the forums posts about most of the things above. Once it's done I'll post a tutorial as well as my files

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB