After modifying /etc/fstab, drives are still auto-mounting at boot time only

I added entries to block the partitions on an external drive (via USB) from auto-mounting at boot time. I tried using the UUIDs, and the block names (/dev/sdc1). (I need to be using the UUIDs.) UUID=xxxxxxxxxxxxxxxx /media/me/OS ntfs ro,noauto,nofail 0 0 and separately: /dev/sdc4 /media/me/OS ntfs ro,noauto,nofail 0 0 If I manually umount the partitions,…

Details

How to Block Automounting of a Specific Drive (USB connection) With ** Three Mounted Partitions **

I need to block the auto mounting of a specific external drive (USB connection, by UID) that has three different mount points (partitions)? The contents of this drive were created with ddrescue – to copy the data from a failed drive. The drive is being auto-mounted to three locations (sdc1,sdc3, sdc4), and it is being…

Details

Vim search and replace positional arguments

I am trying to replace positional arguments with variables in my bash script using Vim’s substitute :scommand. Example: I would like to replace the following text in a bash script: python3 mymodule.py –dataversion $1 with: python3 mymodule.py –dataversion “${DATAVERSION}” I have tried :s/\$1/”${DATAVERSION}” resulting in E486: Pattern not found: $1. When I search the pattern…

Details