Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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 linux installed on one partition (/ on hda2, swap hda3)., due to my lack of foresight when I first installed
My hard drive now has 40gb available. My intention is to split this up, maybe have seperate partitions for /home & /var
To segregate partitons from the install on hda2, would it just be a case of , say, creating a new partition for /home, copying the data for home over to this new partition, and then add an entry to fstab to point to it?
In creating the new partitions, they would of course have to be designated as mount points: i.e., a new partition for /home would have to be entered in fstab as /dev/hda3 /home with the rest of the line entries.
To protect yourself, make a backup of the directories you propose to move to a new partition, and move ONLY those folders to the new partitions; the rest remain in /.
Or, copy the folders to their new partitions, but keep the originals in place and rename them (i.e. /home becomes /home.orig, or some such name).
Then try rebooting. If fstab is in order, the system should have no problem finding all its parts. If ought goes wrong; repair is as simple as booting from install cd, rename the folders to their original names, and perhaps remove the new entries from fstab.
Then go back to square one and start over.
Depending on the partition changes you make, especially if you move boot, you should also edit your bootloader configuration file to verigy it's correct. When I first tried multi-partition, I made a simple error that resulted in an incomplete boot. Fortunately, enough of the system was still in / that I was able to do some simple editing (bootloader config and fstab), to get it working.
Last edited by bigrigdriver; 10-28-2004 at 12:51 AM.
Keep in mind that the /var partition will grow as you install more software, so don't reduce the size of your root partition to much if that is where it is located.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.