Running out of space - resizing my existing Linux partition
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Running out of space - resizing my existing Linux partition
Hello all,
I'm running SUSE 10.1 which is installed on a small physical 10GB drive (not a partition on a bigger drive). At the installation I accepted the suggested partitioning which resulted in the following:
/dev/hdb1 which is swap it's 1GB in size
/dev/hdb2 which is system partition with a size of 3.4 GB and it has 400 MB of free space
/dev/hdb3 which is /home and has 5.2GB of total space with 4.8GB free
All I want to do is increase the size of /dev/hdb2 by a 1GB and decrease the size of /dev/hdb3 accordingly. How do I do this?
I searched this forum but I couldn't find an answer that suits my problem.
AFAIK, resizing is virtually guaranteed to destroy your files. There is a programme called partimage which can be run from systemrescuecd or knoppix (get the links if you want them from Distrowatch). The programme takes an image of a partition. I've been researching this recently because I have the system rescue cd and it's not big on explanations.
My two cents worth: I had a separate /home partition. I've moved it into the root partition and set up a separate partition for all material that grows - data files, backup files and the like. The pure system and home files only expand when you add more software. I find I need most room for downloading.
If I'm not to re-partition my drive, which software I can safely uninstall to free some space? I'm sure there's a ton of software installed that I do not need.
Well, you can uninstall the "kernel-source", witch is very big, and needed only if you want to recompile the kernel's source code(only if you are dealing with software-engineering).
AFAIK, resizing is virtually guaranteed to destroy your files.
/me coughs
I've used parted (qparted) quite a few times, and never had any
data loss; where did your statistics come from? I mean, virtually
guaranteed is a VERY strong statement. If you had said "It may
lead to date loss" because there's anecdotal evidence of that
happening, OK, but ... one just needs to be sure that one reads
(and understands) the README and the man-pages, and doesn't
try to resize ext3 with a version of parted that only knows ext2.
Your hdb2 will fit on a single DVD. Your hdb3 will fit on a single CD. If you have a DVD burner, I'd first back these two up in their entirety. Then resize or repartition to your heart's content and restore from your backups. You will need a LiveCD (Knoppix, etc.) to do this. Hopefully you have enough ram so you can boot Knoppix with the "toram" parameter so you can free up your DVD burner (if you indeed have one). If you don't have enough ram for "knoppix toram", try some smaller LiveCD like Slax that will fit into your existing ram.
Partition Magic(tm) is a wonderful product that will also resize your linux partition without trashing it. I've used it several times on my personal system at home as I've re-arranged my drives to add/remove partitions for OS testing.
Of course, now that I've bought VMware, I don't do that nearly as often as I used to. :P
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.