You are not logged in.
Currently sda1 is mounted to root. Besides the swap my only other partition is sda2, and is mounted to /home.
The primary use for this machine is a server. It is the samba file server for the network, and is hosting a few websites with apache. As such /srv has been growing. The sda2 partition is three times bigger than sda1. I want both /srv and /home to be on the larger partition to have plenty of room to grow. Is there any way to put both /home and /srv on sda2? How would the fstab look for that?
Matthew
Brampton ON
Offline
First you have to move 'srv' from its present position
mv /srv /home; mkdir /srv; chmod a+rwx /srv
Then I would suggest that you use /etc/rc.local to 'bind' the /home/srv directory
mount --bind /home/srv /srv
Offline
Or just symlink it
mv /srv /home/
ln -s /home/srv /srv
You could also create a disk image in home and mount that as srv, although this wouldn't be very efficient as far as performance goes
dd if=/dev/zero of=/home/srv.img bs=102400 count=<size of srv you want in mb>
mkfs -t <filesystem type> /home/srv.img
mount -o loop /home/srv.img /mnt/new-srv
mkdir /mnt/new-srv/
mv /srv/* /mnt/new-srv/
umount /mnt/new-srv
umount /srv
mount /home/srv.img /srv
It goes a little something like that
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline