So the OS and Owncloud backend is installed on the PI's 32 GB sd card. The owncloud data folder is on a separate usb HDD. I know it's not a good idea to put a swap file onto an sd card, so I want to put one on the same partition as the owncloud/data on the spinning hard disk. I was going to use the fallocate utility to set this up, but this returned an error because the HDD is a fat32 file system and fallocate does not support fat32. So another option, which I'm almost certain will create the swap file, is to run
Code: Select all
dd if=dev/zero of=/mnt/sda1/swap.file bs=1M count=3072I am hesitant to execute this operation because my instance of Owncloud is working "good enough" right now as is. There are times when navigating the web interface that it gets a little laggy though, and I thought maybe some swap could help remedy this.
Does this sound like an okay idea? Is putting the swap file on the same partition as the owncloud/data going to mess anything up? I know that dd can take awhile to do its job. Does anyone have any idea how long it will take to make my 3GB swap file?
Thanks
