Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 23 Sep 2014, 18:41
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
cp command problem
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
snayak

Joined: 14 Sep 2011
Posts: 231

PostPosted: Wed 14 Sep 2011, 02:18    Post subject:  cp command problem
Subject description: cp command couldn't copy 2 gb file from usb pen drive to ide hard disk
 

Hi,

I am using Lucid puppy 5.2.0, full installation.
Yesterday I tried to copy a 2 gb file from pen drive to hard disk.
After 1.6 gb copied, there was a message in terminal, "KILLED".
and copy couldn't complete.

I tried again and there was a message, "I/O error".
And surprisingly my pen drive mount point changed from sdb to sdc.

Have you ever seen any such problem?
Does cp command work for >= 2 GB file?

I tried to see what is causing error. htop was showing memory usage for cp as follows:
Mem [********||@@@@@@@@@@@@@ 78/378MB]
where,
****** = used
|| = buffers
@@@@@@@@@@@@ = cache


Sincerely,
Srinivas Nayak
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Wed 14 Sep 2011, 03:41    Post subject:  

yep...2gig limit for FAT drive. I read somewhere about using "split" worked.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3444
Location: West Lothian, Scotland, UK

PostPosted: Wed 14 Sep 2011, 03:49    Post subject:  

1. "Have you ever seen any such problem?"
(a) Yes, when I was attempting to copy files from an external [USB2.0 connected] HDD with "bad blocks".
Most of the files would copy OK, but whenever I attempted to copy a file, part of which resided on a bad region of the drive...
The copy would fail at that point.

(b) Perhaps you should use GParted to "check"->[scan & fix] the file systems of the source and destination partitions.

2. "my pen drive mount point changed from sdb to sdc"
(a) Did the OS suddenly detect the presence of another partition [file system] at that instant in time?

3. "yep...2gig limit for FAT drive"
Wouldn't it be OK to copy a 2GB file?
Within the 2GB limit?
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Wed 14 Sep 2011, 04:05    Post subject:  

Sylvander wrote:


3. "yep...2gig limit for FAT drive"
Wouldn't it be OK to copy a 2GB file?
Within the 2GB limit?


It appears not...I'd try split. Then again, never trust a pen drive.
Back to top
View user's profile Send private message 
snayak

Joined: 14 Sep 2011
Posts: 231

PostPosted: Wed 14 Sep 2011, 08:01    Post subject:  

Sylvander wrote:
1. "Have you ever seen any such problem?"
(a) Yes, when I was attempting to copy files from an external [USB2.0 connected] HDD with "bad blocks".
Most of the files would copy OK, but whenever I attempted to copy a file, part of which resided on a bad region of the drive...
The copy would fail at that point.

(b) Perhaps you should use GParted to "check"->[scan & fix] the file systems of the source and destination partitions.

2. "my pen drive mount point changed from sdb to sdc"
(a) Did the OS suddenly detect the presence of another partition [file system] at that instant in time?

3. "yep...2gig limit for FAT drive"
Wouldn't it be OK to copy a 2GB file?
Within the 2GB limit?


2. Yes, OS suddenly show me presence of sdc on desktop. But sdb was not there any more.

3. Actually I made a 2 gb img file for using with qemu. that 2gb file I was transferring from pendrive to disk.
And, why there is such a limit on file size to copy? I think other linux OSs don't have that!

Many thanks for your suggestions on pen drive checking.
I'll do that.

Sincerely,
Srinivas
Back to top
View user's profile Send private message 
snayak

Joined: 14 Sep 2011
Posts: 231

PostPosted: Wed 14 Sep 2011, 08:23    Post subject:  

jpeps wrote:
Sylvander wrote:


3. "yep...2gig limit for FAT drive"
Wouldn't it be OK to copy a 2GB file?
Within the 2GB limit?


It appears not...I'd try split. Then again, never trust a pen drive.


Is split command comes by default with puppy 5.2.0?
Or I need to install some PET package?

Sincerely,
Srinivas
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11072
Location: Arizona USA

PostPosted: Wed 14 Sep 2011, 08:43    Post subject:  

To find out if your Puppy has split, open a console and enter split --help.

Do you have another flash drive you can use to test if the cp command will work with it? Or any other kind of external USB drive, such as a USB hard disk drive?
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3368
Location: Oregon

PostPosted: Wed 14 Sep 2011, 08:47    Post subject:  

I am just curious as to what info is shown if you hover over the pen drive icon in Puppy. Does it show fat or fat32?

Also, I have never figured out how the manufacturers are able to format a large capacity pen drive to fat.
If I try it, I run into fat size limitations.
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3444
Location: West Lothian, Scotland, UK

PostPosted: Wed 14 Sep 2011, 09:11    Post subject:  

1. "why there is such a limit on file size to copy?"
I'm no expert, but I believe...
The 2GB file size limit is a technical limitation of the FAT16 file system.
4GB is the file size limit of a FAT32 file system.
NTFS file system can handle file sizes waaayy in excess of 4GB.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Wed 14 Sep 2011, 12:27    Post subject:  

snayak wrote:

Is split command comes by default with puppy 5.2.0?
Or I need to install some PET package?

Sincerely,
Srinivas


It's a gnu coreutility.

example: "split -b500m largefile smallfile"
to join: cat smallfile.* >> largefile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0699s ][ Queries: 11 (0.0036s) ][ GZIP on ]