Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Will this partition scheme work?
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
nekoseam
n00b
n00b


Joined: 27 Mar 2018
Posts: 2

PostPosted: Tue Mar 27, 2018 6:14 am    Post subject: [SOLVED] Will this partition scheme work? Reply with quote

(grub and boot are the defaults shown in the installation guide) The only thing I've changed is the swap (and therefore root)
mkpart primary 131 4155
name 3 swap
mkpart primary 4155 -1
name 4 rootfs
Will this work? I'm using parted
I'd also like confirmation that I'm only supposed to put filesystems on boot and root :)
_________________
No matter how many times I "man emerge" I'm still a nerd


Last edited by nekoseam on Wed Mar 28, 2018 6:44 am; edited 1 time in total
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6313
Location: /usr/lib64/lv2

PostPosted: Tue Mar 27, 2018 12:15 pm    Post subject: Reply with quote

It looks like you want a larger swap partition. Yes, it will work. Some people have larger swaps, others have none at all.

You are correct - filesystems go on boot and root but not on swap. Just mkswap for your swap partition.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
nekoseam
n00b
n00b


Joined: 27 Mar 2018
Posts: 2

PostPosted: Tue Mar 27, 2018 3:58 pm    Post subject: Reply with quote

audiodef wrote:
It looks like you want a larger swap partition. Yes, it will work. Some people have larger swaps, others have none at all.

You are correct - filesystems go on boot and root but not on swap. Just mkswap for your swap partition.


Thanks for this. I've asked on the IRC and got the same answer but just wanted confimation since parted is so confusing :oops:
_________________
No matter how many times I "man emerge" I'm still a nerd
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6313
Location: /usr/lib64/lv2

PostPosted: Tue Mar 27, 2018 4:23 pm    Post subject: Reply with quote

Yeah, it is at first, took me a while to get used to it after switching from fdisk. But it's worth the switch. :)

P.S. Please mark your post as [SOLVED] if you're satisfied with it.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 612
Location: Vancouver, Canada

PostPosted: Tue Mar 27, 2018 9:02 pm    Post subject: Reply with quote

Do you have uefi bios capable hardware? If you do planning for using uefi by ensuring you create a uefi ESP boot partition could be wise and given the opportunity. Changing your mind later could be a modest pita :)

Here's a simple functional example using parted to include an ESP partition and 2GB swap

start parted with optimal partition boundary sector alignment for optimal performance

Code:
parted -a optimal /dev/sdX

mklabel gpt 
mkpart ESP fat32 1MiB 513MiB 
mkpart primary linux-swap 513MiB 2561MiB 
mkpart primary ext4 2561MiB 100%
set 1 boot on
name 2 swap
name 3 rootfs


The end result should look identical to this using the exact parted commands above

Code:
K.I.S.S uefi compatible partition layout

fenrir ~ # parted -l /dev/sda
Model: ATA WDC WD2003FZEX-0 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name    Flags
 1      1049kB  538MB   537MB   fat32           ESP     boot, esp
 2      538MB   4832MB  4294MB  linux-swap(v1)  swap
 3      4832MB  2000GB  1996GB  ext4            rootfs

sda1 is fat32 uefi filesystem mounted to /boot/EFI
sda3 is rootfs obviously

_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
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