Skip to contentSkip to conversation

copy program

DISCUSSION kaushal 5 participants 10 messages Sep 6, 2005 – Sep 12, 2005

lore
Share & tools
lore

kaushal

author
#0 lore raw

hello list,
The default copy program in the linux or windows will not
create a file,if the copy process aborts at say the last 5 seconds.Lets say the file size is 700MB and the copy process failed after copying 695MB and aborted,then we don't have the 695MB file on the hdd.If alone the copy is successful till 100%we can have it.In windows I came across a software:unstoppable.exe this software can copy to whatever extent it is possible.My question is if I want to write a program how should I do it using C(In linux/windows).As this approach is always recommended why is it not implemented in the standard cp or copy programs?Earlier I have posted a question about a problem in copying CDs in linux.Whenever I try to copy a CD from linux it fails giving the seek error message.But without mounting the cd if I play it using mplayer command, it plays.

		(mplayer vcd:// )

while I copy the same CD in windows on the same machine it
succeeds .Can unstoppable kind of software in linux would help me resolve this issue.Is there such a software?This is like a mystery .It happens everytime.Any help would be greatly appreciated.Thanks in advance.

regards-
kaushal.

#1 lore raw
Quoted 5 lines · kaushal

The default copy program in the linux or windows will not
create a file,if the copy process aborts at say the last 5 seconds.Lets say the file size is 700MB and the copy process failed after copying 695MB and aborted,then we don't have the 695MB file on the hdd.If alone the copy is successful till 100%we can have it.

That's because the cp command deletes the destination if there is an error.

If you don't want this, copy it using "dd".

Signature · 1 line
Glynn Clements <[email protected]>
#2 lore raw
In reply to kaushal

kaushal wrote:
Earlier I have

Quoted 6 lines

posted a question about a problem in copying CDs in linux.Whenever I try to copy a CD from linux it fails giving the seek error message.But without mounting the cd if I play it using mplayer command, it plays.

		(mplayer vcd:// )

while I copy the same CD in windows on the same machine it
succeeds .

I still face the same problem in Linux while copying something from a CD. It succeeds in windoze , but fails in Linux :(

_z33

Signature · 1 line
I love TUX; well... that's an understatement :)
#3 lore raw
Quoted 11 lines · On 9/8/05, _z33 <[email protected]> wrote:

kaushal wrote:
Earlier I have

Quoted 6 lines

posted a question about a problem in copying CDs in linux.Whenever I try to copy a CD from linux it fails giving the seek error message.But without mounting the cd if I play it using mplayer command, it plays.

              (mplayer vcd:// )

while I copy the same CD in windows on the same machine it
succeeds .

I still face the same problem in Linux while copying something from a CD. It succeeds in windoze , but fails in Linux :(

I have made similar observations mostly with free operating systems. My assumption is that some device drivers for Windows offer far better error correction and other software services than those found on Linux (or any other open source OS). This is not necessarily a bad thing, since the device drivers do what they are supposed to do; and they do it well. I know that some drives have buggy firmware which is fixed, or worked around at least, by device drivers. Most often, these bugs are not documented, impeding driver writers for noncommercial OS to provide the same level of reliability found on other systems. A situation unlikely to be changed in the near future. Interestingly, I was able to make improvements by updating the firmware of one of the Toshiba DVD drives resulting in much less errors under NetBSD and OpenSolaris (no, this drive has never seen Linux, but I bet the result is the same).

Regards

\Steve

--

Steve Graegert <[email protected]>
Software Consultancy {C/C++ && Java && .NET}
Mobile: +49 (176) 21248869
Office: +49 (9131) 7126409

#4 lore raw
In reply to _z33
Quoted 7 lines · --- _z33 <[email protected]> a écrit :

kaushal wrote:
Earlier I have

Quoted 1 line

posted a question about a problem in copying CDs in

linux.Whenever I try

Quoted 1 line

to copy a CD from linux it fails giving the seek error

message.But

Quoted 1 line

without mounting the cd if I play it using mplayer command,

Quoted 9 lines

it plays.

Quoted 3 lines
		(mplayer vcd:// )

while I copy the same CD in windows on the same machine it
succeeds .

I still face the same problem in Linux while copying something from a
CD. It succeeds in windoze , but fails in Linux :(

Linux had no support for video cd's. That's why you can't use a vcd disk as a normal disk in Linux.
You can use mplayer's stream dump facility to dump the video from the CD

--
A mouse is a device used to point at
the xterm you want to type in.
Kim Alm on a.s.r.

___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#5 lore raw

hello list,

thank you all for the support.
regards-
kaushal

Quoted 36 lines · szonyi calin
Quoted 7 lines · --- _z33 <[email protected]> a écrit :

kaushal wrote:
Earlier I have

Quoted 1 line

posted a question about a problem in copying CDs in

linux.Whenever I try

Quoted 1 line

to copy a CD from linux it fails giving the seek error

message.But

Quoted 1 line

without mounting the cd if I play it using mplayer command,

Quoted 9 lines

it plays.

Quoted 3 lines
		(mplayer vcd:// )

while I copy the same CD in windows on the same machine it
succeeds .

I still face the same problem in Linux while copying something from a
CD. It succeeds in windoze , but fails in Linux :(

Linux had no support for video cd's. That's why you can't use a vcd disk as a normal disk in Linux.
You can use mplayer's stream dump facility to dump the video from the CD

--
A mouse is a device used to point at
the xterm you want to type in.
Kim Alm on a.s.r.

Quoted 7 lines

___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to kaushal
Quoted 5 lines · kaushal

Earlier I have
posted a question about a problem in copying CDs in linux.Whenever I try to copy a CD from linux it fails giving the seek error message.But without mounting the cd if I play it using mplayer command, it plays.

		(mplayer vcd:// )

Er, are you talking about VCDs or data CDs?

For VCDs, look at vcdimager.

Signature · 1 line
Glynn Clements <[email protected]>
author
#7 lore raw

hi Clements,
Is it going to matter if it is vcd or data cd?If yes then I
want to copy both the kinds.

-kaushal.

Quoted 12 lines · Glynn Clements
Quoted 5 lines · kaushal

Earlier I have
posted a question about a problem in copying CDs in linux.Whenever I try to copy a CD from linux it fails giving the seek error message.But without mounting the cd if I play it using mplayer command, it plays.

		(mplayer vcd:// )

Er, are you talking about VCDs or data CDs?

For VCDs, look at vcdimager.

#8 lore raw
Quoted 2 lines · kaushal

Is it going to matter if it is vcd or data cd?If yes then I
want to copy both the kinds.

Yes.

Like audio CDs, VCDs use mode-2 sessions, which have less error correction than data CDs (but can store more data, e.g. a standard 80-minute CD-R can hold 700MB as a data CD but 800MB as a VCD or audio CD).

To copy mode-2 CDs, you will want software which doesn't abort on an I/O error (and, ideally, prevents or limits retries within the CD drive itself).

Try some of the links found from:

	http://www.google.com/search?q=VCD%20%22mode%202%22

for more information.

Signature · 1 line
Glynn Clements <[email protected]>
author
#9 lore raw

Hi Clements,
Thanks a lot for sharing the intricacies.
cheers-
kaushal.

Quoted 22 lines · Glynn Clements
Quoted 2 lines · kaushal

Is it going to matter if it is vcd or data cd?If yes then I
want to copy both the kinds.

Yes.

Like audio CDs, VCDs use mode-2 sessions, which have less error correction than data CDs (but can store more data, e.g. a standard 80-minute CD-R can hold 700MB as a data CD but 800MB as a VCD or audio CD).

To copy mode-2 CDs, you will want software which doesn't abort on an I/O error (and, ideally, prevents or limits retries within the CD drive itself).

Try some of the links found from:

	http://www.google.com/search?q=VCD%20%22mode%202%22

for more information.