Linux installations leaving behind 4 GB swap partitions
I've installed some Linux distributions over the past few weeks, and I've recently noticed that previous installations of Linux have left my hard drive cluttered with numerous 4 GB swap partitions. I've since deleted them, but is there any way to avoid this a priori in the future?
|
Please note that you don't need a separate swap partition for each linux distro. It can be shared by systems. For example, If you dual/triple boot, there's no need to create more than 1 swap filesystem:
eg. /dev/sda1 Slackware /dev/sda2 SWAP /dev/sda3 Debian /dev/sda4 Arch Each distro can utilise /dev/sda2 as swap filesystem I hope it makes sense. |
I'm not installing simultaneous OSs, I install a distribution and then when I install the next one, I choose to install over the current one.
|
Quote:
|
Quote:
|
It depends on the distribution and the options available during the installation. The manual/custom partition option will allow one to create and assign partitions as desired and use the same swap. If you select automatically create partitions the installer may not search for or use existing partitions.
|
I always do manual setup, but I'm surprised that the automatic option doesn't always detect the existing swap system.
|
Okay, thank you for the explanation, I'll do a manual installation next time ;)
Cheers |
You don't have to do a manual install. Most automatic installs will give you the option to check the partition layout before proceeding. Do it, and delete any existing swap before the install starts.
|
Well, I had to reinstall Mint and this time chose the custom partitions option. I think I did everything well, my partitions are nice and tidy as they should be ;)
Cheers |
Just make sure you have swap partitions set to mount to the "swap" option, or you'll have to do "sudo swapon sda*" every time you boot. I learned that the hard way. Nothing a simple startup bash scripting can't handle, but still an unnecessary pain.
|
Willrandship,
No need for a startup script, just add the appropriate line to your /etc/fstab. |
not an issue anymore anyways, since that particular distro is now gone, thanks to a horrible GRUB-related mistake :P but it's nice to learn new things. I'll keep that in mind.
|
All times are GMT -5. The time now is 10:53 PM. |