LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-15-2009, 11:10 AM   #1
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 316

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

Last edited by Zeno McDohl; 10-15-2009 at 11:21 AM.
 
Old 10-15-2009, 11:23 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
Old 10-15-2009, 11:38 AM   #3
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 316

Original Poster
Rep: Reputation: 30
So I'd re-size /home to be smaller, then create a new partition from that extra space?
 
Old 10-15-2009, 11:47 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by Zeno McDohl View Post
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...
 
Old 10-15-2009, 11:48 AM   #5
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 316

Original Poster
Rep: Reputation: 30
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
 
Old 10-15-2009, 12:24 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I *gulp* split a partition justanothersteve Linux - General 4 02-17-2006 02:50 PM
How to Split root partition Latext Linux - Software 1 01-30-2005 03:01 PM
Change/split partition after installation tsoona Linux - Newbie 3 09-07-2004 06:34 AM
Want to split a partition without data loss. Ebel Linux - Hardware 1 08-10-2004 12:56 AM
How to split ext3 partition sadeer Linux - Newbie 1 07-17-2002 11:38 PM


All times are GMT -5. The time now is 10:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration