I would like to have the www directory to be located on hdb2. This is how I do, I bet there are better ways, but this works fine for me. In the boot-section of /rc/rc_user I do this:

mkdir /mnt/disk2
chmod 755 /mnt/disk2
ln -nfs /mnt/disk2/www /www
ln -nfs /mnt/disk2/www /mnt/bootdev/router/www
mount -t ext2 /dev/hdb2 /mnt/disk2

Maybe I should have mounted the disk earlier in the process, but this works fine.

Hope this helps

freesco/howtos/how_do_you_move_the_www_directory_to_hdb2.txt (93845 views) · Last modified: 2005/09/14 00:49 (external edit)
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki