From owner-freebsd-questions@FreeBSD.ORG Sat May 4 19:22:50 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 859EBB91 for ; Sat, 4 May 2013 19:22:50 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id C8126BE0 for ; Sat, 4 May 2013 19:22:49 +0000 (UTC) Received: from mart.js.berklix.net (p57BCF0CA.dip0.t-ipconnect.de [87.188.240.202]) (authenticated bits=128) by flat.berklix.org (8.14.5/8.14.5) with ESMTP id r44JLVL4004925; Sat, 4 May 2013 21:21:32 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id r44JMRT4057325; Sat, 4 May 2013 21:22:27 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.4/8.14.4) with ESMTP id r44JMGBv090833; Sat, 4 May 2013 21:22:22 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201305041922.r44JMGBv090833@fire.js.berklix.net> To: Michael Bird Subject: Re: ls(1), rm(1) - No such file or directory even though they are there. From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Sat, 04 May 2013 10:43:37 PDT." <1367689417.83465.YahooMailNeo@web120006.mail.ne1.yahoo.com> Date: Sat, 04 May 2013 21:22:16 +0200 Sender: jhs@berklix.com Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 May 2013 19:22:50 -0000 Reference: > From: Michael Bird > Reply-to: Michael Bird > Date: Sat, 4 May 2013 10:43:37 -0700 (PDT) Michael Bird wrote: > > Hi List, > > There is a rather curious problem that I have, which I haven't encountered before. > I make regular backups of my packages and put them onto an external usb drive, > which is mounted read/write via sysutils/fusefs-ntfs. > > > Now these backups don't exist no more and at the same time they are there. That > is to say, upon issuing ls and/or rm on the command line I get rather strange results. > Here are some of my outputs: > > > mike@machine1:/mnt/Programs/FreeBSD/91binaries/packages % ls > [a long list that has been cut out] > zip-3.0.tbz > mike@machine1:/mnt/Programs/FreeBSD/91binaries/packages % ls zip-3.0.tbz > ls: zip-3.0.tbz: No such file or directory > > Some have files that (don't) exist have i-nodes and some haven't: > > mike@machine1:/mnt/Programs/FreeBSD/91binaries/packages % ls -i zip-3.0.tbz > ls: zip-3.0.tbz: No such file or directory > mike@machine1:/mnt/Programs/FreeBSD/91binaries/packages % ls -i linux-f10-tiff-3.8.2.tbz > 2469 linux-f10-tiff-3.8.2.tbz > > Running rm on the folder I get "No such file or directory" for every single entry: > > mike@machine1:/mnt/Programs/FreeBSD/91binaries/packages % rm * > [a long list that has been cut out] > rm: linux-f10-tiff-3.8.2.tbz: No such file or directory > > Yet again some of the files can be test via gzip and some can't: > > mike@machine1:/mnt/Programs/FreeBSD/91binaries/packages % gzip -t linux-f10-tiff-3.8.2.tbz > mike@machine1:/mnt/Programs/FreeBSD/91binaries/packages % echo $? > 0 > mike@machine1:/mnt/Programs/FreeBSD/91binaries/packages % gzip -t zip-3.0.tbz > gzip: can't stat: zip-3.0.tbz: No such file or directory > mike@machine1:/mnt/Programs/FreeBSD/91binaries/packages % > > > Looks like the this part of the file system is corrupt. I also booted the drive up under > Windows and got the same result. The files are there, but can't be read, overwritten > or deleted. > > > What does the list say about the above mentioned? A better list to ask on: freebsd-fs@freebsd.org I dont know if NTFS even has I nodes, or what one might expect ls -i to sensibly return for that. Obviously your FS is broken if both FreeBSD & MS are complaining, so fix it ! Either let MS fix it, or fuse-ntfs if there's a checker (cant remember) Or failing that remove files, & remake the FS. I've seen other problems with both methods of accessing NTFS, only reason I use NTFS is when I Have to. Making backups I'd never call a "have to use NTFS" reason, so I never would for that, I'd use UFS/FFS FS ! Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with "> ". Send plain text. No quoted-printable, HTML, base64, multipart/alternative.