Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #204413

Re: Command line mounting all partitions of pluggable device

From rhkramer@gmail.com
Newsgroups linux.debian.user
Subject Re: Command line mounting all partitions of pluggable device
Date 2019-01-14 16:10 +0100
Message-ID <xgc2d-5lF-19@gated-at.bofh.it> (permalink)
References <xgajL-4es-3@gated-at.bofh.it> <xgbfP-4OX-1@gated-at.bofh.it> <xgc2d-5lF-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Top posting intentionally:  I guess the key is something has to know where to 
mount those devices, and you are the one that has to decide that and tell 
mount in one way or another.


On Monday, January 14, 2019 10:01:15 AM rhkramer@gmail.com wrote:
> On Monday, January 14, 2019 09:12:30 AM Richard Owlett wrote:
> > On 01/14/2019 07:33 AM, rhkramer@gmail.com wrote:
> > > On Monday, January 14, 2019 08:11:11 AM Richard Owlett wrote:
> > >> How do I mount all partitions of a specific device
> > >> (e.g. /dev/sdc)?
> > > 
> > > Assuming there are entries in fstab for each partition,
> > 
> > There are not. I have a varying number of devices. Each device is
> > normally associated with a specific function (e.g. sneaker-net) or
> > personal project. A specific physical device may be reformatted and
> > assigned a new purpose.
> > 
> > > you could use a (bash) for loop, like:
> > > 
> > > for i in  /dev/sd<device_letter>*;  do  mount $i; done
> 
> Hmm, well, that makes it (for me) harder.
> 
> If they all have similar mounting options (e.g., RO, things like that), and
> the mount points correspond to some system (e.g., /dev/sd<device_letter><n>
> gets mounted on /mnt/<mountpoint><n>), then you might modify the mount
> command in that loop appropriately, e.g.:
> 
> mount  /dev/sd<device_letter><n> /mnt/<mountpoint><n> <options>
> 
> Or, if groups of those devices have mountpoints that correspond to some
> system, then you could haved multiple for loops to do the groups.
> 
> Or you could put mount commands in a file, one line per file, and run  a
> for loop on the lines of the file, or some variation of this.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Command line mounting all partitions of pluggable device Richard Owlett <rowlett@cloud85.net> - 2019-01-14 14:20 +0100
  Re: Command line mounting all partitions of pluggable device rhkramer@gmail.com - 2019-01-14 14:40 +0100
    Re: Command line mounting all partitions of pluggable device Richard Owlett <rowlett@cloud85.net> - 2019-01-14 15:20 +0100
      Re: Command line mounting all partitions of pluggable device rhkramer@gmail.com - 2019-01-14 16:10 +0100
        Re: Command line mounting all partitions of pluggable device rhkramer@gmail.com - 2019-01-14 16:10 +0100
          Re: Command line mounting all partitions of pluggable device Richard Owlett <rowlett@cloud85.net> - 2019-01-14 17:20 +0100
      Re: Command line mounting all partitions of pluggable device "Thomas Schmitt" <scdbackup@gmx.net> - 2019-01-14 16:30 +0100
        Re: Command line mounting all partitions of pluggable device Richard Owlett <rowlett@cloud85.net> - 2019-01-14 17:30 +0100
          Re: Command line mounting all partitions of pluggable device David Wright <deblis@lionunicorn.co.uk> - 2019-01-14 21:20 +0100
            Re: Command line mounting all partitions of pluggable device Richard Owlett <rowlett@cloud85.net> - 2019-01-15 02:10 +0100
              Re: Command line mounting all partitions of pluggable device David Wright <deblis@lionunicorn.co.uk> - 2019-01-17 06:00 +0100
                Re: Command line mounting all partitions of pluggable device Richard Owlett <rowlett@cloud85.net> - 2019-01-18 14:50 +0100
                Re: Command line mounting all partitions of pluggable device David Wright <deblis@lionunicorn.co.uk> - 2019-01-19 04:50 +0100
              Re: Command line mounting all partitions of pluggable device Andrei POPESCU <andreimpopescu@gmail.com> - 2019-05-19 13:30 +0200
                Re: Command line mounting all partitions of pluggable device Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-20 15:40 +0200
                Re: Command line mounting all partitions of pluggable device Andrei POPESCU <andreimpopescu@gmail.com> - 2019-05-20 21:10 +0200
          Re: Command line mounting all partitions of pluggable device Brian <ad44@cityscape.co.uk> - 2019-01-14 21:30 +0100

csiph-web