Help install manjaro with swap partition or swapfile

Good day everybody,

On question what is better a swap partition or a swapfile for Manjaro? And how to implement it. And for example systemd swap for 8 gb ram do I need to enable zram or zswap? I dont know whats better. And easy to do for a newbie. And when I install Manjaro on ssd via automatic install does it optimize the partitions for ssd use? Like 2 unallocated partitions or fully install?

I have a I5-4670k 64 bits cpu
8 gb ddr3 ram
240 gb wd ssd
1 tb toshiba

A swap partition is usually a bit harder to change size – due to it being a partition next to others – whereas a swapfile is a file in one of your data partitions, and as such is easier to change size.
Although the size of swap isn’t something you change regularly anyway…

A SSD can access any block anytime, contrarily to HDD which needs to move the heads at the right place before reading/writing. Thus there is no partition optimization needed on a SSD.

AFAIK a default installation creates a single partition including both system and data. Many people prefer a different partitioning, each to his own taste…

is SSD empy ?
is there any data on HDD ?
if you want you can put swap on HDD ,
but theses 2 two disks should be GPT ( check before )

can you boot on USb iso manjaro
open a terminal and returns

inxi -Fza
sudo parted -l

Hello,

Right now I am running pop os on my ssd, and on my hdd there is nothing special. I would like to run Manjaro on SSD both are disks are gpt. Do I need to use a partition for swap or a file? Do I need to put some free space on the ssd? Or can I just use it fullly for manjaro.

Pop os automated install made this on my ssd.

  • 2.1mb free space
  • 522 mb Efi partition
  • 4.3 GB recovery
  • 231 GB ext4 Data
  • 4.3 GB Swap
  • 2.1 MB free space

Regards,

Marcel

Partitietabel: gpt
Schijfvlaggen:

Nummer Begin Einde Grootte Bestandssysteem Naam Vlaggen
1 2097kB 524MB 522MB fat32 opstart, esp
2 524MB 4819MB 4295MB fat32 recovery msftdata
3 4819MB 236GB 231GB ext4
4 236GB 240GB 4295MB linux-swap(v1) swap

Model: ATA TOSHIBA HDWD110 (scsi)
Schijf /dev/sdb: 1000GB
Sectorgrootte (logisch/fysiek): 512B/4096B
Partitietabel: gpt
Schijfvlaggen:

Nummer Begin Einde Grootte Bestandssysteem Naam Vlaggen
1 1049kB 947GB 947GB ext4
2 947GB 1000GB 53,7GB ext4 Backup

Model: Linux device-mapper (crypt) (dm)
Schijf /dev/mapper/cryptswap: 4294MB
Sectorgrootte (logisch/fysiek): 512B/512B
Partitietabel: loop
Schijfvlaggen:

Nummer Begin Einde Grootte Bestandssysteem Vlaggen
1 0,00B 4294MB 4294MB linux-swap(v1)

can you check

sudo lsblk -fs 
sudo cat /etc/fstab

is partition 947Gb ext4 used by pop ?

It is my data partition on the hdd.

prive@pop-os:~$ sudo lsblk -fs
[sudo] wachtwoord voor prive:
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda1 vfat 214B-DA0C 311M 37% /boot/efi
└─sda
sda2 vfat 214B-DDCC 1,6G 59% /recovery
└─sda
sda3 ext4 511ce72d-b194-4e6c-adb4-b6a0dd76bd56 188,8G 5% /
└─sda
sdb1 ext4 2f743a03-a88d-49a0-a608-0f443bd05411 784,3G 4% /mnt/DATA
└─sdb
sdb2 ext4 81103bb5-fd2e-4e37-b144-9a22b5e01596
└─sdb
sr0
cryptswap swap 1130b2b8-7bd9-4874-b5c7-5b208926e502 [SWAP]
└─sda4 swap d6705b44-08ed-4310-909b-5ce811a5ff9b
└─sda
prive@pop-os:~$ sudo cat /etc/fstab

/etc/fstab: static file system information.

Use ‘blkid’ to print the universally unique identifier for a

device; this may be used with UUID= as a more robust way to name devices

that works even if disks are added and removed. See fstab(5).

PARTUUID=9a8305f4-39b2-498e-862d-2589654dc606 /boot/efi vfat umask=0077 0 0
PARTUUID=a36992a2-e345-424a-8768-ee316bd70c70 /recovery vfat umask=0077 0 0
UUID=511ce72d-b194-4e6c-adb4-b6a0dd76bd56 / ext4 noatime,errors=remount-ro 0 0
/dev/mapper/cryptswap none swap defaults 0 0

Mount DATA partition under /mnt/DATA

UUID=2f743a03-a88d-49a0-a608-0f443bd05411 /mnt/DATA ext4 defaults,x-gvfs-show 0 2

unless we have created all partition before , all your disks are used.
also for swap , you cant reuse swap crypted.

Note that if you want to enable hibernation with your swap partition, you may need to regenerate initramfs with a resume hook. To do so, add the keyword resume to the HOOKS line in /etc/mkinitcpio.conf after udev, then run mkinitcpio -p linux