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
Next revision
Previous revision
wiki:software:winccdtlong [2019/08/24 16:36]
dizwell [5.0 Running CCDT]
wiki:software:winccdtlong [2019/10/05 15:58] (current)
dizwell
Line 137: Line 137:
 {{ :​wiki:​software:​2019-08-08_22_15_06-local_disk_c_.png?​direct&​600 |}} {{ :​wiki:​software:​2019-08-08_22_15_06-local_disk_c_.png?​direct&​600 |}}
  
-Notice how all the directories Explorer knows about were the ones listed by the Cygwin '​ls'​ command. Sure, Cygwin shows some '​weird'​ entries such as '​$Recyle.Bin'​ which Explorer doesn'​t display usually, but all the main suspects are listed by both: '​Program Files',​ '​Windows10Upgrade'​ and so on. In other words, the environments are actually **the same**: what exists on Windows is visible to Cygwin. The reverse is also true. Try this, back in Cygwin:+Notice how all the directories Explorer knows about were the ones listed by the Cygwin '​ls'​ command. Sure, Cygwin shows some '​weird'​ entries such as '​$Recyle.Bin'​ which Explorer doesn'​t display usually, but all the main suspects are listed by both: '​Program Files',​ '​Windows10Upgrade'​ and so on. In other words, the environments are actually **the same**: what exists on Windows is visible to Cygwin. The reverse is also true.  
 + 
 +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 when mounting the directory that contains your music files. To 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 
 + 
 +The default entry you see in this file will read as follows: 
 + 
 +  none /cygdrive cygdrive binary,posix=0,​user 0 0 
 + 
 +You need to add an additional line after that which reads something like: 
 + 
 +  d:​\music\flac\classical /music ntfs binary,​noacl,​posix=0,​user 0 0 
 +   
 +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! 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 Cygwin ​command prompt:
  
   cd   cd
wiki/software/winccdtlong.1566664564.txt.gz · Last modified: 2019/08/24 16:36 by dizwell