LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-26-2016, 04:51 PM   #1
happydog500
Member
 
Registered: Dec 2006
Location: Washington St.
Distribution: Linux Mint 18.2, Windows 7, 10, Ubuntu-MATE, Xubuntu, devuan, and about a dozen others-Hopper
Posts: 304

Rep: Reputation: 5
Does it Matter What Order Partitions Show up In?


I partitioned my Mint Install;

First I created a "/" partition, then a "Swap" partition, then a /home Partition with all the (biggest) space I had left over.

So the order I had while looking at it was
/dev/sda1 ext4 /
/dev/sda5 swap
/dev/sda6 /home

When I look at other schemes, I see a different order. I see;
/dev/sda1 ext4 /
/dev/sda5 ext4 /home
/dev/sda6 swap

The "/home" and "swap" are switched around. I knew how much I wanted for my /. I knew how much I wanted for swap, but wanted all the left over space for /home. It was easier to do it that way.

Does it matter what order the /home and swap are in?

Thank you,
Chris.
 
Old 11-26-2016, 05:10 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,496

Rep: Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099
No.
People used to worry about such things, but that time is long gone. I always stick swap way out the end to get it out of the way - especially if I later need to resize/move partitions around.
LVM avoids such concerns at all.
 
Old 11-26-2016, 06:13 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,514

Rep: Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017
Notes.

I've had trouble with /boot location or other first start type things when on some older systems.

Good thing about swap is that you can do a lot with it both in file and partition after the system is up. Same with /home. You can usually move it around later.
 
Old 11-27-2016, 08:14 PM   #4
happydog500
Member
 
Registered: Dec 2006
Location: Washington St.
Distribution: Linux Mint 18.2, Windows 7, 10, Ubuntu-MATE, Xubuntu, devuan, and about a dozen others-Hopper
Posts: 304

Original Poster
Rep: Reputation: 5
I re-did it before I got a response. I had 2mb's left over. Wish I wold of left it the way it was. ocd+2mb=stress.

Chris.
 
Old 11-27-2016, 08:36 PM   #5
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Rep: Reputation: Disabled
My partition order:

/dev/sda1 - boot
/dev/sda2 - encrypted LVM

Inside the LVM:

40 GB for /
16 GB for /swap
The rest for /home

The very first partitions are the ones closest to the end of the disk and they get faster read/write, so it makes sense to put swap not very far from it.

Quote:
ocd+2mb=stress
I fell ya. Fortunately my first partition is created 2048 MB after the first track so the partitions align properly (my HD has physical sectors of 4096 bytes and logical sectors of 512 bytes). Creating partitions with fdisk makes sure that no free space exists in the end of the disk.
 
Old 11-30-2016, 08:17 AM   #6
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
If I have several disks in a machine I tend to create the partitions I need then format the bits that file systems can't use as swap space.
 
Old 11-30-2016, 09:12 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,637

Rep: Reputation: 2084Reputation: 2084Reputation: 2084Reputation: 2084Reputation: 2084Reputation: 2084Reputation: 2084Reputation: 2084Reputation: 2084Reputation: 2084Reputation: 2084
Quote:
Originally Posted by happydog500 View Post
I partitioned my Mint Install;

First I created a "/" partition, then a "Swap" partition, then a /home Partition with all the (biggest) space I had left over.

So the order I had while looking at it was
/dev/sda1 ext4 /
/dev/sda5 swap
/dev/sda6 /home

When I look at other schemes, I see a different order. I see;
/dev/sda1 ext4 /
/dev/sda5 ext4 /home
/dev/sda6 swap

The "/home" and "swap" are switched around. I knew how much I wanted for my /. I knew how much I wanted for swap, but wanted all the left over space for /home. It was easier to do it that way.

Does it matter what order the /home and swap are in?

Thank you,
Chris.
it goes by the order you create them in.
had you did it like this

create /
create /home
create swap
then it'd look something like this
Code:
/dev/sda1 /
/dev/sda2 /home
/dev/sda3 swap
Are you not creating them all primary drives? you got a jump from 1 to 5 in there. you can have up to 4 primary drives before you have to go to extended.

Last edited by BW-userx; 11-30-2016 at 09:15 AM.
 
Old 11-30-2016, 09:25 AM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by happydog500 View Post
I had 2mb's left over.
The "Unallocated" space in gParted and the like drives me bonkers.
 
Old 11-30-2016, 09:40 AM   #9
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
It is usually the rest of the track/cylinder that the tables occupy which cannot be used, though it may also be some at the end of the drive since some file systems won't use the last bit.
 
  


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
Partitions and the order of them WysDieDeur Linux - Desktop 1 07-31-2013 09:01 AM
software RAID10 - does the disk order in mdadm matter ? banan.olek Linux - Server 4 09-06-2011 01:57 PM
Help mount usb to same /dev no matter which order plugged in. Brian1 Linux - Hardware 1 10-05-2004 09:31 PM
does order in kernel compile matter? doublefailure Linux - General 2 07-06-2002 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:29 PM.

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