Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm using Fedora 14, and I have it installed on a USB. (Not live, a full install) and
I wish to remove all the swap space so the USB will last longer. Cause USB's die if they're written to a lot. So how can I do this? Any commands I should use?
The first step is temporary until the next reboot. The second step makes the change permanent. The third change make it non-reversible (you'll have to set up swap from scratch).
To edit the /etc/fstab, become root (using the sudo or su command, whichever your distribution prefers), and use your favorite text editor to edit the file '/etc/fstab'. In that file you will see a line with 'swap'. You can delete that line, or insert a '#' character at the beginning to make it a comment. Save the file.
To delete and/or re-allocate a partition, you need to use a tool (again, as root) like fdisk, parted, or gparted. If you are not familiar with them, do a lot of research first. You can easily destroy your system with incorrect use.
Last edited by macemoneta; 10-01-2011 at 04:10 PM.