User Tools

Site Tools


wiki:software:winccdtlong

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
wiki:software:winccdtlong [2019/09/29 10:40]
dizwell
wiki:software:winccdtlong [2019/10/05 15:58] (current)
dizwell
Line 141: Line 141:
 There is just one (quite nasty!) issue that needs fixing before you can reliably let Cygwin interact with your Windows file system: **Cygwin tries to use a Linux-like security model for files on a hard disk that is different from that which Windows uses natively**. The incompatibilities between the two can cause problems, such as files becoming inaccessible to Windows when accessbile from Cygwin (or vice versa). In the worst case, it can appear to corrupt the metadata in your music files to the point of wiping it all out! There is just one (quite nasty!) issue that needs fixing before you can reliably let Cygwin interact with your Windows file system: **Cygwin tries to use a Linux-like security model for files on a hard disk that is different from that which Windows uses natively**. The incompatibilities between the two can cause problems, such as files becoming inaccessible to Windows when accessbile from Cygwin (or vice versa). In the worst case, it can appear to corrupt the metadata in your music files to the point of wiping it all out!
  
-So, to stop that happening, you should configure Cygwin to **not** use its own security model. ​Do that by typing the following command at the Cygwin command prompt:+So, to stop that happening, you should configure Cygwin to **not** use its own security model when mounting the directory that contains your music filesTo do that, start with typing the following command at the Cygwin command prompt
 + 
 +  mkdir /music 
 +   
 +That creates a '​cygwin'​ folder called /music which will be the point where you access your Windows-stored music files. Next:
  
   nano /etc/fstab   nano /etc/fstab
Line 149: Line 153:
   none /cygdrive cygdrive binary,​posix=0,​user 0 0   none /cygdrive cygdrive binary,​posix=0,​user 0 0
  
-You need to edit that to read:+You need to add an additional line after that which reads something like:
  
-  ​none /cygdrive cygdrive ​binary,​noacl,​posix=0,​user 0 0+  ​d:​\music\flac\classical ​/music ntfs binary,​noacl,​posix=0,​user 0 0
   ​   ​
-Note the new entry there: **noacl**, sitting between ​the existing '​binary'​ and '​posix'​ elements. Adding it (and then saving the altered file) switches off Cygwin'​s Linux approach to security. **It will only take full effect once every process using Cygwin has been stopped and re-started**:​ the best way of ensuring that happens is to reboot your //Windows// PC altogether.+This says, in order, "​here'​s where my music files are physically stored as far as Windows is concerned; here's where I want you to access them via Cygwin; ​the physical source is formatted with the NTFS file system; ​there are assorted mount options"​. Obviously, if you actually store your music files on //X:/​here-they-are/​come-and-find-them//,​ you will need to edit the first part of that text entry to match. It is, however, a good idea to mount your music files at /music, regardless of where, physically, they happen to be stored on disk. 
 + 
 +Note that Cygwin does not respond well to directory paths that contain spaces -so, it's best to avoid them if at all possible. 
 + 
 +Also note the all-important presence of **noacl** ​in the mount options in that previous example: this switches off Cygwin'​s Linux approach to security. **It will only take full effect once every process using Cygwin has been stopped and re-started**:​ the best way of ensuring that happens is to reboot your //Windows// PC altogether.
   ​   ​
-Once your PC comes back from that reboot, you are good to go with Cygwin! Start by issuing these commands in a Cygwin command prompt:+Once your PC comes back from that reboot, you are good to go with Cygwin! ​You will also find all your music files mounted correctly at /music (if you used that specific mount point in the previous example). 
 + 
 +Start by issuing these commands in a Cygwin command prompt:
  
   cd   cd
wiki/software/winccdtlong.txt · Last modified: 2019/10/05 15:58 by dizwell