On Thu Mar30'23 04:23:30PM, Peter Boy wrote:
From: Peter Boy pboy@uni-bremen.de Date: Thu, 30 Mar 2023 16:23:30 +0200 To: Community support for Fedora users users@lists.fedoraproject.org Reply-To: Community support for Fedora users users@lists.fedoraproject.org Subject: Re: mounting a drive on F37
Am 30.03.2023 um 16:02 schrieb Ranjan Maitra mlmaitra@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
Thanks, I used it as 0 0 and used the UUID. So after editing the /etc/fstab, I have to do, per the file itself:
sudo systemctl daemon-reload
Do I need to do anything else to mount the drive?
Many thanks, Ranjan
-- Peter Boy https://fedoraproject.org/wiki/User:Pboy pboy@fedoraproject.org
Timezone: CET (UTC+1) / CEST (UTC+2)
Fedora Server Edition Working Group member Fedora docs team contributor Java developer and enthusiast
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue