This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

how to chroot?


Silly question: How does one successfully chroot on cygwin?  I can use it
under Linux (for example), but the variations I've tried under cygwin come
back with errors:

  ~$ chroot //c/fcn/ccc
  chroot: cannot chdir to root directory: No such file or directory

(ccc contains a copy of cygwin's /bin directory.)  I've tried
"/cygdrive/c/..." and other such patterns.  The only chroot that works is
"chroot /", which gets me to the top of the cygwin hierarchy.  My mount
table (the default) is:

  ~$ mount
  C:\cygwin\bin on /usr/bin type system (binmode)
  C:\cygwin\lib on /usr/lib type system (binmode)
  C:\cygwin on / type system (binmode)
  c: on /cygdrive/c type user (binmode,noumount)
  e: on /cygdrive/e type user (binmode,noumount)
  g: on /cygdrive/g type user (binmode,noumount)

Thanks,
  Fredrik



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]