Sylvain Saboua <[email protected]> writes:

> On 2026-09-17 14:18, Crystal Kolipe wrote:
>> On Thu, Sep 17, 2026 at 02:10:11PM +0200, Sylvain Saboua wrote:
>>> is there a
>>> straightforward way to serve files located on
>>> the /mnt partition ?
>> You could either disable the default chroot to /var/www or mount the
>> partition
>> you're currently mounting on /mnt within the /var/www hierarchy.
>> Mounting it on something like /var/www/mnt, for example.
>
> Indeed, that sounds like a reasonable solution for the foreseeable
> future.
> Not perfectly clean but does the work, and I can use symlinks in the
> /mnt
> folder to keep my hierarchy seamless:
> srv$ ls /mnt
> bin  bkup fam  git  mdia pvt  trt
>
> Perhaps I can even go as far as to make /mnt a symlink ?

I don't think that symlink could cross a chroot.  The idea suggested by
Crystal Kolipe is, I guess, the following:

# umount /mnt
# mkdir -p /var/www/mnt
# mount /dev/sd2d /var/www/mnt
-- 
Manuel Giraud

Reply via email to