Hey Neal, I tried setting up a chroot jail (jail for short) this week. I run Ubuntu gutsy (7.10), and had a similar problem. The only way to get the file system mounted was to use loop instead of bind (or use both). Also: * I didn't have much luck with the third command up from the bottom, chmod og-w -R /path to sage jail . Did this twice, and locked myself out of everything on the system, not just the jail. Not sure why (very careful typing the second time:) Third time around, I didn't use it. Then, the rest below * couldn't log into the jail as anything other than root * when in the jail, switched user from root * dchroot command depreciated, used schroot. * couldn't run SAGE as anything other than root. * couldn't get notebook to start in jail.
I was keeping a log of my particular install, but I never did get it working! If you have better luck let me know! I've got a project (over) due and the prof. wants to run the code on my machine; right now, it's wide open :{ Crissy Ruffo On Mar 22, 10:31 am, Neal Holtz <[EMAIL PROTECTED]> wrote: > Well, talking to myself here, I was able to mount it using this > incantation: > > [EMAIL PROTECTED]:/files# mount -t ext3 -o loop sage_chroot.image sage_chroot > [EMAIL PROTECTED]:/files/sage_chroot# df -T > Filesystem Type 1K-blocks Used Available Use% Mounted on > ... > /dev/sda3 reiserfs 99375008 63940492 35434516 65% /files > ... > /files/sage_chroot.image > ext3 9842848 153192 9189656 2% /files/ > sage_chroot > > But that is quite different than the instructions, so I'm a little > curious... > but I think I'll just proceed ... > > On Mar 22, 11:18 am, Neal Holtz <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I'm trying to build a chroot jail (on Ubunti feisty) using the > > instructions in: http://www.sagemath.org/doc/html/inst/node10.html > > > I've created the image file and made a file system to here: > > > mke2fs -j sage_chroot.image > > > and no noticable errors > > > But I can't mount it. I've tried the following in /etc/fstab > > > /files/sage_chroot.image /sage_chroot ext3 bind 0 0 > > > and several permuations, and I always get > > > "mount: Not a directory" > > > Due to space limitations, I'm not creating the image file on the > > root partition, but on a mounted partition (which happens to be > > a reiser fs). Here is the particulars of the most recent trial: > > > [EMAIL PROTECTED]:/files# df -T > > Filesystem Type 1K-blocks Used Available Use% Mounted on > > ... > > /dev/sda3 reiserfs 99375008 63940492 35434516 65% /files > > ... > > [EMAIL PROTECTED]:/files# ls -l > > total 10009793 > > ... > > drwxr-xr-x 2 root root 48 2008-03-22 10:40 sage_chroot > > -rw-r--r-- 1 root root 10240000000 2008-03-22 10:35 > > sage_chroot.image > > ... > > [EMAIL PROTECTED]:/files# mount -t ext3 --bind sage_chroot.image sage_chroot > > mount: Not a directory > > > Grateful for any help. > > Thanks > > neal --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---