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.
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201
Rep:
how to change the disk size on the fly?
Hi All. A couple of years back when I used to use Windows, I used to make heavy use of PartitionMagic to resize the partitions on the fly, obviously not the C: but others. When I installed Linux[fedora9 to be precise]I left around 8/10 GB of disk in windows partition [NTFS] which is accessible in linux. Now my basic disk in which the "/" directory exists is running short of space ( now i've around 2 out of 10GB left). So I want to know of something similar to PartitionMagic or maybe some command which I'm not aware of to do the same, change the root partition on the fly. Please help me. I'm running Fedora9 2.6.26.3-29.fc9.i686 machine with 512MB of memory. Thank you in appreciation.
I'm not sure exactly how you intend using the space in the extra partition but be aware that there is an alternative way of solving the 'running out of space on /' problem. You don't have to make the root partition itself larger to gain space.
You might prefer the partition resizing approach, but you might want to consider the alternative.
Steps
back stuff up!
using a live cd (ok, this isn't strictly necessary for stuff like /home, but makes it easier to describe the steps)
locate a big directory inside the full partition that could solve the problem by being relocated (stuff like /var, /tmp, and /usr are often good candidates, but it could be anything; partic /home or /home/big_user, if that hasn't happened already)
prepare a partition that is big enough to take the victim partition and then some
copy data
adjust fstab to mount new partition and remove old directory from directory structure
And then proceed with a / that is effectively bigger because it has had a big lump taken out of it and moved onto the new partition.
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201
Original Poster
Rep:
Quote:
Originally Posted by salasi
I'm not sure exactly how you intend using the space in the extra partition but be aware that there is an alternative way of solving the 'running out of space on /' problem. You don't have to make the root partition itself larger to gain space.
You might prefer the partition resizing approach, but you might want to consider the alternative.
Steps
back stuff up!
using a live cd (ok, this isn't strictly necessary for stuff like /home, but makes it easier to describe the steps)
locate a big directory inside the full partition that could solve the problem by being relocated (stuff like /var, /tmp, and /usr are often good candidates, but it could be anything; partic /home or /home/big_user, if that hasn't happened already)
prepare a partition that is big enough to take the victim partition and then some
copy data
adjust fstab to mount new partition and remove old directory from directory structure
And then proceed with a / that is effectively bigger because it has had a big lump taken out of it and moved onto the new partition.
sounds pretty cool. will try it out. thank you very much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.