Re: Problem selecting options for cp command

2016-09-05 Thread Lars Noodén
On 09/05/2016 05:21 PM, Richard Owlett wrote: > "archive" had brought up mental image of dusty back rooms where things > were being preserved for posterity. Not making a copy to actually be used. > > Someone had suggested rsync but that has too many options for me to > bungle. "cp" may be slower b

Re: Problem selecting options for cp command

2016-09-05 Thread Richard Owlett
On 9/5/2016 7:46 AM, Mark Fletcher wrote: On Mon, Sep 5, 2016 at 9:30 PM Richard Owlett mailto:rowl...@cloud85.net>> wrote: I attempted to copy contents of one partition to another using cp -R /media/richard/myrepo /media/richard/test /media/richard/myrepo is a hard disk part

Re: Problem selecting options for cp command

2016-09-05 Thread Jonathan Dowland
On Mon, Sep 05, 2016 at 08:25:37AM -0500, Richard Owlett wrote: > That may have been the problem. It's possible the flash drive HAD BEEN > formatted FAT-32. No way to tell now as I brute forced wiped drive by having > gparted format it as ext2. If you are going to put an extX family filesystem on

Re: Problem selecting options for cp command

2016-09-05 Thread Richard Owlett
On 9/5/2016 7:55 AM, Henrique de Moraes Holschuh wrote: On Mon, 05 Sep 2016, Richard Owlett wrote: I received "illegal operation" error messages as symbolic links were encountered. That means the target filesystem does not support symlinks. That may have been the problem. It's possible the

Re: Problem selecting options for cp command

2016-09-05 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Sep 05, 2016 at 09:55:46AM -0300, Henrique de Moraes Holschuh wrote: > On Mon, 05 Sep 2016, Richard Owlett wrote: > > I received "illegal operation" error messages as symbolic links were > > encountered. > > That means the target filesystem do

Re: Problem selecting options for cp command

2016-09-05 Thread Thomas Schmitt
Hi, Richard Owlett wrote: > /media/richard/test is a USB flash drive > I received "illegal operation" error messages as symbolic links were > encountered. Maybe the filesystem is of a type which does not support symbolic links ? $ cp -R ./test/softlinks /mnt/fat cp: cannot create symbolic

Re: Problem selecting options for cp command

2016-09-05 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Sep 05, 2016 at 08:43:44AM -0400, Patrick Wiseman wrote: > On Mon, Sep 5, 2016 at 8:29 AM, Richard Owlett wrote: > > > I attempted to copy contents of one partition to another using > >cp -R /media/richard/myrepo /media/richard/test > > >

Re: Problem selecting options for cp command

2016-09-05 Thread Henrique de Moraes Holschuh
On Mon, 05 Sep 2016, Richard Owlett wrote: > I received "illegal operation" error messages as symbolic links were > encountered. That means the target filesystem does not support symlinks. -- Henrique Holschuh

Re: Problem selecting options for cp command

2016-09-05 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Sep 05, 2016 at 07:29:52AM -0500, Richard Owlett wrote: > I attempted to copy contents of one partition to another using >cp -R /media/richard/myrepo /media/richard/test > > /media/richard/myrepo is a hard disk partition > /media/richard/t

Re: Problem selecting options for cp command

2016-09-05 Thread Dan Purgert
uot; error messages as symbolic links > were encountered. > "man cp" was too terse to be illuminating. > [snip] > > What option(s) should I be using? > Should I be looking at "dd" rather than "cp"? > [snip] Using 'dd' may work, though

Re: Problem selecting options for cp command

2016-09-05 Thread Mark Fletcher
On Mon, Sep 5, 2016 at 9:30 PM Richard Owlett wrote: > I attempted to copy contents of one partition to another using > cp -R /media/richard/myrepo /media/richard/test > > /media/richard/myrepo is a hard disk partition > /media/richard/test is a USB flash drive > > I received "illegal opera

Re: Problem selecting options for cp command

