LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 10-27-2004, 11:04 PM   #1
chestnut
Member
 
Registered: Jan 2004
Location: Sydney, Australia
Distribution: FC3, Ubuntu (Hoary)
Posts: 86

Rep: Reputation: 15
Splitting up install onto new partitions


Hello

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?

Thank you
 
Old 10-28-2004, 12:45 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 10-28-2004, 02:08 AM   #3
chestnut
Member
 
Registered: Jan 2004
Location: Sydney, Australia
Distribution: FC3, Ubuntu (Hoary)
Posts: 86

Original Poster
Rep: Reputation: 15
Thank you for the advice. I'll give it a go later.

Regards,
 
Old 10-28-2004, 05:28 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing partitions to install xp linuxmandrake Fedora 8 08-12-2005 06:02 PM
How do I resize my partitions after install? njbrain Linux - Hardware 5 01-19-2004 07:23 PM
New Install - but question about partitions geodd Slackware - Installation 4 01-05-2004 12:02 AM
Resizing partitions after install Nerd2 Linux - Hardware 4 05-07-2003 12:59 AM
Re-Install RH 7.1 w/o destroying old partitions Neelix Linux - Software 2 11-19-2001 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration