Hi, I have gotten some terrific help here with backup ideas for the reconditioned older PC that I want to use for my Linux server. Now I have a great rsync backup script from jlinkels and it works really well.
I need an fstab entry for this new drive. I used gparted to make it a single parition ext drive with the label "USB-Backup". Nice.
For the /etc/fstab file, I used this line initially:
Code:
LABEL=USB-Backup /mnt/backup ext4 defaults 0 0
This method works but if the drive is not plugged in, CentOS 7 will hang at boot and dump me into an emergency shell. Not good. Next I tried this fstab line:
Code:
LABEL=USB-Backup /mnt/backup ext4 noauto,x-systemd.automount 0 0
THIS works extremely well. But I never heard of using systemd in an fstab file before so I would appreciate if any experienced members see anything wrong with it, before it is too late. Is this a safe, dependable method of mounting the drive or is there something better suited to this application for a backup USB drive?
EVERYTHING in the fstab file endes with zeros. Is this normal? I thought that the last digit was a "checking order" number for fsck. With everything 0, will that cause any foreseeable problems?
Code:
#
# /etc/fstab
# Created by anaconda on Tue Apr 28 04:54:46 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos_linux--server-root / xfs defaults 0 0
UUID=787b75ae-64e1-4d33-bc8c-8a8b8af52a09 /boot xfs defaults 0 0
/dev/mapper/centos_linux--server-home /home xfs defaults 0 0
/dev/mapper/centos_linux--server-swap swap swap defaults 0 0
LABEL=USB-Backup /mnt/backup ext4 noauto,x-systemd.automount 0 0
Everything here look safe and dependable? Thanks for your help. I would really like to get this right the first time.