Am 30.03.2023 um 16:02 schrieb Ranjan Maitra
<mlmaitra(a)gmx.com>:
> And to make it permanent
>
> […]$ sudo vi /etc/fstab
>
> and add at the end
> either
> /dev/sdb1 /mnt xfs defaults 0 0
> or
> /dev/sdb1 /mnt ext4 defaults 0 0
>
lsblk now yields a UUID, so I guess i could use that for consistency with the rest, or
the actual drive above.
You can do that, yes. One reason for UUID is, when you do some hardware maintenance and
reconnect the drives to different sata ports the naming can change. The previous /dev/sdb
may become /dev/sdd etc. Using UUID make you to some degree independent from cabling and
ports.
But, should I use 0 0 above, or 1 2, given that /home is 1 2. Since
that is what I will be backing up hourly (after the first run), using changes per rsync to
this drive).
The first „zero“:
fs_freq: This field is used by dump(8) to determine which filesystems need to be dumped.
Defaults to zero (don’t dump) if not present.
I suppose, you don’t want it to get dumped, so leave it zero
The second „zero“:
fs_passno: This field is used by fsck(8) to determine the order in which filesystem checks
are done at boot time. The root filesystem should be specified with a fs_passno of 1.
Other filesystems should have a fs_passno of 2. Filesystems within a drive will be checked
sequentially, but filesystems on different drives will be checked at the same time to
utilize parallelism available in the hardware. Defaults to zero (don’t check the
filesystem) if not present.
Modern journaling filesystems as ext4 or xfs don’t need a file check at every boot time.
So I think it is best to retain the default.
Best
--
Peter Boy
https://fedoraproject.org/wiki/User:Pboy
pboy(a)fedoraproject.org
Timezone: CET (UTC+1) / CEST (UTC+2)
Fedora Server Edition Working Group member
Fedora docs team contributor
Java developer and enthusiast