Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: a question about the "cp" command

  • Subject: Re: a question about the "cp" command
  • From: Hadron Quark <qadronhuark@xxxxxxxxxxx>
  • Date: Mon, 18 Sep 2006 11:31:05 +0200
  • Cancel-lock: sha1:uQycu4UQwb8CuZUYISgMnobPHSA=
  • Newsgroups: comp.os.linux.advocacy
  • Organization: CERN LHC - http://public.web.cern.ch/public/
  • References: <1158546925.438126.27520@i3g2000cwc.googlegroups.com> <2062304.25Wmd8WvXG@schestowitz.com>
  • User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)
  • Xref: news.mcc.ac.uk comp.os.linux.advocacy:1156206
Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx> writes:

> __/ [ lkrubner@xxxxxxxxxxxxx ] on Monday 18 September 2006 03:35 \__
>
>> I'm not sure where I should post this question. I was trying to move 6
>> gigs of info from my Windows machine to my Redhat E3 computer. I don't
>> know much about Linux. I moved the data from my Windows machine to an
>> external USB harddrive. I then plugged the harddrive into my Linux
>> computer. I opened a shell terminal window and su to root. Then I
>> mounted the harddrive. Then I use the copy command to start moving over
>> huge directories full of stuff. It worked for awhile, but then quite
>> with an "Input/Output" error. The cp command never returned the command
>> prompt. What is one suppose to do in those situations? I closed the
>> terminal window and opened another, but I could not reconnect with the
>> harddrive. I could not umount or mount it, either. I got "Device is
>> busy."
>
> Hi,
>
> This is not the most suitable newsgroup for technical questions, but I'll
> have a go.
>
> First of all, do you happen to know what filesystem the extrenal hard-drive
> uses for storage? There are different filename conventions (among other
> things) that may lead to issues and inconsistencies in terms of what's
> transferable and whether the files preserve their state (name, attributes,
> relationships can be lost or changed in the process). If you didn't have any
> issues before (I am assuming you used to transfer files just fine), there
> are various possibilities:

Did you read his post? It was copying fine and then stopped.

To the op : run checkdisk or whatever the windows thing is first. I
assume its NTFS or FAT32 on the external USB drive?

>
> 1. Some file has been created or modified and it clogs things up or causes
> things everything to hang. This should usually result in some verbosity
> though--one that indicates what has gone wrong and whether it's fatal to the
> process (transfer stopped) or just a warning. Among the possible issues:
> character internationalisation, symbols such as a colon, slashes and spaces
> (a rarity), filename length, path length...
>
> 2. There is a corruption in the filesystem
>
> 3. There is a physical error somewhere

(4) The destination is full, or the swap is full.

>
> If your hard-drive is operated from an external source of power, switch it
> off and then on again. This will have it revert to a 'healthy' state. An
> outage, for example, recently led to my hard-drive not being detectable
> (needed a kick for the first time /ever/).
>
> If what you meant to say is that /cp/ worked for a while before hanging (i.e.
> that's the first time you ever do this), then it's a different case
> altogether.
>
> Does your RedHat computer have a 2.4 kernel? The 2.6 kernel should mount your
> USB hard-drive automatically and handle it very gracefully.

It would make little difference if its manually or automatically
mounted.

To the op : can you browse the external drive properly?

What filesystem are you installing to?

What other USB devices are plugged in? Do you use a USB hub? Never run
an external drive off a hub IMO. USB hubs are dodgy.

>
> Hope it helps,
>
> Roy

-- 
Not me, guy. I read the Bash man page each day like a Jehovah's Witness reads
the Bible. No wait, the Bash man page IS the bible. Excuse me...
(More on confusing aliases, taken from comp.os.linux.misc)

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index