I want to use a swap file instead of partition.
I don't have any experience in using partition manager. I don't want to lose my current data on disk.
I tried Wubi before and got a bad experience.
I want to use a swap file instead of partition.
I don't have any experience in using partition manager. I don't want to lose my current data on disk.
I tried Wubi before and got a bad experience.
If you don't want to use swap partition, just don't create it during installation. Choose manual partitioning in Ubuntu installer, create partition for / file system with ext4 and that's it. Ubuntu will run without swap partition, and you can add swap file then.
You can create a swap file of two gigabytes by doing the following commands:
$ sudo fallocate -l 2048M /myswap
$ sudo chmod 600 /myswap
$ sudo mkswap /myswap
$ sudo swapon /myswap
Add swap entry to /etc/fstab file:
/myswap none swap defaults 0 0
Now you have swap as file /myswap instead of traditional swap partition.