LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-17-2012, 07:44 PM   #1
9sp7ky3
Member
 
Registered: Mar 2011
Posts: 105

Rep: Reputation: 0
About to install Ubuntu 12.04 need help partitioning /home


I was installing 11.10 a few months ago and a few LQ members were urging me to partition my hard drive so separate /home and (I think it was the OS itself?) I have a 500 GB hard drive and ubuntu takes up all of it (not dual booting). Being I'm generally unsure of how EXACTLY to partition a hard drive I would really appreciate a step-by-step guide as to how I would go about partitioning my hard drive. I know when I start installing Ubuntu I select "something else" but from that point I won't exactly know what to do but the members did say it would be (in the long run) the best thing for me...so help? maybe a little?
 
Old 05-17-2012, 08:04 PM   #2
Andrus
LQ Newbie
 
Registered: Jul 2005
Posts: 19

Rep: Reputation: 0
There is a good walk-through here - http://www.psychocats.net/ubuntu/installseparatehome
just take your time and read, its a little dated but all the options still have the name names and i think the gui is still very simillar.
 
Old 05-18-2012, 02:07 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Follow the guide that Andrus linked to. As for sizes, since you have a 500GB drive I would create a 20GB root (primary) partition. Then create a 1GB swap partition (also primary, could be logical if you want). Then use the rest of the drive for your home (logical) partition. This way you could easily resize your home home partition to create additional partitions in the future should you wish to do so.
Make the root and home partitions ext4 file system. Using ext4 is now the default on most Linux distros.
A 20GB root partition will give you plenty of room to install all of the apps you could possibly want without running short of space.
The 1 GB swap will also be more than sufficient assuming you have adequate memory (i.e., at least 1GB memory).

When you have separate root and home partitions, you can quickly and easily reinstall Ubuntu to the root partition and your data will be preserved on the separate home partition. Just choose manual partitioning. Then select your root partition to install Ubuntu to. Then select your home partition as mount point home. Be sure to choose do not format this partition when reinstalling Ubuntu and the mount point /home for the home partition whenever you reinstall Ubuntu. Reinstalling Ubuntu this way all of your data will be safe on /home after you reinstall Ubuntu.

Since you do not currently have a separate home partition, you will need to backup any data you do not want to loose before installing 12.04 with a separate home partition.

Last edited by tommcd; 05-18-2012 at 02:13 AM.
 
Old 05-18-2012, 07:05 PM   #4
9sp7ky3
Member
 
Registered: Mar 2011
Posts: 105

Original Poster
Rep: Reputation: 0
Once I get to the "installation wizard I have one main 'device' (/dev/sda) and what appears to be two 'sub-devices' (/dev/sda1 type: ext4 and /dev/sda5 type: swap) dev/sda1 takes up 496158 MB and /dve/sda5 takes up 3945 MB.

It doesn't give me an option to delete /dev/sda but it does give me the option for the 'sub-devices.' But when I delete them and have nothing but free space I hit "New Partition Table..." and I get a window that says "You've selected an entire device to partition. If you proceed with creating a new partition table on the device, then all current partitions will be removed."

I hit continue and nothing seems to happen the guide doesn't say to hit anything else and I don't think clicking "Install Now" is the right thing to do...again this is the first time I'm doing anything like this and I'm a little nervous...

I'm sure it's simple for you guys but maybe because the guide is dated it's confusing me a little...

I hit "revert" and it seemed to go back to normal so I'll just wait on your responses.
 
Old 05-18-2012, 08:32 PM   #5
Andrus
LQ Newbie
 
Registered: Jul 2005
Posts: 19

Rep: Reputation: 0
If you have important things on this drive you will want to back them up before installing.
If you are just looking to upgrade to 12.04 without any fuss skip to the end of my post

Here are some screenshots of the processs with ubuntu 12.04
http://imgur.com/a/rw1r2

the device /dev/sda is your hard drive - think sata drive A (sda)
and sda1 is one partition, its mount point is / - that is everything will go there,
and sda5 is swap space - the system uses in certain situations.
so what you want to do, is make a root partition that is 20gb like tommcd suggested (my root partition is 5gb in the pictures)

so make sda1 20GB big
create another partition that has the rest of the disk space, it might end up being named sda2. set the mount point on sda2 to /home
leave the swap partition (sda5) as is or shrink it to 1GB like tommcd suggests.

double check your options making sure the mount point is / for the smaller partition and /home for the big one


