Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Running chroot off mounted image?

    OK, if I make a mounted image...
    dd if=/dev/zero of=apacheimage bs=1M count=100
    mke2fs -m 0 -F apacheimage
    mount -t ext2 -o loop apacheimage /chroot/apache
    ...and copied chrooted apache to it, and ran chroot on it, would this be anymore/less secure then just running it chrooted off of the root fs? Also, running off the loop, would I take a performance hit? I don't have much ram available. I got thinking about this last night and realized that this would be make backups and restoring a snap (copy the image and then mount the copy).

  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Lat: 39:03:51N Lon: 77:14:37W
    performance would be a major killer here, while I can't think of a serious security issue, the more services running, the more likely you will have an issue. It might be worth a shot, but your really better off storing as much as possible localy.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  3. #3
    hmm, well, I guess I'll try it out and see if the loop takes too many resources then.

  4. $spacer_open
  5. #4
    hmmm, well, I did a few quick tests, the loop fs wrote faster, read faster, and didn't take up anymore resources than the normal fs. I'll try to run a few services from a loop, but I have no clue how I'll benchmark apache, bind, etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts