Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo partition layout
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 493

PostPosted: Wed Jun 26, 2013 2:01 am    Post subject: Gentoo partition layout Reply with quote

Is there a technical reason for having the standard Gentoo partition layout as

Code:

/dev/sda1  boot
/dev/sda2  swap
/dev/sda3  root


instead of

Code:

/dev/sda1  boot
/dev/sda2  root
/dev/sda3  swap


or it was just an ad hoc decision?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jun 26, 2013 3:25 am    Post subject: Reply with quote

While your root partition is less than almost completely full, swap space at the beginning of the physical disk will be closer to most of your files, thus minimizing seek times, so not arbitrary. :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
yzg
Guru
Guru


Joined: 18 Jun 2005
Posts: 493

PostPosted: Wed Jun 26, 2013 11:33 pm    Post subject: Reply with quote

Hi John

Thank you for pointing this reason.

But if the root partition is greater than 50% full, then the [boot,root,swap] order will be better.

I'm thinking of a fast recovery scheme where the root partition is small and I will do an image for the disk to the end of the root partition. Having the swap partition at the end will make the image smaller and faster.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21489

PostPosted: Thu Jun 27, 2013 1:02 am    Post subject: Reply with quote

If your backup is based on the contents of the filesystem, its size will not be affected by where you place the partitions on the underlying drive. If your backup is based on a dump of the drive, then you are copying free space.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Jun 27, 2013 2:40 am    Post subject: Reply with quote

yzg wrote:
But if the root partition is greater than 50% full, then the [boot,root,swap] order will be better.
Well, no. Only the files after the 50% mark will be closer to a trailing swap partition. Like I said, until the drive is completely full, most files will be closer to a leading swap partition.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum