You are not logged in.
Pages: 1
Hello,
I installed Archlinux with the Beginner's guide with no problem.
I just saw some errors on dmesg about the swap partition. My laptop is a Lenovo X250 with a 250Go SSD. Here is few logs.
fdisk -l /dev/sda
Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C99CC37D-A62E-46EE-B5FB-47A6006EF3E5
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 84934655 83884032 40G Linux filesystem
/dev/sda3 84934656 101711871 16777216 8G Linux swap
/dev/sda4 101711872 500117503 398405632 190G Linux filesystem
cat /etc/fstab
# /dev/sda2
UUID=da927f84-36d8-4507-8de4-74e39007b6a3 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda1
UUID=28DD-714E /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# /dev/sda4
UUID=e91b6063-bc0b-4330-b0dd-c38f2c0ac2c0 /home ext4 rw,relatime,data=ordered 0 2
Partial dmesg log
[ 1.383384] systemd[1]: Found device LITEON_LCH-256V2S 3.
[ 1.384838] systemd[1]: Activating swap Swap Partition...
[ 1.386148] systemd[1]: Starting File System Check on /dev/disk/by-uuid/28DD-714E...
[ 1.390758] systemd[1]: Found device LITEON_LCH-256V2S 4.
[ 1.392072] systemd[1]: Starting File System Check on /dev/disk/by-uuid/e91b6063-bc0b-4330-b0dd-c38f2c0ac2c0...
[ 1.394442] tpm_tis 00:05: TPM is disabled/deactivated (0x6)
[ 1.404396] input: PC Speaker as /devices/platform/pcspkr/input/input6
[ 1.406972] systemd[1]: dev-sda3.swap: Swap process exited, code=exited status=255
[ 1.407193] systemd[1]: Failed to activate swap Swap Partition.
[ 1.409933] systemd[1]: dev-sda3.swap: Unit entered failed state.
[ 1.411280] systemd[1]: Reached target Swap.
journalctl -b | grep swap
Nov 14 06:54:37 christophe kernel: CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.2.5-1-ARCH #1
Nov 14 06:54:37 christophe kernel: zswap: loading zswap
Nov 14 06:54:37 christophe kernel: zswap: using zbud pool
Nov 14 06:54:37 christophe kernel: zswap: using lzo compressor
Nov 14 06:54:37 christophe systemd[1]: Activating swap Swap Partition...
Nov 14 06:54:37 christophe systemd[1]: dev-sda3.swap: Swap process exited, code=exited status=255
Nov 14 06:54:37 christophe systemd[1]: Failed to activate swap Swap Partition.
Nov 14 06:54:37 christophe systemd[1]: dev-sda3.swap: Unit entered failed state.
Nov 14 06:54:37 christophe swapon[197]: swapon: /dev/sda3 : échec de lecture d'en-tête d'espace d'échange
Do I just need to declare swap partition in fstab?
I read somewhere that systemd did not need it I use systemd 227-1.
Last edited by tophsic (2015-11-14 09:51:42)
Offline
Hi, and Welcome to Arch Linux.
No, do not put swap in /etc/fstab.
Did you do a mkswap on /dev/sda3? Did you do a swapon command? (Not sure if that is necessary)
As I just installed Arch on a laptop this morning, I can attest that it is easy to miss steps *cough*locale-gen*cough*, so I'll not cast stones if you missed a step
Also, your error translates as "read failure header swap space". That is my I asked about mkswap. Also, How much RAM have you? If it is more than 4G, you might need more swap space.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Thanks a lot, indeed, I missed the mkswap step.
Offline
Pages: 1