Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen \(garbage mail\)" To: "ML CygWIN" Subject: "Automatic" mount update Date: Sat, 30 Aug 2003 20:21:03 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Below I have enclosed a bash session that has me a bit baffled Note that I have made attempts to have the active mounts saved into /cygwin.mnt (as the two first bash command printouts shows). This is meant to automate any CHANGES in the mount points between my OS changes (Dual boot: W98SE and W2K Advanced Server). {bash PPID/PID and "exit status" (s=) shown in the prompt} The /F1 and /F2 mounts seems to have "stuck", I have "umount"-ed them several times with all "tricks" and umount flags that I can think of beeing relevant - still they show up next time I launch bash! Do I need to "umount -A" in "~/.bash_logout"? How would this affect any running rxvt/bash instances? (I do suspect problems) Anyone here who can shed some light on the matter? /Hannu E K Nevalainen, B.Sc. EE Microcomputer systems - 59°16.37'N, 17°12.60'E ` -- Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ tail -8 ~/.profile if [ -f /cygwin.mnt ] then # this one contains last mounted volumes source /cygwin.mnt fi Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ cat ~/.bash_logout # ~/.bash_logout - by Hannu E K Nevalainen cd / mount -m >/cygwin.mnt echo '--- active mounts ---' cat /cygwin.mnt sleep 2 Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ ls -l ls: F1: No such file or directory ls: F2: No such file or directory total 1466 -rw-r--r-- 1 Administ 436 Aug 2 11:38 Cygwin FAQ.htm drwxr-xr-x 2 Administ 0 Aug 2 11:38 Cygwin FAQ_files/ -rw-r--r-- 1 Administ 45174 Jul 17 12:14 Cygwin Package Contributor's Guide.htm drwxr-xr-x 2 Administ 0 Jul 17 12:14 Cygwin Package Contributor's Guide_files/ drwxr-xr-x 3 Administ 0 Oct 14 2002 bin/ dr-xr-xr-x 14 0 0 Jan 1 1970 cygdrive/ -rw-r--r-- 1 Administ 443904 Apr 26 19:45 cygwin-ug.doc -rw-r--r-- 1 Administ 182432 Apr 26 00:53 cygwin-ug.html -rw-r--r-- 1 Administ 316527 Apr 26 19:46 cygwin-ug.pdf -rwxr-xr-x 1 Administ 259 Jul 21 13:18 cygwin.bat* -rw-r--r-- 1 Administ 766 Aug 29 22:54 cygwin.ico -rw-r--r-- 1 Administ 342 Aug 29 22:53 cygwin.mnt -rwxr-xr-x 1 Administ 310 Jul 21 13:16 cygwin2K.bat* drwxr-xr-x 23 Administ 0 Oct 14 2002 etc/ -rw-r--r-- 1 Administ 148120 Jul 27 00:03 faq.txt -rw-r--r-- 1 Administ 352529 Aug 8 11:52 hh.lst drwxr-xr-x 3 Administ 0 Oct 14 2002 home/ drwxr-xr-x 29 Administ 0 Oct 14 2002 lib/ -rw-r--r-- 1 Administ 496 Aug 27 19:23 log -rw-r--r-- 1 Administ 568 Aug 27 19:23 prefs_v3 drwxr-xr-x 2 Administ 0 Aug 8 12:16 sbin/ -rw-r--r-- 1 Administ 106 Aug 8 13:36 setup-problem.txt drwxr-xr-x 2 Administ 0 Aug 28 10:21 spool/ drwxr-xr-x 3 Administ 0 Oct 14 2002 tmp/ drwxr-xr-x 25 Administ 0 Oct 14 2002 usr/ drwxr-xr-x 12 Administ 0 Oct 14 2002 var/ Administrator AT P450 / bash (P)PID=(1800)2048, s=1 $ mount C:\Program\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) C:\Program\cygwin\bin on /usr/bin type system (binmode) C:\Program\cygwin\lib on /usr/lib type system (binmode) C:\Program\cygwin on / type system (binmode) \\FUJITSU1 on /F1 type system (binmode) \\FUJITSU2 on /F2 type system (binmode) c: on /cygdrive/c type system (binmode,noumount) d: on /cygdrive/d type system (binmode,noumount) e: on /cygdrive/e type system (binmode,noumount) f: on /cygdrive/f type system (binmode,noumount) h: on /cygdrive/h type system (binmode,noumount) i: on /cygdrive/i type system (binmode,noumount) r: on /cygdrive/r type system (binmode,noumount) s: on /cygdrive/s type system (binmode,noumount) t: on /cygdrive/t type system (binmode,noumount) w: on /cygdrive/w type system (binmode,noumount) Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ umount Usage: umount [OPTION] [] -A, --remove-all-mounts remove all mounts -c, --remove-cygdrive-prefix remove cygdrive prefix -h, --help output usage information and exit -s, --system remove system mount (default) -S, --remove-system-mounts remove all system mounts -u, --user remove user mount -U, --remove-user-mounts remove all user mounts -v, --version output version information and exit Administrator AT P450 / bash (P)PID=(1800)2048, s=1 $ umount -su /F1 umount: /F1: No such file or directory Administrator AT P450 / bash (P)PID=(1800)2048, s=1 $ umount -su /F2 umount: /F2: No such file or directory Administrator AT P450 / bash (P)PID=(1800)2048, s=1 $ mkdir F1 mkdir: cannot create directory `F1': No such file or directory Administrator AT P450 / bash (P)PID=(1800)2048, s=1 $ mkdir F2 mkdir: cannot create directory `F2': No such file or directory Administrator AT P450 / bash (P)PID=(1800)2048, s=1 $ id uid=500(Administrator) gid=513(user) groups=544(Administrators),513(user),545(Users) Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ getfacl . # file: . # owner: Administrator # group: user user::rwx group::r-x other:r-x mask:rwx Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ ls -ld . drwxr-xr-x 16 Administ 0 Oct 14 2002 ./ Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ umount -s /F2 Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ umount -s /F1 Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ umount -u /F2 umount: /F2: No such file or directory Administrator AT P450 / bash (P)PID=(1800)2048, s=1 $ umount -u /F1 umount: /F1: No such file or directory Administrator AT P450 / bash (P)PID=(1800)2048, s=1 $ mount C:\Program\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) C:\Program\cygwin\bin on /usr/bin type system (binmode) C:\Program\cygwin\lib on /usr/lib type system (binmode) C:\Program\cygwin on / type system (binmode) c: on /cygdrive/c type system (binmode,noumount) d: on /cygdrive/d type system (binmode,noumount) e: on /cygdrive/e type system (binmode,noumount) f: on /cygdrive/f type system (binmode,noumount) h: on /cygdrive/h type system (binmode,noumount) i: on /cygdrive/i type system (binmode,noumount) r: on /cygdrive/r type system (binmode,noumount) s: on /cygdrive/s type system (binmode,noumount) t: on /cygdrive/t type system (binmode,noumount) w: on /cygdrive/w type system (binmode,noumount) Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ mount -m >cygwin.mnt Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ cat cygwin.mnt mount -f -s -b "C:/Program/cygwin/usr/X11R6/lib/X11/fonts" "/usr/X11R6/lib/X11/fonts" mount -f -s -b "C:/Program/cygwin/bin" "/usr/bin" mount -f -s -b "C:/Program/cygwin/lib" "/usr/lib" mount -f -s -b "C:/Program/cygwin" "/" mount -s -b --change-cygdrive-prefix "/cygdrive" Administrator AT P450 / bash (P)PID=(1800)2048, s=0 $ --END OF MESSAGE-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/