LinuxQuestions.org
Review your favorite Linux distribution.
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 08-31-2013, 04:06 PM   #1
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Rep: Reputation: 3
Using fdisk or parted, is there a way to split a partition easily?


So I have a partition table that looks similar to the following:

Code:
 Name | Flags | Part Type |   ID    |[label]| Size   
 sda1 |  Boot |  Primary  |   83    |       | 38913.80
 sda2 |       |  Primary  |   82    |       | 1093.97
I'm having two issues: fdisk shows the Partition IDs at sda1 = 83 and sda2 = 82 but cfdisk shows FS Type as sda1 = "swap" and sda2 = "Linux swap" so I don't know what's up with that.

Main thing though, I want to split sda1 to have a / partition and a /home partition.

Anyone have any ideas on either of those things?
 
Old 08-31-2013, 10:07 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,513
Blog Entries: 16

Rep: Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212Reputation: 3212
You do not have to put /home on a separate partition unless you wish to.

It is generally quite safe to install the entire Linux file structure to a single partition. On my primary computer, I do have /home as a separate partition; if something goes wrong forcing me to reinstall, the data in /home will be protected. Also, in case I wish to put a different distro on that machine, data in /home will be protected. But I didn't start doing that till I had been using Linux for six years and did not have any issues--if I reinstalled or upgraded, I just backed up essential data to a different machine.

In olden times, it was common to /var on a separate partition, in case log files grew out of control, but, with modern large HDDs, that's no longer an issue, except possibly in data centers, in the enterprise, and the like.

What is the output of

Code:
fdisk -l
Going back to your original question, you can't actually "split" a partition, but you can use Parted to resize a partition to a smaller size, then use the newly crated empty space to create a new partition. Back up any crucial data first, because, even though this usually works just fine, whenever you mess with partitions, there is a change that something would go wrong.

Last edited by frankbell; 08-31-2013 at 10:13 PM.
 
Old 09-03-2013, 06:26 PM   #3
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Sorry for the delay.

I have installed linux systems to a single partition before, but this time I was wanting to try splitting it up, just to see what benefit's or downsides there may be.

fdisk -l outputs the table I posted above, only also showing the starting and ending blocks, and lists them as Linux and Linux swap respectively. My concern was why it showed up as two different ID/System types between the two different tools.

Thanks for the clarification regarding splitting. That's how I assumed it would have to work, but wasn't sure.
 
  


Reply

Tags
fdisk, parted, partition table, partitions


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
Fdisk v/s parted pinga123 Linux - Newbie 4 02-28-2011 04:35 AM
Partition management: lvm? fdisk? parted? (on RAID) emailbuilder88 Linux - General 1 04-30-2010 10:59 PM
cannot use 100% of hard disk, fdisk / parted / partition question lucastic Linux - Hardware 5 12-02-2005 08:58 PM
partition resizing using parted...bad memories of fdisk rextor Linux - General 1 07-30-2005 10:34 AM
What app can REALLY delete a partition? (not fdisk, parted, etc...) kornerr Linux - General 4 05-28-2005 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 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