LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Split partition? (https://www.linuxquestions.org/questions/linux-newbie-8/split-partition-762109/)

Zeno McDohl 10-15-2009 10:10 AM

Split partition?
 
I need a new partition for /var (which is part of /) and I have a lot of free space on the /home partition.

How can I take space from the /home partition to make a new partition?

Using Slackware, no GUI.

I want to keep all data intact, of course.

pixellany 10-15-2009 10:23 AM

You can use something like GPArted to re-size partitions. Be sure to backup your data first.

You cannot split partitions---you can only create, delete, and re-size.

Zeno McDohl 10-15-2009 10:38 AM

So I'd re-size /home to be smaller, then create a new partition from that extra space?

pixellany 10-15-2009 10:47 AM

Quote:

Originally Posted by Zeno McDohl (Post 3720407)
So I'd re-size /home to be smaller, then create a new partition from that extra space?

That is certainly one common option...

For more comprehensive advice**, open a terminal and run "fdisk -l" (run as root, and its ell not one) and post the results here.


**___ "comprehensive advice" sometimes means getting more of an answer than you wanted...;)

Zeno McDohl 10-15-2009 10:48 AM

I certainly can't turn that down. ;)

Code:

Disk /dev/hda: 80.0 GB, 80026361856 bytes
15 heads, 63 sectors/track, 165398 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1              1        2117    1000251  83  Linux
/dev/hda2            2118      165398    77150272+  5  Extended
/dev/hda5            2118        4234    1000251  82  Linux swap
/dev/hda6            4235      21166    8000338+  83  Linux
/dev/hda7          21167      25400    2000533+  83  Linux
/dev/hda8          25401      165398    66149023+  83  Linux

Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/hda1              968880    770992    147876  84% /
/dev/hda6              7749536  3812836  3536684  52% /usr
/dev/hda7              1937828  1176632    661172  65% /opt
/dev/hda8            64076240  13851840  46916952  23% /home


pixellany 10-15-2009 11:24 AM

Best solution:
Get a larger hard drive and start over with a clean install. (You are getting short on space in all areas.) If you decide to do this, we can make some suggestions for a better layout.

2nd choice:
Add another drive and use it for /home. Then expand your exisitng partitions for the other directories.

Last choice:
Get rid of the extra partitions for /usr and /opt. Expand / and copy everything from the old /usr and /opt into the new. In this way, it is easier for the system to find space for everything in those directories.

And of course backup all data before trying any of this.


All times are GMT -5. The time now is 07:39 PM.