title: How do I specify a label/path with spaces in /etc/fstab?
body: <p>I am having trouble trying to get theh permissions for some of my external drives set up.  </p>
  
  <p>I believe the probem is due to how I am dealing with spaces in the text such that the commands can be interpreted by the terminal.
  I have found <a href="https://stackoverflow.com/questions/5224243/mount-ntfs-on-ubuntu-on-start-up">this</a>, which seems to indicate that I need to configure my etc/fstab file to show the following:</p>
  
  <pre><code># UNCONFIGURED FSTAB FOR BASE SYSTEM
  /host/ubuntu/disks/swap.disk    none    swap    sw  0   0
  LABEL='Expansion Drive'  /media/'Expansion Drive'  ntfs-3g  defaults,umask=0022,fmask=0133  0  0
  LABEL='Expansion Drive_'  /media/'Expansion Drive_'  ntfs-3g  defaults,umask=0022,fmask=0133  0  0
  </code></pre>
  
  <p>However, This is showing an error that the drive <code>Drive_'</code> is not ready.  I realize that this is due to using <code>""</code>s or <code>''</code>s, but I am not sure how else to do this properly.  My 2 drives are called <code>Expansion Drive</code> and <code>Expansion Drive_</code> .  Anyone know how to solve this problem?</p>
  
  <p><strong>EDIT:</strong> Here is what I can see in the media folder:</p>
  
  <pre><code>chasebrown@ubuntu:/media$ ls -al
  total 32
  drwxr-xr-x  6 root       root        1024 Mar  9 16:32 .
  drwxr-xr-x 24 root       root        1024 Feb 23 23:14 ..
  drwx------  1 chasebrown chasebrown  4096 Mar  8 04:21 Expansion Drive
  drwx------  1 chasebrown chasebrown  4096 Mar  8 04:21 Expansion Drive_
  dr-x------  1 chasebrown chasebrown  2048 May 20  2009 GDRV-25922+VR2
  drwx------  1 chasebrown chasebrown 20480 Mar  8 04:21 WD EXTERNAL
  </code></pre>
  
  <p>Also <code>sudo lsblk -f</code>:</p>
  
  <pre><code>chasebrown@ubuntu:/dev/disk/by-uuid$ sudo lsblk -f
  [sudo] password for chasebrown: 
  NAME   FSTYPE  LABEL           MOUNTPOINT
  sda                            
  ├─sda1 ntfs    System Reserved 
  └─sda2 ntfs                    
  sdb                            
  └─sdb1 ntfs                    /host
  sdc                            
  └─sdc1 ntfs    Expansion Drive /media/Expansion Drive_
  sdd                            
  └─sdd1 ntfs    Expansion Drive /media/Expansion Drive
  sde                            
  └─sde1 ntfs    WD EXTERNAL     /media/WD EXTERNAL
  sr0    iso9660 GDRV-25922+VR2  /media/GDRV-25922+VR2
  loop0  ext3                    /
  </code></pre>
  
  <p>And <code>sudo blkid</code>:</p>
  
  <pre><code>chasebrown@ubuntu:/dev/disk/by-uuid$ sudo blkid
  /dev/loop0: UUID="87a15942-982f-4edd-bf44-439dc286fd7c" SEC_TYPE="ext2" TYPE="ext3" 
  /dev/sr0: LABEL="GDRV-25922+VR2" TYPE="iso9660" 
  /dev/sda1: LABEL="System Reserved" UUID="64CEEA61CEEA2B4E" TYPE="ntfs" 
  /dev/sda2: UUID="4CA4EBC0A4EBAAA2" TYPE="ntfs" 
  /dev/sdb1: UUID="00064EEE064EE46E" TYPE="ntfs" 
  /dev/sdc1: LABEL="Expansion Drive" UUID="C682A8EE82A8E3E1" TYPE="ntfs" 
  /dev/sdd1: LABEL="Expansion Drive" UUID="D006D78406D769CC" TYPE="ntfs" 
  /dev/sde1: LABEL="WD EXTERNAL" UUID="D65AFC375AFC15C9" TYPE="ntfs" 
  </code></pre>
  
  <p>Therefore my new fstab file is:</p>
  
  <pre><code># UNCONFIGURED FSTAB FOR BASE SYSTEM
  /host/ubuntu/disks/swap.disk    none    swap    sw  0   0
  LABEL=Expansion\040Drive  /media/Expansion\040Drive  ntfs-3g  defaults,umask=0022,fmask=0133  0  0
  LABEL=Expansion\040Drive_  /media/Expansion\040Drive_  ntfs-3g  defaults,umask=0022,fmask=0133  0  0
  </code></pre>
  
  <p><strong>SOLUTION</strong>: 
  I ended up changing the <code>LABEL</code> to <code>UUID</code> and it worked for some reason.</p>
  
  <p>Here is the resulting /etc/fstab file was :</p>
  
  <pre><code># UNCONFIGURED FSTAB FOR BASE SYSTEM
  /host/ubuntu/disks/swap.disk    none    swap    sw  0   0
  UUID=C682A8EE82A8E3E1  /media/Expansion\040Drive  ntfs-3g  defaults,umask=0022,fmask=0133  0  0
  UUID=D006D78406D769CC  /media/Expansion\040Drive_  ntfs-3g  defaults,umask=0022,fmask=0133  0  0
  </code></pre>