bug-coreutils@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: "Pádraig Brady" <P@draigBrady.com>
To: Jeromy Keloway <JeromyKeloway@gmx.ch>
Cc: bug-coreutils@gnu.org
Subject: Re: (no subject)
Date: Wed, 4 Feb 2009 11:54:31 +0000	[thread overview]
Message-ID: <498981F7.3040507@draigBrady.com> (raw)
In-Reply-To: <20090203160102.326740@gmx.net>

Jeromy Keloway wrote:
> Good afternoon
> 
> What I have to say is a little bit... hard to believe.
> But I think I found a "bug" in the Shell-Command "cp". The command goes into a endless loop when I do the following:
> 
> 
> 1) Mount a partition with the filesystem "ext3" ("/media/EXT3drive")
> 
> 2) Mount a partition with the filesystem "fat32" ("/media/FAT32drive")
> 
> 3) Generate a file on the ext3-System with a filesize > 4GB
> 
> 4) Try to copy this file from /media/EXT3drive to /media/FAT32drive with the following command: "cp -urv /media/EXT3drive/4GBfile.img /media/FAT32drive/4GBfile.img"
> 
> 5) The file will be transfered until the filesize reached the 4GB limit. When the file has the maximum size that is possible on FAT32, it stop growing and cp is waiting forever to complet this file(wait about 48h -> nothing happens).
> 
> 
> What cp should do:
> 
> Check the filesystem on the target partition before the transfer begins and inform the user about any problems OR interrupt the transfer of this file and write a log/inform the user.
> 
> Thanks for your attention
> 
> Jeromy

Seems fine here:

$ truncate -s5GB /media/disk/5GBfile.img
truncate: truncating `/media/disk/5GBfile.img' at 5000000000 bytes: File too large
$ ls -l /media/disk/5GBfile.img
-rwxr-xr-x 1 padraig root 0 2009-02-04 11:01 /media/disk/5GBfile.img
$ rm /media/disk/5GBfile.img

$ truncate -s5GB 5GBfile.img
$ cp -urv 5GBfile.img /media/disk/
`5GBfile.img' -> `/media/disk/5GBfile.img'
cp: cannot lseek `/media/disk/5GBfile.img': Invalid argument
$ rm /media/disk/5GBfile.img

$ cp --sparse=never -urv 5GBfile.img /media/disk/
`5GBfile.img' -> `/media/disk/5GBfile.img'
./cp: writing `/media/disk/5GBfile.img': File too large
$ ls -l /media/disk/5GBfile.img
-rwxr-xr-x 1 padraig root 4,294,967,295 2009-02-04 11:14 /media/disk/5GBfile.img

What version of kernel and coreutils do you have?
I would guess that the FAT driver in your kernel may be having issues?

cheers,
Pádraig.

  parent reply	other threads:[~2009-02-04 11:54 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-03 16:01 (no subject) Jeromy Keloway
2009-02-04  8:30 ` Kamil Dudka
2009-02-04 11:54 ` Pádraig Brady [this message]
2009-02-04 12:02 ` cp infloop(?) when copying a file larger than 4GiB to FAT32 Jim Meyering
  -- strict thread matches above, loose matches on Subject: below --
2010-01-29 17:11 (no subject) Henry Hung
2010-01-29 20:10 ` Kamil Dudka
2009-03-19 10:47 lynn and jym
2008-12-02 16:56 Jan Halla
2008-12-03 16:49 ` Alfred M. Szmidt
2008-11-29 21:15 Martin Douglas
2008-07-03 22:48 Craig Naumann
2008-07-04  7:34 ` James Youngman
2008-04-13 16:31 Erik Auerswald
2008-02-16 15:46 James Youngman
2008-02-16 17:26 ` James Youngman
2007-07-17 10:17 Elmian Shabahang
2007-04-02 20:59 ara
2007-02-06  9:29 Dima Abramian
2007-02-22 18:07 ` James Youngman
2006-12-11 14:16 newtonjunior
2006-12-11 18:04 ` Andreas Schwab
2006-09-09 12:03 Kartik K. Agaram
2006-08-27 23:43 deepesh chaudhary
2006-05-24 20:42 ralf.rabemann
2006-05-25  6:45 ` Bob Proulx
2006-05-25 12:42 ` Eric Blake
2005-12-20 16:46 Lakkimsetti, Chalapathi G
2005-12-20 20:33 ` Brian Dessent
2005-06-21  2:40 刘玉
2005-07-13  4:23 ` Bob Proulx
2005-04-08 17:04 Stephen Mc Gowan
2005-03-23 12:14 tdovera
2005-03-16 19:18 Jan Engelhardt
2003-12-16 19:50 Bruce Korb
2003-11-17 18:41 Gary Leach
2003-11-18  4:32 ` Bob Proulx
2003-07-09 17:19 Daniel de la Cruz
2003-07-09 19:42 ` Paul Jarc
2002-11-11 11:47 Bruno Haible

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-coreutils

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=498981F7.3040507@draigBrady.com \
    --to=p@draigbrady.com \
    --cc=JeromyKeloway@gmx.ch \
    --cc=bug-coreutils@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).