From: "Lee D. Rothstein" <lee@veritech.com>
To: cygwin@Cygwin.com
Subject: Mount Confusion -- the tallest pique in the world? ;-)
Date: Thu, 30 Oct 2003 20:20:00 -0000 [thread overview]
Message-ID: <6.0.0.20.0.20031030083220.071a6320@rogue.codemeta.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]
Either Cygwin or I be confused. (I'm betting on "I". ;-))
I have deleted '/tmp' ('d:/Cygwin/tmp' -- using Explorer)
and issued: 'umount /tmp' and 'mount 'e:\tmp /tmp' repeatedly.
All the other mounts to '/' appear in an 'ls' of '/',
but '/tmp' ('e:/tmp'), does not.
While the apps seem to find 'e:/tmp', should I be worried?
Prior to my doing any of the above (w/ Cygwin root at
'c:/_Programs/Cygwin'), I've had recurring instances
of something (apps?, 'setup.exe?, what?) creating 'tmp'
and more frequently 'var' on both my 'c:' and 'e:' drives.
This problem seems to have subsided since I moved the
Cygwin root directory from 'c:/_Programs/Cygwin'
to D:/Cygwin'.
Also, after I moved Cygwin, despite changing all the
references in the profile and Windows environment variables,
*and* reinstalling the whole of Cygwin, "Cygwin" "insisted"
on looking at the C/_Programs... : root rather than the
D:/Cygwin... directory
Anybody know what's causing this?
Note that at the end of the attached 'cycheck -shv', there is
the following error message:
cygcheck: dump_sysinfo: GetVolumeInformation() failed: 1
which seems to be coincidental when it checks the 'a:/' floppy drive.
Thanks,
Lee
--
Lee D. Rothstein -- lee@veritech.com
VeriTech -- 603-424-2900
7 Merry Meeting Drive
Merrimack, NH 03054-2934
[-- Attachment #2: profile#2003-10-30#09.33.51 --]
[-- Type: application/octet-stream, Size: 11852 bytes --]
#!/usr/bin/bash
# Some resources...
# Customizing Your Shell: http://www.dsl.org/cookbook/cookbook_5.html#SEC69
# Consistent BackSpace and Delete Configuration:
# http://www.ibb.net/~anne/keyboard.html
# The Linux Documentation Project: http://www.tldp.org/
# The Limux Cookbook: http://www.tldp.org/LDP/linuxcookbook/html/
# Setup some default paths. Note that this order will allow user installed
# software to override 'system' software
# If you wish to change the path for all users, it is recommended you edit
# /etc/bash.bashrc
# If you wish to change the path on a user by user basis, it is recommended you
# edit ~/.bashrc
#
# Cygwin Bash profile
#
# Goes in the ''/etc'' directory
#
# Example of cygpath with textpad (http://textpad.com) which
# is semi-hip Win-32 app.
#
# textpad $(cygpath --mixed $SCRIPTS/$1)
# 'textpad' accepts '/' in lieu of '\' but doesn't like
# '/cygdrive...' or other Cygwin '/' rooted references in lieu
# of 'c:/', ... 'z:/'
#
# 2003-04-21
# export CYGWIN="nobinmode ntsec tty"
export CYGWIN=""
# 2003-02-24
# Changes to bin required by use of 'rxvt' for shell windows
# - needed null-based $PATH definition to avoid doubling
# '$PATH' every time 'bash' ('rxvt') was invoked from a
# 'bash' window
#for drive in c d e f g h x y a s ; do umount ${drive}:\\ ; mount ${drive}:\\ /z${drive} ; done
umount 'e:\\tmp' ; mount 'e:\\tmp' /tmp
export PATH="/usr/bin:/etc:."
export PATH="$PATH:/usr/X11R6/bin"
export PATH="$PATH:/usr/sbin"
export PATH="$PATH:/zc/_Programs/ACDSee"
export PATH="$PATH:/zc/_Programs/CLI/bin"
export PATH="$PATH:/zc/_Programs/CLI/InfoZip"
export PATH="$PATH:/zc/_Programs/CLI/List"
export PATH="$PATH:/zc/_Programs/CLI/Net_Bin"
export PATH="$PATH:/zc/_Programs/CLI/RAR32"
export PATH="$PATH:/zc/_Programs/ImageSpy"
export PATH="$PATH:/zc/_Programs/J2v1.3.1/bin"
export PATH="$PATH:/zc/_Programs/NetTerm"
export PATH="$PATH:/zc/_Programs/TrueType_Renamer"
export PATH="$PATH:/zc/_Programs/WIN_BIN_32"
export PATH="$PATH:/zc/Progra~1/Intern~1"
export PATH="$PATH:/zc/progra~1/micros~2/office"
export PATH="$PATH:/Scripts"
export PATH="$PATH:/zc/_Programs/TextPad"
export PATH="$PATH:/zc/_Programs/CLI/FOSS/bin"
export PATH="$PATH:/zc/WINNT/system32/WBEM"
export PATH="$PATH:/zc/WINNT/system32"
export PATH="$PATH:/zc/WINNT"
export PATH="$PATH:/{h}/_Scripts"
unset DOSDRIVE
unset DOSDIR
echo "---"
echo "Mounts:"
mount
echo "---"
export USER="`id -un`"
echo "User is: " "$USER"
for i in /etc/profile.d/*.sh ; do
if [ -f $i ]; then
. $i
fi
done
export MANPATH="/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man"
export MANPATH="$MANPATH:/usr/ssl/man"
export MANPATH="$MANPATH:/usr/X11R6/man"
export MANPATH="$MANPATH:/usr/X11R6/share/man"
export MANPATH="$MANPATH:/usr/src/cvs-1.11.0/man"
export MANPATH="$MANPATH:/usr/src/diffutils-2.8.4-1/man"
export MANPATH="$MANPATH:/usr/src/fileutils-4.1-2/man"
export MANPATH="$MANPATH:/usr/src/ghostscript-7.05/man"
export MANPATH="$MANPATH:/usr/src/groff-1.18.1-2/man"
export MANPATH="$MANPATH:/usr/src/lilypond-2.0.1/Documentation/man"
export MANPATH="$MANPATH:/usr/src/man-1.5j-2/man"
export MANPATH="$MANPATH:/usr/src/opengl-1.1.0/glut-3.7.3/man"
export MANPATH="$MANPATH:/usr/src/procmail-3.22-8/man"
export MANPATH="$MANPATH:/usr/src/rcs-5.7-3/man"
export MANPATH="$MANPATH:/usr/src/sh-utils-2.0.15-4/man"
export MANPATH="$MANPATH:/usr/src/sunrpc-4.0-1/man"
export MANPATH="$MANPATH:/usr/src/sunrpc-4.0-1/secure_rpc/man"
export MANPATH="$MANPATH:/usr/src/SWI-Prolog-5.2.6-1/man"
export MANPATH="$MANPATH:/usr/src/SWI-Prolog-5.2.6-1/packages/xpce/man"
export MANPATH="$MANPATH:/usr/src/SWI-Prolog-5.2.6-1/packages/xpce/prolog/lib/man"
export MANPATH="$MANPATH:/usr/src/sysvinit-2.84-4/man"
export MANPATH="$MANPATH:/usr/src/tetex-bin-2.0.2-2/libs/ncurses/man"
export MANPATH="$MANPATH:/usr/src/tetex-bin-2.0.2-2/texk/web2c/man"
export INFOPATH="/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info"
export INFOPATH="$INFOPATH:/lib/db/info"
export INFOPATH="$INFOPATH:/usr/autotool/devel/share/info"
export INFOPATH="$INFOPATH:/usr/autotool/stable/share/info"
export INFOPATH="$INFOPATH:/usr/lib/db/info"
export INFOPATH="$INFOPATH:/usr/src/gcc-3.2-3/libjava/gnu/java/beans/info"
export INFOPATH="$INFOPATH:/usr/src/python-2.2.2-7/Doc/info"
export INFOPATH="$INFOPATH:/usr/src/python-2.2.3-2/Doc/info"
export INFOPATH="$INFOPATH:/usr/src/python-2.3-2/Doc/info"
export INFOPATH="$INFOPATH:/usr/src/SWI-Prolog-5.2.6-1/packages/xpce/man/info"
export INFOPATH="$INFOPATH:/usr/src/tetex-bin-2.0.2-2/utils/texinfo/info"
export INFOPATH="$INFOPATH:/usr/src/texinfo-4.2-4/info"
export TZ=EST5EDT
export MAKE_MODE="unix" # Default to unix make mode
# Recommended that cvs uses ssh for it's remote shell
# environment
export CVS_RSH="/bin/ssh"
# Patches to Cygwin always appreciated ;)
# export CVSROOT=":pserver:anoncvs@sources.redhat.com:/cvs/src"
# Set Prompt
# Original to be used as reference
# export PS1='\[\033]0;\w\007
# \033[32m\]\u@\h \[\033[33m\w\033[0m\]
# $ '
export PS1='\[\033]0;\w\007 \d \T \u@\h
\033[32m\] \[\033[33m\w\033[0m\]
$ '
# Define default printer
case "`uname -s`" in
CYGWIN_NT-*)
PRINTER="`regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device' | sed 's/,.*$//'`"
;;
CYGWIN_9?-*)
PRINTER="`regtool -q get '\config\System\CurrentControlSet\Control\Print\Printers\Default'`"
;;
esac
echo "---"
echo "kernel-name nodename kernel-release kernel-version machine-HW-name processor-type hardware-platform OS"
uname -a
# Make sure we start in home
cd "$HOME"
# Check to see if mkpasswd/mkgroup needs to be run try and cut down the emails
# about this on the lists!
# If this message keeps appearing and you are sure it's a mistake (ie, don't
# email about it!), comment out the test below.
case "`id -ng`" in
mkpasswd )
echo "Your group is currently \"mkpasswd\". This indicates that"
echo "the /etc/passwd (and possibly /etc/group) files should be rebuilt."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l [-d] > /etc/passwd"
echo "mkgroup -l [-d] > /etc/group"
echo "Note that the -d switch is necessary for domain users."
;;
mkgroup )
echo "Your group is currently \"mkgroup\". This indicates that"
echo "the /etc/group (and possibly /etc/passwd) files should be rebuilt."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l [-d] > /etc/passwd"
echo "mkgroup -l [-d] > /etc/group"
echo "Note that the -d switch is necessary for domain users."
;;
mkgroup_l_d )
echo "Your group name is currently \"mkgroup_l_d\". This indicates that not"
echo "all domain users and groups are listed in the /etc/passwd and"
echo "/etc/group files."
echo "See the man pages for mkpasswd and mkgroup then, for example, run"
echo "mkpasswd -l -d > /etc/passwd"
echo "mkgroup -l -d > /etc/group"
echo
echo "This message is only displayed once (unless you recreate /etc/group)"
echo "and can be safely ignored."
# only display the above once
cp -f /etc/group ~/group.mkgroup_l_d \
&& ( [ -w /etc/group ] || chmod --silent a+w /etc/group ; )\
&& sed -e 's/^mkgroup_l_d/mkgroup-l-d/' ~/group.mkgroup_l_d > /etc/group \
&& chmod --silent --reference=/etc/passwd /etc/group
rm -f ~/group.mkgroup_l_d
;;
esac
# Make shell case-insensitive for file system
shopt -s nocaseglob
# ********************************************************************
# Environment Variable Sets
# ********************************************************************
# ====================================================================
# Top Level -- Master Directories
export LEE=Administrator
export KNOWLEDGE_DUMP=/zg/Knowledge_Dump
export MEDIA_DUMP=/zg/Media_Dump
export SOFTWARE_DUMP=/ze/Software_Dump
export EMAIL_MESSAGES=/ze/eMail_Messages
export KNOWLEDGE_BASE=/ze/Knowledge_Archive
export DOWNLOAD="/ze/Download"
export DIRECTORY="/ze/Directory"
export DISCARDS="/zd/Auto-Recover"
export PF="c:\progra~1"
export PROGRAMS="/zc/_Programs"
export CYGWIN_ROOT="D:/Cygwin"
export PROJECTS="/ze/Work/Projects"
export ALMANAC_DATA="/ze/Directory/Almanac_Data"
export POP="/ze/Directory/POP--People_Organizations_Places"
export ER="/zg/E"
export CLIPART="$MEDIA_Dump/Clipart"
export _CLIPART="$DOWNLOAD/Clipart"
export EUDORA_P="$PROGRAMS/Eudora"
export EUDORA_D="$EMAIL_MESSAGES/Eudora"
# export typeset -l SYSTEM_DRIVE="$(echo ${systemroot}|sed 's/^\(.\).*$/\1/')"
export SYSTEM_DRIVE="c"
export UTILITIES="$PROGRAMS"
export CLI="$UTILITIES/CLI"
export RAR32="$CLI/RAR32"
export LIST="$CLI/List"
export MS_BIN="$CLI/MS_bin"
export USR="$CLI/usr"
export USR_BIN="$USR/bin"
export WIN_BIN_32="$UTILITIES/WIN_BIN_32"
export TRUETYPE_RENAMER="$UTILITIES/TrueType_Renamer"
export INFO_ZIP="$CLI/InfoZip"
export IMAGE_TOOLS="$PROGRAMS"
export ACDSEE="$IMAGE_TOOLS/ACDSee"
export NETTERM="$PROGRAMS/NetTerm"
export TMP="/ze/tmp"
export TMPDIR="$TMP"
export BACKUP="/zf/_B"
export SCRIPTS="/Scripts"
export S="$SCRIPTS"
export EDITOR="TextPad"
export EDITOR_DIR="$UTILITIES/$EDITOR"
export JAVAHOME="/zc/_Programs/J2v1.3.1"
# Here is how HOME is set, in order of priority, when starting from Windows
# 1) From existing HOME in the Windows environment, translated to a Posix path
# 2) from /etc/passwd, if there is an entry with a non empty directory field
# 3) from HOMEDRIVE/HOMEPATH
# 4) / (root)
export HOME="/Home/$LEE"
export GO_DIR="$HOME/Go"
export GO_FILE="$GO_DIR/go.txt"
export PF="/zc/progra~1"
export MS_OFFICE_BIN="$PF/micros~2/office"
export DOWNLOAD="/zd/Download"
export ARCS="$DISCARDS"
# Data & Parameters
export DIRECTORY="/ze/Directory"
export PROJECTS="/ze/Work/Projects"
export POP="/ze/Directory/POP--People_Organizations_Places"
echo "---"
echo '$PATH is: ' $PATH
# ********************************************************************
ac() {
acdsee32.exe $(cygpath --windows $PWD) &
}
assoc() {
cmd /c assoc $*
}
cls() {
cmd /c cls
}
d() {
for name in ${1}*
do
if [[ -d "$name" ]]
then
cd "./$name"
break
fi
done
}
dir() {
cmd /c dir $* /X # including 8.3 filenames
}
e() {
if [[ -z $1 ]]
then
explorer $(cygpath --dos $PWD) &
else
explorer $(cygpath --dos $1) &
fi
}
ftype() {
cmd /c ftype $*
}
format() {
command /c format $*
}
g() {
if [ -z "$1" ]
then
return
fi
while read key dir # Reading from go parameter file
do
[ "$key" = "#" ] && continue
if [ "$key" = "$1" ]
then
cd "$dir"
return
fi
done <$GO_FILE
echo "g: Key '$1' not in $GO_FILE"
}
dg() {
g $1
shift
for dir in $*
do
. d $dir
done
}
lis() {
list /s
}
nt() {
netterm &
}
e_oh() {
c:/_Programs/OO/program/oooweb.exe $(cygpath --windows "$1") &
}
e_ow() {
c:/_Programs/OO/program/ooowriter.exe $(cygpath --windows "$1") &
}
path() {
cmd /c path
}
po() {
popd
}
pu() {
g $1
pushd .
}
psp() {
psp.exe $(cygpath --dos "$1") &
}
rd() {
cmd /c rd $*
}
ren() {
cmd /c ren $*
}
tp() {
textpad $(cygpath --mixed $1) &
}
ttr() {
TrueType_Renamer $(cygpath --dos ./*) &
}
ww() {
WinWord.exe $(cygpath --dos $1) &
}
ver() {
cmd /c ver
}
xl() {
excel.exe $(cygpath --dos $1) &
}
export -f ac
export -f assoc
export -f cls
export -f d
export -f dir
export -f e
export -f ftype
export -f format
export -f g
export -f dg
export -f lis
export -f nt
export -f e_oh
export -f e_ow
export -f path
export -f po
export -f pu
export -f psp
export -f rd
export -f ren
export -f tp
export -f ttr
export -f ww
export -f ver
export -f xl
set +x
cd /
test -f ./.bashrc && . ./.bashrc
#eval `ssh-agent`
#ssh-add
echo "---"
echo "Date:" "$(date)"
echo "Time System Up:" "$(uptime)"
echo "---"
fortune
echo "---"
[-- Attachment #3: cygcheck#2003-10-30#09.16.41.txt.bz2 --]
[-- Type: application/octet-stream, Size: 8439 bytes --]
[-- Attachment #4: Type: text/plain, Size: 218 bytes --]
--
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/
next reply other threads:[~2003-10-30 18:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-30 20:20 Lee D. Rothstein [this message]
2003-10-31 18:42 ` Igor Pechtchanski
2003-11-01 18:39 ` Lee D. Rothstein
2003-11-01 20:27 ` Igor Pechtchanski
2003-11-01 21:57 ` Mount Confusion -- the tallest pique in the world! Lee D. Rothstein
2003-11-02 2:35 ` Igor Pechtchanski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6.0.0.20.0.20031030083220.071a6320@rogue.codemeta.com \
--to=lee@veritech.com \
--cc=cygwin@Cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).