delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/26/08:54:30

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; q=dns; s=default; b=bXx
7G+6Q2NvEpflTYufRFfUMnlAlTRA9bihaYmqP/7B6+En7yvZgJ5Rd9SAmkkHoxu6
8dqLkRWCjOkmD0zpY+6CAcxXkkgZHW9OOENQ9Dvdijpt7ivJA8IHN9hhh2Odkdap
j1DN/1dhWiFqhQO0rnufXe+qKThIVVPvYT7x4VA0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; s=default; bh=GUSUXXVJ2
lOZlu9y7zCDuocuDiQ=; b=XCRIQtTOhofeGog5lFBVv9Tx4qETxbdmqrBPFo6po
aD+a/GdSWlFNvc8mBXoyfNI0CW9qHepG+xgKzKuUb+xHIDf2pibReWYQgsDKau9Y
rRF7vra1PFTVF3InMsdBwfcnFr0zRuZUOtLdzQt91SoVx7WaLFSsVvdAebGBunnQ
+g=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.9 required=5.0 tests=AWL,BAYES_50 autolearn=ham version=3.3.2
X-HELO: server1.lifelinedesign.ca
Message-ID: <55140163.1080703@brantaero.com>
Date: Thu, 26 Mar 2015 08:53:55 -0400
From: Kevin Field <kev AT brantaero DOT com>
User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: "cannot create hard link X to Y: Operation not permitted" on ext2fsd-mounted ext2 drive from cygwin cp -al
X-Get-Message-Sender-Via: server1.lifelinedesign.ca: authenticated_id: kev AT brantaero DOT com
X-From-Rewrite: unmodified, already matched
X-IsSubscribed: yes

Hi everyone.

This is a cross-post from SuperUser.com .  If you're a StackExchange 
member please feel free to answer it at 
http://superuser.com/questions/894015/cannot-create-hard-link-x-to-y-operation-not-permitted-on-ext2-drive-from-cyg

In one comment you'll see there, someone has proposed that cygwin will 
only try NTFS hardlinks, even if the mounted drive is ext2 via ext2fsd. 
  Maybe someone here could confirm that, or if it's not true...help me 
find a solution :)  Thanks, -Kev

-------------------

/cygdrive/d/ is a USB hard disk formatted as ext2 and mounted with 
[ext2fsd][1].

When I try `cp -al /cygdrive/d/X /cygdrive/d/Y` where X is a file, I get 
the error in the title.

Things I've Tried/Verified
---

I did `chmod -R 777 /cygdrive/d` but I still get the same result.

I am running as local administrator, who is the owner of /cygdrive/d.

X is a file, not a directory.

Windows Server 2012 R2 running cygwin64 current as of today.

It's ext2 because I can, for example, `touch 
/cygdrive/d/filename_with_a_colon:in_it` and it works and I can see it 
with `ls`.  Not to mention, it says so in ext2fsd and the Windows Disk 
Manager.

Ironically, the same syntax on an NTFS drive works fine and creates an 
NTFS hardlink.

I've also tried reformatting the drive as ext3, with the same results. 
I *had* figured on ext2 being more likely to be fully supported on 
account of it being older than ext3/4, but I guess it doesn't make a 
difference.

The question
--

How can I create simple ext2 hardlinks with cygwin?


   [1]: http://www.ext2fsd.com/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019