Web lists-archives.com

Re: Command line mounting all partitions of pluggable device

On Monday, January 14, 2019 08:11:11 AM Richard Owlett wrote:
> I have competing mount requirements.
> I have 2 1TB USB drives with a dozen or more partitions, only one of
> which may be of current interest. Disabling automoun is a suitable
> solution to mounted clutter.
> However I have several USB drives (64GB - 250GB) with multiple
> partitions. How do I mount all partitions of a specific device
> (e.g. /dev/sdc)?

Assuming there are entries in fstab for each partition, you could use a (bash) 
for loop, like:

for i in  /dev/sd<device_letter>*;  do  mount $i; done