Author Topic: Chrooted Debian The Other Easier? Way  (Read 9819 times)

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Chrooted Debian The Other Easier? Way
« Reply #15 on: December 22, 2005, 04:57:50 am »
Sorry, I don't know what the problem is.

can you try

Code: [Select]
mount -o remount,suid,dev /mnt/card
And then startdebian.sh? (I suggest you first reboot you zaurus to be sure that there are no remaining mount point from a previous execution)

remounting like this had fixed a problem I had when I was creating a chroot jail for another program.

I have no clue as why you get the mnt/card/debroot/mnt/card/debroot/proc etc...

Has anybody else tried this method with a C1000 or 3100?, maybe the kernel doesn't allow this? maybe the kernel causes problem?

(If someone wants to donate a new Zaurus: you are welcome )
SLC-860 cacko / senao wifi

apink

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Chrooted Debian The Other Easier? Way
« Reply #16 on: December 23, 2005, 01:18:04 am »
-pgas,  Thank you for your help so far.  It is appreciated.  If you have some time, could you post your output from mount after startdebian.sh so that I know what to aim for?  No worries if you can't get to it.  I am guessing that by doing a "mount -rbind /mnt/card . . ." as a last command, all of the /mnt/card/debroot/yadayada points already mounted get remounted, thus the mnt/card/debroot/mnt/card/debroot/yadayada.  

Also, my output after reboot of mount before running startdebian.sh includes a line of

Quote
none on /dev type tmpfs (rw)

Could it be that devfs was replaced with tmpfs for the C1000?
--current use--
linux chroot on top of lineage  on cell phone

--past handhelds--
pandora
ben nanonote
zaurus sl-c1000

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Chrooted Debian The Other Easier? Way
« Reply #17 on: December 23, 2005, 05:59:54 am »
after a second look at your list of mount points:

try to mount

 /dev/pts on /mnt/card/debroot/dev/devpts
« Last Edit: December 23, 2005, 06:00:36 am by pgas »
SLC-860 cacko / senao wifi

apink

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Chrooted Debian The Other Easier? Way
« Reply #18 on: December 23, 2005, 08:03:58 pm »
Quote
after a second look at your list of mount points:

try to mount

 /dev/pts on /mnt/card/debroot/dev/devpts
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108197\"][{POST_SNAPBACK}][/a][/div]

Yes,

Quote
mount --bind /dev/pts ${DEBROOT}/dev/pts

worked.

I now have Crd aterm creating a new terminal with debian running.  Thank you.  

I am still a little unclear about what to do about the

Quote
mount --rbind /mnt/card ${DEBROOT}/mnt/card

line at the end of your script.  Right now I have changed --rbind to just --bind and that seems to work.
--current use--
linux chroot on top of lineage  on cell phone

--past handhelds--
pandora
ben nanonote
zaurus sl-c1000

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Chrooted Debian The Other Easier? Way
« Reply #19 on: December 23, 2005, 11:53:11 pm »
Quote
line at the end of your script. Right now I have changed --rbind to just --bind and that seems to work.

I read again the man page of mount, I must have read it too quickly the first time:

Quote
This call attaches only (part of) a  single  filesystem,  not  possible
       submounts.  The entire file hierarchy including submounts is attached a
       second place using
              mount --rbind olddir newdir

So rbind does the what you see, and bind should be used and rbind does not seems
 to work as expected on the 860.

Thanks for beeing patient , I'll try to update the scripts
« Last Edit: December 23, 2005, 11:54:47 pm by pgas »
SLC-860 cacko / senao wifi

smuelas

  • Full Member
  • ***
  • Posts: 110
    • View Profile
Chrooted Debian The Other Easier? Way
« Reply #20 on: December 27, 2005, 06:15:44 am »
Quote
Quote
line at the end of your script. Right now I have changed --rbind to just --bind and that seems to work.

I read again the man page of mount, I must have read it too quickly the first time:

Quote
This call attaches only (part of) a  single  filesystem,  not  possible
       submounts.  The entire file hierarchy including submounts is attached a
       second place using
              mount --rbind olddir newdir

So rbind does the what you see, and bind should be used and rbind does not seems
 to work as expected on the 860.

Thanks for beeing patient , I'll try to update the scripts
[div align=\"right\"][a href=\"index.php?act=findpost&pid=108312\"][{POST_SNAPBACK}][/a][/div]

After a few days of testing different possibilities for mounting/unmounting Debian on pdaxrom, and for the specific problems created on the SL-6000, it is now clear the picture: Everything runs perfectly well if using an SD card. The problems arise with the microdrive that I have on the CF slot. And those are, as you suspected, the mounting/unmounting of /mnt/cf when suspending and resuming.
This is the "only" problem that I've found on the 6000. In a normal session, without using Suspend, everything works fine.
Now, what I do is to unmount /mnt/cf before suspending. For "Suspend" I don't need to click the button. I just use the ON/OFF key on the 6000, as in the original ROM. Another way is to include the unmounting of /mnt/cf on the Suspend icon, and this simplifies the process.
Nevertheless, there is still a "remaining" problem, referring to your scripts for Debian. And it is the fact that usually "stopdebian.sh" is not able to finish the whole process. More specifically, the "tmp" and "dev" mounted, produce a message of "/mnt/cf busy" and the final unmounting of /mnt/cf is impossible, what makes the solution above mentioned, useless.
Would it be any way of forcing unmounting of those two and include them in "stopdebian.sh"??

smuelas
Zaurus SL-6000  --  Microdrive Hitachi 6Gb placed permanently on CF slot.