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!
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I accidentally made the swap partition 1024MB when it only needed to be 512MB (as I have 256MB RAM).
How do I start DiskDruid so I can reduce the swap partition and added it elsewhere? (I can't find it on the hard disk nor the install disk.)
Will this damage the present file system?
In general, can one alter partition sizes without damaging the file system (assuming the amount of files in any partition reduced in size are smaller than the new size)?
there's no reason to want to change the size of the swap. that rule about double the RAM is largely irrelevant and has been for a decade really... if you really do wish to reduce the size, just remove it from active use using the swapoff command, delete it and create a smaller on in it's place using fdisk or cfdisk. then use mkswap to format it as swap. you can then use resize2fs to expand an ext3 filesystem into the free space you've left behind. but do you really need than 512mb back? do you really have any idea how much swap you're going to use?
The swap = 2 times ram is not a good rule. In actual fact you are likely to need more swap since you only have 256meg ram. I always ran a gig of swap even with 256meg as I needed it at the time... The only way to know how much swap you need is to use the PC and it depends on what you run. I was using over a gig of swap back when I was compiling CS maps...
You can change partitions, but there is obviously some risk. You would need an app like qtparted (edit typo) or the like...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.