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


Groups > linux.debian.user > #208926

Re: Command line mounting all partitions of pluggable device

From Andrei POPESCU <andreimpopescu@gmail.com>
Newsgroups linux.debian.user
Subject Re: Command line mounting all partitions of pluggable device
Date 2019-05-20 21:10 +0200
Message-ID <xZVPz-4tu-9@gated-at.bofh.it> (permalink)
References (2 earlier) <xgdhE-62Y-7@gated-at.bofh.it> <xggSe-8ls-13@gated-at.bofh.it> <xgloR-2OV-3@gated-at.bofh.it> <xZsaR-1LA-3@gated-at.bofh.it> <xZQGe-17a-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Lu, 20 mai 19, 09:31:05, Greg Wooledge wrote:
> On Sun, May 19, 2019 at 02:20:19PM +0300, Andrei POPESCU wrote:
> >     for $dir in /media/removable/*
> >     do
> >         mount /dev/disk/by-label/$dir /media/removable/$dir
> >     done
> 
> for dir in /media/removable/*
> do
>     mount /dev/disk/by-label/"$dir" /media/removable/"$dir"
> done
> 
> Note the lack of $ in the first line.  That's a fatal bug.
 
It was late... early... Sunday :p

> The quotes around "$dir" in the third line should be used, but if you
> forget them, it'll *probably* still work in most cases, because your
> directory names probably don't contain spaces or glob characters.
> Until that day in the distant future when all of a sudden, they do,
> and everything falls down.

As I said "(with appropriate quoting, etc.)".

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

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