X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20081107131108.GS6478@calimero.vinschen.de> References: <1KyQ6X-0Eq5dw0 AT fwd11 DOT aul DOT t-online DOT de> <20081107131108 DOT GS6478 AT calimero DOT vinschen DOT de> Date: Fri, 07 Nov 2008 15:41:16 +0100 Reply-To: "Christian Franke" To: cygwin AT cygwin DOT com X-UMS: email X-Mailer: TOI Kommunikationscenter V9-2-23 Subject: Re: Mount of VSS volumes (//?/GLOBALROOT/...) does not work From: "Christian Franke" Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Message-ID: <1KySWS-1YxwGG0@fwd02.aul.t-online.de> X-ID: GD343EZOrhoLNHnIzU+St8wpd5XuzJ3u5Dhkh4DipyxN1+D-jc1jsGrdzEAi8ODwph AT t-dialin DOT net X-TOI-MSGID: e54d770e-d9f4-411d-b047-243c048ab5d4 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Corinna Vinschen wrote: > On Nov 7 13:06, Christian Franke wrote: > > According to > > http://sourceware.org/ml/cygwin/2007-05/msg00359.html > > http://sourceware.org/ml/cygwin-patches/2006-q4/msg00008.html > > Cygwin includes support to mount a //?/GLOBALROOT/... path > > No, it doesn't. It allows to *access* the path, but the mount call > follows a somewhat different route. You can only access the path > directly (a concenssion to a necessity which has no POSIX equivalent) > or, as you did, map the VSS volume to a drive letter. The patch is > not in 1.5.25, btw., only in 1.7.0. > Thanks for clarification. The access to the path works, except the access to the root dir of the volume. It appears as a regular file which apparently provides raw read access to the partition: $ ls -l '//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy1' -rw-r--r-- 1 ... 0 Dec 1 2006 //?/.../HarddiskVolumeShadowCopy1 $ xxd '//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy1' 0000000: eb52 904e 5446 5320 2020 2000 0208 0000 .R.NTFS ..... ... $ ls -l '//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy1/' ls: cannot access //?/.../HarddiskVolumeShadowCopy1/: Not a directory $ ls -l '//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy1/.' ls: cannot access //?/.../HarddiskVolumeShadowCopy1/.: Not a directory Files/Dirs below the root dir can be accessed: $ ls -l '//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy1/boot.ini' -rwx------+ 1 ... 429 Jun 12 16:10 //?/.../...VolumeShadowCopy1/boot.ini $ ls -l '//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy1/cygwin' drwx------+ 1 ... 0 Oct 31 16:14 bin drwx------+ 1 ... 0 Sep 12 2007 cygdrive -rwx------+ 1 ... 209 Jun 19 2006 cygwin.bat ... With a drive mapping, the root dir can be accessed: $ dosdev v: '\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1' $ ls -ld /cygdrive/v drwxrwxr-x+ 1 ... 0 Nov 6 14:03 /cygdrive/v $ ls -l /cygdrive/v -rwx------+ 1 ... 429 Jun 12 16:10 boot.ini ... Christian -- 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/