|
From: LRN <lr...@gm...> - 2011-05-09 04:14:36
|
On 08.05.2011 23:34, Earnie wrote: > stn021 wrote: >> It appears the the contents of the files in \etc are NOT important. >> My \etc\fstab always contains the line "D:\MinGW\ /mingw". >> Yet I can plug the USB-stick anywhere with different drive-letters and/or >> copy msys+etc to different drives (tried C:, D:, F:, G:) and it always >> works. No modifications necessary. Very nice :-) >> > Well /etc/fstab is the WINDOWS to POSIX directory mapper. This is the > file that the MSYS thread watching /etc cares about so that when you > change the file the mount table is refreshed. So if D:\MinGW is > available then no matter where MSYS exists, /mingw will point to > D:\MinGW. I D:\MinGW doesn't exist you will get an error during the > access of /mingw. You can make a batch file or a script that fills /etc/fstab with correct paths (since the letter of the USB drive is generally not known until you plug it) before running msys. You can even make a shell script do that, and then call `mount -a' in Msys to mount new directories. |