No fuss upgrading
Look at these methods, it wont give you the safety in having a separate home partition though
http://askubuntu.com/questions/11047...11-10-to-12-04
 
Old 05-18-2012, 08:52 PM   #6
9sp7ky3
Member
 
Registered: Mar 2011
Posts: 105

Original Poster
Rep: Reputation: 0
Wow Andrus thank you so much for that. That was exactly what I needed. You sir are a gentleman and a scholar. As well as the help given by everyone else, it was very much appreciated. If anything else comes up I'll be sure to post again.
 
Old 05-30-2012, 01:00 AM   #7
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Rep: Reputation: 18
Hi-

I use remastersys, virtualbox, gparted, external drive, and ubuntu backup for the home partition. It was my way of deciding I didnt need to repartition my computer to address the default install.

Hope you find that it maybe something to consider.

later,
jim
 
Old 07-09-2012, 08:31 AM   #8
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 37

Rep: Reputation: 15
Question

Quote:
Originally Posted by Andrus View Post
If you have important things on this drive you will want to back them up before installing.
If you are just looking to upgrade to 12.04 without any fuss skip to the end of my post

Here are some screenshots of the processs with ubuntu 12.04
http://imgur.com/a/rw1r2

the device /dev/sda is your hard drive - think sata drive A (sda)
and sda1 is one partition, its mount point is / - that is everything will go there,
and sda5 is swap space - the system uses in certain situations.
so what you want to do, is make a root partition that is 20gb like tommcd suggested (my root partition is 5gb in the pictures)

so make sda1 20GB big
create another partition that has the rest of the disk space, it might end up being named sda2. set the mount point on sda2 to /home
leave the swap partition (sda5) as is or shrink it to 1GB like tommcd suggests.

double check your options making sure the mount point is / for the smaller partition and /home for the big one


No fuss upgrading
Look at these methods, it wont give you the safety in having a separate home partition though
http://askubuntu.com/questions/11047...11-10-to-12-04
After installing 12.04; and copying my data back to /home - Will I have to do anything else to have my new 12.04 install use the separate partition as the home partition, as if my home directory was/were on the same all-on-one partition?

Thanks,
CH
 
Old 07-09-2012, 11:45 PM   #9
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by cement_head View Post
After installing 12.04; and copying my data back to /home - Will I have to do anything else to have my new 12.04 install use the separate partition as the home partition, as if my home directory was/were on the same all-on-one partition?
No, with your home directory on a separate partition from the root partition it will function just the same as if your home directory and your root directory were on the same partition.
Your home directory stores all of your hidden (i.e., those that start with a period) configuration files for your user. The home directory also stores all of your personal data of course. From the point of the end user the home directory will function just the same whether it is on a separate partition or whether it is on the same partition as all of the system files in the root directory.

Last edited by tommcd; 07-09-2012 at 11:47 PM.
 
Old 07-10-2012, 09:23 AM   #10
cement_head
Member
 
Registered: Mar 2006
Location: Oxford, OH, USA
Distribution: Ubuntu 10.04.1 LTS (Lucid Lynx)
Posts: 37

Rep: Reputation: 15
Quote:
Originally Posted by tommcd View Post
No, with your home directory on a separate partition from the root partition it will function just the same as if your home directory and your root directory were on the same partition.
Your home directory stores all of your hidden (i.e., those that start with a period) configuration files for your user. The home directory also stores all of your personal data of course. From the point of the end user the home directory will function just the same whether it is on a separate partition or whether it is on the same partition as all of the system files in the root directory.
Hi,

Thanks - yup, did it last night and it worked really, really well with Ubuntu 12.04 LTS AMD64. Should have done this a LONG time ago.

Cheers,
CH
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partitioning Problems in Ubuntu NR 9.10 Install from USB to HP Mini 110 Curly Q. Link Linux - Newbie 4 02-01-2010 12:41 AM
LXer: Use Wubi to install Ubuntu without partitioning LXer Syndicated Linux News 1 04-10-2008 03:07 PM
Install Ubuntu, keep Debian /home akwusmc Ubuntu 2 07-21-2007 05:09 PM
Partitioning My Hard Drive: /swap and /home drpixel404 Linux - General 2 07-16-2007 08:01 AM
/home seperate partition from previous install, make it new /home in new install mipia Slackware 5 06-21-2004 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:31 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
Open Source Consulting | Domain Registration