LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-17-2013, 02:58 PM   #1
Alonso_
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Rep: Reputation: Disabled
Newb needs help with partitions


I'm installing Ubuntu 13.10 on an external 1TB hard drive, and hoping to dual boot it alongside my main drive which is an SSD running windows 8. I'm about to install but a bit confused about all these partitions such as /boot, /home etc.

The drive will be half NTFS for shared backup files with windows, and the other half linux stuff. I know to make a primary ext4 partition with a "/" mount point, and a swap space for hibernate, but beyond that I'm not sure. Any tips would be appreciated.
 
Old 12-17-2013, 03:24 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Other partitions than / are not needed to run a Linux system, not even swap, though it is recommended to have one (and necessary for hibernation).
However, there are some benefits and/or even necessities for other partitions. For example, if you want to encrypt the /-partition you will need a separate /boot. If you want to keep your system and your data separated a /home-partition comes in handy. Keep in mind that with Linux none of these partitions, not even the /-partition, have to be primary, all these can be logical partitions.
 
Old 12-17-2013, 03:40 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
to continue on with tobiSGD's great post, here is what i do with all of my linux workstations/laptops:

full disk encryption for all laptops, partition encryption for desktops.

/ thats the root system
/swap think page file system in MS world, depending on RAM i tend to keep this no larger then 2G, that is unless the system has less then 3G physical RAM, in that case i will either double or 1.5x RAM for /swap
/home always encrypted

i dont bother with other partitions, but that is just me.
 
Old 12-17-2013, 03:49 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
The big reason to have separate partitions is that most Linux distros work better with clean installs. This means put /home on a separate data partition that you don't have to destroy when you upgrade. There's no reason for having /boot on a separate partition with a modern BIOS. So my recommendation for your case would be to have a couple of 20 GB OS partitions for Linux distros (current and test, or current, backup and test), a 10 GB swap partition, and the rest in two partitions for your Linux and Windows data.
 
Old 12-17-2013, 03:53 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by smallpond View Post
There's no reason for having /boot on a separate partition with a modern BIOS.
As mentioned above, there are legitimate reasons for having a separate /boot, for example encrypted /-partitions (no BIOS/bootloader, regardless how modern, can boot from that) or using LVM for your partitions with a bootloader that does not work with LVM.
 
Old 12-17-2013, 05:32 PM   #6
nd7rmn8
Member
 
Registered: Jan 2013
Distribution: Arch
Posts: 50

Rep: Reputation: 13
Keep in mind that if the external hard drive has no vents in it, it does have the potential to overheat with extended constant use. You should be fine though. Just remember, if after a couple hours or days of constant use, it locks up, that may be the cause.

/home - is the default location for documents, user data, movies, music, user config settings. Nice to have as a seperate partition in case you decide to reinstall the OS, if you don't format that partition on reinstall, and remount it as /home, it will boot back up with all those files right where you left them.

/ - contains everything, unless you create seperate partitions for the folders within it

/swap - acts as RAM for when your machine runs out of RAM. Old standby is to double your total RAM to figure out how big to make it... Alternatively, you can create a swap file in its place, with a possible miniscule performance hit.

/boot - holds stuff required for booting up. You need to have this seperate if you want to encrypt your root partition ( / ). Otherwise, I wouldnt worry about making it seperate. You do not need to have this seperate if all you want to do is encrypt your home partition.

For typical desktop use, in my opinion, there is no real purpose in doing anything else as seperate partitions, unless you have special plans.
 
1 members found this post helpful.
Old 12-17-2013, 05:52 PM   #7
Alonso_
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for the replies guys, incredibly helpful. Great community here

Quote:
Originally Posted by nd7rmn8 View Post
Keep in mind that if the external hard drive has no vents in it, it does have the potential to overheat with extended constant use. You should be fine though. Just remember, if after a couple hours or days of constant use, it locks up, that may be the cause.
Hmm my main SSD is 180 gb and has some space to spare, would it be recommended I put root, /boot, and /swap on there instead? Or would it not really matter?

Last edited by Alonso_; 12-17-2013 at 06:15 PM.
 
Old 12-17-2013, 06:15 PM   #8
nd7rmn8
Member
 
Registered: Jan 2013
Distribution: Arch
Posts: 50

Rep: Reputation: 13
Its up to you, If all you are doing is trying out ubuntu for the first time and just want to experiment a little, install it to a flash drive or an external hard drive. If you like it, then install it to the internal hard drive.

If you install it on the same hard drive as Windows, likely you will have to resize your windows partition, which I believe the Ubuntu installer is capable of (maybe). If not, there are other Linux livecd's that are capable of such things. Personally, I would set aside atleast 20GB for linux, you can run far less, but I have a way of always filling it up real quick.

HOWEVER; resizing partitions can cause data loss. It doesn't happen often, but it is possible. So back up everything you could possibly want off of your windows partition, to include all your CD-keys and such, just in case you lose everything and have to reinstall windows.
 
  


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
rebuild partitions/label from existing partitions - used parted on wrong drive zedmelon Linux - Software 4 07-26-2013 03:42 PM
Newbie Newb Newb Here sudoBash LinuxQuestions.org Member Intro 1 06-26-2013 09:51 PM
Dual boot newb question re: swap partitions Poser Slackware - Installation 3 06-08-2011 10:30 PM
Suse Newb: Not Linux Newb rodericj SUSE / openSUSE 9 03-25-2005 10:03 AM
The first step to ascending newb status, acknowledging you're a newb :P LordRaven LinuxQuestions.org Member Intro 1 08-24-2004 05:05 PM

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

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