If I specify a bind mount in my configuration.nix, it doesn’t seem as if it gets picked up until next reboot.
Can I somehow run a command to check all fstab entries to see if they are mounted and if not, mount them?![]()
If I specify a bind mount in my configuration.nix, it doesn’t seem as if it gets picked up until next reboot.
Can I somehow run a command to check all fstab entries to see if they are mounted and if not, mount them?![]()
It’s not quite 1 command, but.
To see what’s mounted:
$ mount
To mount a disk /dev/disk0 at /mnt/foo:
$ mount /dev/disk0 or$ mount /mnt/fooNote that the disk can be e.g. a UUID path (/dev/disk/by-uuid/... ), not just a literal device path.
In either case, the assumptions are:
/etc/fstab)sudo.I know I can manually mount, but isn’t there like a command that can check all entries in fstab and if it finds an entry that is not mounted, then mount it?
That would be $ mount -a.
Yeah, that’s perfect;). Thanks