2016-09-05 Thread Patrick Wiseman
On Mon, Sep 5, 2016 at 8:29 AM, Richard Owlett wrote: > I attempted to copy contents of one partition to another using >cp -R /media/richard/myrepo /media/richard/test > > /media/richard/myrepo is a hard disk partition > /media/richard/test is a USB flash drive > I think what you want is t

Problem selecting options for cp command

2016-09-05 Thread Richard Owlett
I attempted to copy contents of one partition to another using cp -R /media/richard/myrepo /media/richard/test /media/richard/myrepo is a hard disk partition /media/richard/test is a USB flash drive I received "illegal operation" error messages as symbolic links were encountered. "man cp"

Re: Speedup cp command?

2016-08-24 Thread Thomas Schmitt
Hi, i wrote: > >xorriso -osirrox on:sort_lba_on:auto_chmod_on:o_excl_off \ Richard Owlett wrote: > That works nicely. xorriso packs them up, xorriso packs them out. > Advantage over cp is progress messages. It's more entertaining than watching cp -r. :)) In case one prefers silent operat

Re: Speedup cp command?

2016-08-24 Thread Richard Owlett
On 8/24/2016 6:09 AM, Thomas Schmitt wrote: Hi, the proposed xorriso -extract run fails on mounted media unless the -osirrox parameter string contains ":o_excl_off" I.e.: xorriso -osirrox on:sort_lba_on:auto_chmod_on:o_excl_off \ -indev /dev/cdrom \ -extract / /med

Re: Speedup cp command?

2016-08-24 Thread Thomas Schmitt
Hi, > for a DVD (but not a CD), I think just cat without isosize > would work as well. Only for DVD-R[W] written with write type DAO and even that depends on the burn program used. DVD have a natural chunk size of 32 KiB. Only DAO respects your wish if you send smaller chunks. Overwritable media

Re: Speedup cp command?

2016-08-24 Thread Nicolas George
L'octidi 8 fructidor, an CCXXIV, Thomas Schmitt a écrit : > dd if=/dev/cdrom bs=1M count=$blocks of=/media/richard/myisos/dvd_1.iso Useless use of dd. head -c will perform as well, without the need for arithmetic. And, for a DVD (but not a CD), I think just cat without isosize would work as well

Re: Speedup cp command?

2016-08-24 Thread Thomas Schmitt
Hi, the proposed xorriso -extract run fails on mounted media unless the -osirrox parameter string contains ":o_excl_off" I.e.: xorriso -osirrox on:sort_lba_on:auto_chmod_on:o_excl_off \ -indev /dev/cdrom \ -extract / /media/richard/myrepository/dvd_1 Else you will see a

Re: Speedup cp command?

2016-08-24 Thread Thomas Schmitt
Hi, Richard Owlett wrote: > I used > cp -R /media/cdrom0 /media/richard/myrepository/dvd_1 > It gave me what I wanted [*N.B.* I did not want dvd_1.iso] > It was SLOW. An average DVD+RW can be read at about 10 MB/s average speed. That would be about 7 minutes. Reading usually is slower in the in

Re: Speedup cp command?

2016-08-23 Thread David Wright
On Tue 23 Aug 2016 at 17:23:31 (-0400), Greg Wooledge wrote: > On Tue, Aug 23, 2016 at 04:16:42PM -0500, Richard Owlett wrote: > > Thanks. I'll try it as soon as copy of DVD#2 ends. > > What's special about a loop mount in this circumstance? As I read > > the rsync man page it was pretty similar t

Re: Speedup cp command?

2016-08-23 Thread Nicolas George
> On Tue, Aug 23, 2016 at 03:18:30PM -0500, Richard Owlett wrote: > > I'm copying Debian distribution DVDs. > > I used > > cp -R /media/cdrom0 /media/richard/myrepository/dvd_1 > > > > It gave me what I wanted [*N.B.* I did not want dvd_1.iso] > > It was SLOW. Optical media are « SLOW ». You ca

Re: Speedup cp command?

