View previous topic :: View next topic |
Author |
Message |
nekoseam n00b
Joined: 27 Mar 2018 Posts: 2
|
Posted: Tue Mar 27, 2018 6:14 am Post subject: [SOLVED] Will this partition scheme work? |
|
|
(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 |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
nekoseam n00b
Joined: 27 Mar 2018 Posts: 2
|
Posted: Tue Mar 27, 2018 3:58 pm Post subject: |
|
|
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 _________________ No matter how many times I "man emerge" I'm still a nerd |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
ali3nx l33t
Joined: 21 Sep 2003 Posts: 722 Location: Winnipeg, Canada
|
Posted: Tue Mar 27, 2018 9:02 pm Post subject: |
|
|
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 |
|
|
|