GNU bug report logs - #14383
cp --one-file-system / will not copy whole root filesystem

Previous Next

Package: coreutils;

Reported by: Pavel Machek <pavel <at> ucw.cz>

Date: Fri, 10 May 2013 16:05:02 UTC

Severity: wishlist

Full log


Message #13 received at 14383 <at> debbugs.gnu.org (full text, mbox):

From: Pavel Machek <pavel <at> ucw.cz>
To: Bob Proulx <bob <at> proulx.com>
Cc: 14383 <at> debbugs.gnu.org
Subject: Re: bug#14383: cp --one-file-system / will not copy whole root
	filesystem
Date: Fri, 10 May 2013 19:29:47 +0200
Hi!

> But isn't that the entire purpose of -x?  To avoid copying files on
> other file systems?
> 
> I am just not sure about having a description that is "don't copy
> files on other filesystems" and then "warning: does not copy files on
> other filesystems".
> 
> I have never liked the wording of "stay on this file system".  Usually
> describing things in the positive, saying what it does, is best.  But
> I always felt that with -x describing it in the negative, saying what
> it does not do, would be better wording.

No no, I'm saying that it will not copy data on *this* filesystem;
because other filesystem is mounted over those data.

Lets say you have this on your / (ext3):

/
/dev/foo

But your distro mounts devtmpfs over /dev, so /dev/foo is not visible,
and not copied :-(.

Not that cp can do much about that, but I tried to backup my /
filesystem, and that's exactly what happened.
 
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html




This bug report was last modified 12 years and 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.