2016-08-23 Thread Andrew M.A. Cater
On Tue, Aug 23, 2016 at 04:16:42PM -0500, Richard Owlett wrote: > On 8/23/2016 4:05 PM, Andrew M.A. Cater wrote: > >On Tue, Aug 23, 2016 at 03:18:30PM -0500, Richard Owlett wrote: > >>I'm copying Debian distribution DVDs. > >>I used > >> cp -R /media/cdrom0 /media/richard/myrepository/dvd_1 > >>

Re: Speedup cp command?

2016-08-23 Thread Richard Owlett
On 8/23/2016 4:23 PM, Greg Wooledge wrote: On Tue, Aug 23, 2016 at 04:16:42PM -0500, Richard Owlett wrote: Thanks. I'll try it as soon as copy of DVD#2 ends. What's special about a loop mount in this circumstance? As I read the rsync man page it was pretty similar to cp and it had accepted a pla

Re: Speedup cp command?

2016-08-23 Thread Greg Wooledge
On Tue, Aug 23, 2016 at 04:16:42PM -0500, Richard Owlett wrote: > Thanks. I'll try it as soon as copy of DVD#2 ends. > What's special about a loop mount in this circumstance? As I read > the rsync man page it was pretty similar to cp and it had > accepted a plain automount [I'm on Jessie with Mat

Re: Speedup cp command?

2016-08-23 Thread Richard Owlett
On 8/23/2016 4:05 PM, Andrew M.A. Cater wrote: On Tue, Aug 23, 2016 at 03:18:30PM -0500, Richard Owlett wrote: I'm copying Debian distribution DVDs. I used cp -R /media/cdrom0 /media/richard/myrepository/dvd_1 It gave me what I wanted [*N.B.* I did not want dvd_1.iso] It was SLOW. The man pa

Re: Speedup cp command?

2016-08-23 Thread Andrew M.A. Cater
On Tue, Aug 23, 2016 at 03:18:30PM -0500, Richard Owlett wrote: > I'm copying Debian distribution DVDs. > I used > cp -R /media/cdrom0 /media/richard/myrepository/dvd_1 > > It gave me what I wanted [*N.B.* I did not want dvd_1.iso] > It was SLOW. > The man page for rsync suggested that it could

Speedup cp command?

2016-08-23 Thread Richard Owlett
I'm copying Debian distribution DVDs. I used cp -R /media/cdrom0 /media/richard/myrepository/dvd_1 It gave me what I wanted [*N.B.* I did not want dvd_1.iso] It was SLOW. The man page for rsync suggested that it could do it faster. Can it? If so, what is correct syntax to get the same result as

Re: About the `-u' option of `cp' command

2011-09-03 Thread Andrew McGlashan
Hello, Rodolfo Medina wrote: Hallo, Debian users. In `cp' man it is said: -u, --update copy only when the SOURCE file is newer than the destination file or when the destination file is missing Why not use rsync for this? Cheers -- Kind Regards AndrewM Andre

Re: About the `-u' option of `cp' command

2011-09-03 Thread Ivan Shmakov
> Sven Joachim writes: > On 2011-09-03 09:58 +0200, Rodolfo Medina wrote: […] >> Now, it happens sometimes to me that, even with `-u', `cp' will copy >> the file also when it isn't newer at all than the destination file, >> as here: >> $ ls -lh ing.tex /mnt/pendrive2/ing.tex >> -r

Re: About the `-u' option of `cp' command

2011-09-03 Thread Sven Joachim
On 2011-09-03 09:58 +0200, Rodolfo Medina wrote: > In `cp' man it is said: > > -u, --update > copy only when the SOURCE file is newer than the destination > file or when the destination file is missing > > > Now, it happens sometimes to me that, even with `-u', `cp'

About the `-u' option of `cp' command

2011-09-03 Thread Rodolfo Medina
Hallo, Debian users. In `cp' man it is said: -u, --update copy only when the SOURCE file is newer than the destination file or when the destination file is missing Now, it happens sometimes to me that, even with `-u', `cp' will copy the file also when it isn't ne

Re: Using the cp command.

2004-06-27 Thread Bob Proulx
alex wrote: > I'm trying to copy the contents of one partition to another with: > cp -afv (partition a)/* (partition b)/ > [...] > Is there a way to copy the entire contents of one partition to another > partition that contains duplicates without having to bang on y for each > duplic

Re: Using the cp command.

2004-06-11 Thread alex
CW Harris wrote: On Thu, Jun 10, 2004 at 10:21:18AM -0400, alex wrote: I'm trying to copy the contents of one partition to another with: cp -afv (partition a)/* (partition b)/ Normally, the command works fine except when (partition b) already contains a large number of directories and

Re: Using the cp command.

2004-06-11 Thread alex
CW Harris wrote: On Thu, Jun 10, 2004 at 10:21:18AM -0400, alex wrote: I'm trying to copy the contents of one partition to another with: cp -afv (partition a)/* (partition b)/ Normally, the command works fine except when (partition b) already contains a large number of directories and

Re: Using the cp command.

2004-06-10 Thread Brad Sims
On Thursday 10 June 2004 10:49 am, CW Harris wrote: > What version of cp are you using?  I cannot duplicate this behavior > here.  Are you sure you don't have an "-i" set?  Are you using /bin/cp > or an alias? > > cp (coreutils) 5.0.91  [here] > > you might check out "--reply=yes" option (man cp)

Re: Using the cp command.

2004-06-10 Thread CW Harris
On Thu, Jun 10, 2004 at 10:21:18AM -0400, alex wrote: > I'm trying to copy the contents of one partition to another with: > cp -afv (partition a)/* (partition b)/ > > Normally, the command works fine except when (partition b) already > contains a large number of directories and files th

Re: Using the cp command.

2004-06-10 Thread Daved Daly
use tar or cpio? (cd /partitiona; tar cvf - ./) | (cd /partitionb; tar xf -) or something like that... On Thu, 10 Jun 2004 10:21:18 -0400, alex <[EMAIL PROTECTED]> wrote: > > I'm trying to copy the contents of one partition to another with: > cp -afv (partition a)/* (partition b)/ >

Re: Using the cp command.

2004-06-10 Thread Thomas Adam
--- alex <[EMAIL PROTECTED]> wrote: > I'm trying to copy the contents of one partition to another with: > cp -afv (partition a)/* (partition b)/ Please see this: http://www.hantslug.org.uk/cgi-bin/wiki.pl?LinuxHints/OneDiskToAnother -- Thomas Adam = "The Linux Weekend Mechanic

Using the cp command.

2004-06-10 Thread alex
I'm trying to copy the contents of one partition to another with: cp -afv (partition a)/* (partition b)/ Normally, the command works fine except when (partition b) already contains a large number of directories and files that are duplicates of those in (partition a) . The command work

Re: cp command

1997-07-16 Thread Nathan E Norman
t things in :*nix where there are lots of ways to get the job done there :is usually not a _best_ way. A major problem with cp -pr is :that linked-files, both hard and soft, are broken and all :links are copied individually as regular files. This can :cause MAJOR problems as well as consuming more

Re: cp command

1997-07-15 Thread Anthony Fok
On Tue, 15 Jul 1997, Bob Clark wrote: > Syd Alsobrook wrote: > > Really easy > > The best way to copy a directory tree from one drive to another is > > cp -pr /usr /hd > Hmm... The _best_ way? I not so sure. Like most things in > *nix where there are lots of ways to get the job done ther

Re: cp command

1997-07-15 Thread Bob Clark
Syd Alsobrook wrote: > > Really easy > > The best way to copy a directory tree from one drive to another is > > cp -pr /usr /hd > > Thanks > > Syd > Hmm... The _best_ way? I not so sure. Like most things in *nix where there are lots of ways to get the job done there is usually not a

cp command

1997-07-14 Thread Syd Alsobrook
Really easy The best way to copy a directory tree from one drive to another is cp -pr /usr /hd Thanks Syd http://www.uc.edu/~alsobrsp "How do you know you're having fun if there's no one watching you have it." Dougla