Let say we have a disk with 40GB space, and allocated 10GB for the system, and have another 30GB free space. We want to configure a samba services and want to allocate the free space for the samba share.
1st we fdisk-ing the free space 1st, and then label the slice. For now we will using CLI. So to add new slices to the system, we issue this command :
#bsdlabel -w /dev/ad0s2
#newfs -U /dev/ad0s2
#mount /dev/ad0s2 /share1
If done, Add the entry in your /etc/fstab
If you encounter any error said the device is busy or no swap partition, issue this command :
#sysctl kern.geom.debugflags=16
reboot and everything is done! :)
1st we fdisk-ing the free space 1st, and then label the slice. For now we will using CLI. So to add new slices to the system, we issue this command :
#bsdlabel -w /dev/ad0s2
#newfs -U /dev/ad0s2
#mount /dev/ad0s2 /share1
If done, Add the entry in your /etc/fstab
If you encounter any error said the device is busy or no swap partition, issue this command :
#sysctl kern.geom.debugflags=16
reboot and everything is done! :)
Comments