Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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.
Here is the scenario. I have a machine with 2 hard drives. Nothing was on the second hard drive but the swap partition. The drive with the swap partition was removed.
There is not any additional free space on the drive that remains. If I understand correctly, one of these partitions will have to be resized and a new swap partition created.
My question is...is there a way to safely resize one of the partitions that are currently there?
No it's not an absolute requirement but it's nice to have if you think you'll use more physical memory than you have available. I know I was suprised, I managed to use a bit over 800MB running fluxbox on Gentoo a while ago, I figured it would be much less but I was doing a lot of stuff..
You can also create a swap file instead of a swap partition...
Type:
dd if=/dev/zero of=/mnt/swaps count=128000 bs=1024 2>/dev/null
Then:
mkswap /mnt/swaps
After that start swap file:
swapon /mnt/swaps
Will work only if you have free space, and dreate a swap file with 128Mb... You don't need to change partition type or size, just create some space deleting some files...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.