You are not logged in.
Hello,
I just installed Arch Linux on my computer and it seems to be working fine. However, I am having some problems creating a swap file. I'm following the Swap: swap file creation page on the Arch Wiki. I'm getting the following error when trying to use the chattr command:
$ sudo truncate -s 0 /swapfile
$ sudo chattr +C /swapfile
chattr: Operation not supported while setting flags on /swapfile
I've also tried running these commands while logged in as root, but I get the same error. As mentioned on the swap file page of the Arch Wiki, I also checked the Btrfs: swap file page, but that didn't seem to help with this error.
Thanks in advance
Last edited by tda (2020-06-27 08:31:39)
Offline
Could you show the output of
# blkid
?
Offline
$ sudo blkid
/dev/nvme0n1p1: UUID="4EB7-716C" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="0336c00b-fce1-1e40-a964-0bad0c6769e3"
/dev/nvme0n1p2: UUID="c364f9b2-9b9c-4d78-97ed-94e660f46d93" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0ecc22fc-1a50-d047-b5db-e1afb781b9f8"
/dev/nvme0n1p3: UUID="b94d5848-7a4c-4660-af4c-bf8bd1b1f22b" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="33589951-8577-5549-80f2-72a76650751b"
/dev/sda1: UUID="e8f55f6c-5da9-4f71-bfbc-9231d65dcc1a" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="b9f480ce-6333-d641-ac69-d36ea34ab0c1"
/dev/nvme0n1p1 is the boot partition
/dev/nvme0n1p2 is /
/dev/nvme0n1p3 is /home
/dev/sda1 is an extra SSD
Offline
Cool beans.
/dev/nvme0n1p2: UUID="c364f9b2-9b9c-4d78-97ed-94e660f46d93" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0ecc22fc-1a50-d047-b5db-e1afb781b9f8"
"For Btrfs, first create a zero length file..."
The file system of your root partition is ext4, not btrfs, so in your case the instruction begins from here: "Use dd to create a swap file the size of your choosing."
Offline
Ah! I didn't know what Btrfs was, but now that makes complete sense. Thank you!
Offline