I have an internal backup drive (backup1) with fstab entry to mounts to /mnt/backup
. Occasionally, I unplug this drive temporarily, connect another drive (backup2) and do a secondary backup. Once done, I'll remove backup2 drive, plug in backup1 drive, that brings my system to its usual state.
My backup scripts are hard-coded to /mnt/backup
, so I can connect any drive I want, mount it to /mnt/backup and backup my data.
Today I unplugged backup1, connected backup2 booted ubuntu.
- fstab looks for backup1's UUID, not connected, but
nofail
flag is set, so it just skips mounting /mnt/backup. - No fstab entry for backup2. It's connected as /dev/sdc but no partitions mounted. Good.
I tried to mount it by mount --verbose /dev/sdc1 /mnt/backup
I get a response saying that sdc1 is successfully mounted to /mnt/backup, but it's not actually. mount
and lsblk
don't show this mount, /mnt/backup is blank.
However, if I mount sdc1 to some other directory, like /tmp/backup, it indeed mounts. I'm only unable to mount the new drive's partition to /mnt/backup.
My questions:
- Is the system preventing me from mounting to /mnt/backup because fstab has entry for some other partition for that mount point?
- If so, how do I mount anything at /mnt/backup irrespective of what's defined in fstab?
ubuntu 16.04, linux 4.4.0-97