brtza
22 May 2021 10:50
1
Hi,
I just installed latest Gnome unstable but this time like this :
`# <file system> <mount point> <type> <options> <dump> <pass>
UUID=696C-5252 /boot/efi vfat umask=0077 0 2
UUID=9c0a2b57-5774-4a27-88fb-079b1f98aa1d / btrfs subvol=/@,defaults,noatime,space_cache 0 1
UUID=9c0a2b57-5774-4a27-88fb-079b1f98aa1d /var/cache btrfs subvol=/@cache,defaults,noatime,space_cache 0 2
UUID=9c0a2b57-5774-4a27-88fb-079b1f98aa1d /var/log btrfs subvol=/@log,defaults,noatime,space_cache 0 2
UUID=9c0a2b57-5774-4a27-88fb-079b1f98aa1d /swap btrfs subvol=/@swap,defaults,noatime,space_cache 0 2
UUID=08997f58-a400-4426-b1d1-7c73264cc44a /home btrfs defaults,noatime,space_cache 0 2
/swap/swapfile swap swap defaults,noatime 0 0
/swapfile none swap defaults 0 0
`
I followed this for making swapfile : Swap - Manjaro
But atm I have 2 swapfile’s.
What to do ? Is that ok ?
Thanks
No, that is very , very wrong ─ especially that last line.
If you want to create a swap file on a btrfs
volume, then this file should first and foremost be a regular file, and it must have neither compression nor copy-on-write, because both of those will prevent the kernel from accessing the raw drive blocks directly.
Secondly there is no point in using noatime
on swap, because ─ again ─ swap is addressed as raw drive blocks, not as a mounted filesystem.
Thirdly, why create a swap file instead of a (still more efficient) swap partition?
1 Like
brtza
22 May 2021 11:07
3
Heh, this is my try and see way xD
I just followed instructions. About noatime
on swap , this was there by default. I just made last one in the line…
So best way is to do clean install again, but this time separate “swap partition” ?
That is what I would do, yes. Create a dedicated swap partition, with just defaults
as mount option.
UUID=some-long-string none swap defaults 0 0
Also, you don’t need a forward slash in front of the @
for the subvolumes. Just use subvol=@log
, et al.
1 Like
brtza
22 May 2021 11:34
5
How to choose in Calamares those mount options ? I know that only in architect installer xD
Also, you don’t need a forward slash in front of the @
for the subvolumes. Just use subvol=@log
, et al.
About that, that is also by default, what Calamares did… I just choose btrfs as filesystem
Choose manual partitioning, and then you should be able to set the mount options. Also, it always pays to double-check by way of the live image before actually booting into the installed system.
2 Likes
brtza
22 May 2021 15:40
7
second try
I hope it is better now
> # <file system> <mount point> <type> <options> <dump> <pass>
> UUID=DF24-834F /boot/efi vfat umask=0077 0 2
> UUID=c80bf3cd-1758-4fb8-877d-2f34fe3db9ae / btrfs subvol=/@,defaults,noatime,space_cache 0 1
> UUID=c80bf3cd-1758-4fb8-877d-2f34fe3db9ae /var/cache btrfs subvol=/@cache,defaults,noatime,space_cache 0 2
> UUID=c80bf3cd-1758-4fb8-877d-2f34fe3db9ae /var/log btrfs subvol=/@log,defaults,noatime,space_cache 0 2
> UUID=00f08264-b797-454c-8c1d-1420a88b8986 /home btrfs defaults,noatime,space_cache 0 2
> UUID=b598feff-07d6-4b8a-bc01-1a68e9cac747 swap swap defaults,noatime 0 0
Remove the noatime
from the entry for the swap partition. There’s no filesystem on that partition, and therefore noatime
makes no sense.
brtza
22 May 2021 16:22
9
Sorry but how to do that ?
sudo nano /etc/fstab
Edit the file, save it with Ctrl+O followed by Enter , and exit the editor with Ctrl+X .
2 Likes
system
Closed
6 June 2021 16:48
12
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.