You are not logged in.
Pages: 1
So basicly i can't use a Swap partition as all my partitions on my dos partition table are used up. That's why i would like to use a swapfile. I'm running a Brtfs is that matters. I also tried this with a subvolume but it gave me the same error as with this. Also the same thing happens when i run it as root directly. idk what to do anmore.
[leon@arch ~]$ sudo swapon /swapfile
swapon: /swapfile: swapon failed: Invalid argument
[leon@arch ~]$ sudo swapon --version
swapon from util-linux 2.39.2
[leon@arch ~]$ neofetch
-` leon@arch
.o+` ---------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: HP ProBook 650 G1 A3009DD10303
`+oooooo: Kernel: 6.5.8-arch1-1
-+oooooo+: Uptime: 9 mins
`/:-:++oooo+: Packages: 1760 (pacman)
`/++++/+++++++: Shell: bash 5.1.16
`/++++++++++++++: Resolution: 1366x768, 1920x1080
`/+++ooooooooooooo/` WM: i3
./ooosssso++osssssso+` Theme: Adwaita [GTK2], Adwaita-dark [GTK3]
.oossssso-````/ossssss+` Icons: Adwaita [GTK2/3]
-osssssso. :ssssssso. Terminal: terminator
:osssssss/ osssso+++. CPU: Intel i5-4200M (4) @ 3.100GHz
/ossssssss/ +ssssooo/- GPU: Intel 4th Gen Core Processor
`/ossssso+/:- -:/+osssso+- Memory: 1773MiB / 7386MiB
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/
[leon@arch ~]$ cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p4
UUID=46238947-6359-421a-8c8c-70bb1a7d1b09 / btrfs rw,relatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
#UUID=2680069880066E9D /old ntfs rw 0 0
/swapfile none swap defaults 0 0
[leon@arch ~]$ sudo mkswap /swapfile
mkswap: /swapfile: warning: wiping old swap signature.
Setting up swapspace version 1, size = 8 GiB (8589930496 bytes)
no label, UUID=4db3f802-ef82-4703-b68a-38f75ee4aa9b
[leon@arch ~]$ sudo swapon /swapfile
swapon: /swapfile: swapon failed: Invalid argument
Offline
Btw i asked Chatgpt and that said i should ask here.
Offline
It does matter that you're running on btrfs, see the note at https://wiki.archlinux.org/title/Swap#Swap_file and follow the instructions on the linked btrfs page
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
It worked tanks
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Pages: 1