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 have a partition that is out of space. I have extra hard drive space, how can I adjust my partion without third party software?
If possible give me step by step instructions.
Can you tell us what your drives are, what you have installed and where you're thinking of putting Linux.
At this stage, you're contemplating the red pill, and it's best to have a book to read along the way. O'Reilly books on Linux/Unix are recommended if you can afford them.
you don't really need to resize.... you can mount some of your current system from that extra partition.
what partition is it? I'll call it /dev/hdax here. We are going to mount the /home directory on it here, but that can really be replaced by whatever you want.
mke2fs /dev/hdax # makes an ext2 filesystem on the drive
mount /dev/hdax /mnt # mounts hdax to /mnt
cd /home
##instead of "mv" here, you may want to run it all through with "cp"... just to make sure it all transfers smoothly (I don't wanna screw you up)
mv -R * /mnt ## moves everything from /home to /mnt... your other partition
now you are going to have to edit your /etc/fstab file. put a line like this:
/dev/hdax /home ext2 defaults 1 2
now, when you reboot, /dev/hdax will be mounted on /home, your original partition will have space, and your system will be happy
good luck
-Adam
EDIT:
if you do want to resize the partition, there are two programs from gnu for it..."fips" and "parted" check 'em out
This is a loaded queston. There are two ways you can go here.
The first is actually resizing the partition itself. This can be done using parted providing there is free space after the end of the partiion. I personally would not recommend this approach though.
What I would recommend that you do is create a new partition out of the free space and move a chunk of your full partition over. For instance If your /var partition is getting full make a new partition and mount the /var/log folder on it . What you move to the new partition would depend on what fits the space created.
Also depending on your distro you might have other options. I understand Mandrake users are fond of diskDrake for instance. To reinforce what Bert said, if you can provide what Distro you are using and your current partition scheme maybe we could provide better answers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.