Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jan 2005 15:30:01 +0300
From:      =?windows-1251?Q?=C0=EB=E5=EA=F1=E0=ED=E4=F0_=C4=E5=F0=E5=E2=FF=ED?= =?windows-1251?Q?=EA=EE?= <aeder@list.ru>
To:        David Landgren <david@landgren.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Large file on a DVD-ROM showing -ve size
Message-ID:  <41DA8C49.8020101@list.ru>
In-Reply-To: <41DA787B.5020709@landgren.net>
References:  <41DA787B.5020709@landgren.net>

next in thread | previous in thread | raw e-mail | index | archive | help
David Landgren wrote:

> Folks,
>
> I know FreeBSD deals with files larger than 2Gb, but I have a large 
> file on a DVD I can't copy. This is on 4.10-STABLE FreeBSD, compiled 
> Tue Oct 5 09:42:59 CEST 2004
>
> ls -l gives:
>
> -r-xr-xr-x  1 root  wheel  -2131373162 Nov 17 01:05 bas1.bas
>
> The fact that ls itself gets it wrong makes me nervous.
>
> I compiled a 5.8.6 Perl with large file support and 64bitint and ran 
> the following:
>
> /usr/local/p586-64i/bin/perl -le \
>     '$_=shift; print "$_\t", (stat $_)[7]' bas1.bas
> bas1.bas        -2131373162
>
> I updated my copy of rsync from ports and tried that way:
>
> % rsync -av /cdrom/bas1.bas /home/david/
> building file list ... done
> bas1.bas
>
> sent 87 bytes  received 40 bytes  254.00 bytes/sec
> total size is -2131373162  speedup is -16782465.84
>
> ... and the resulting file is 0 bytes.
>
> I'm wondering if there is something special I have to add as a 
> parameter to the mount command, in order to have the kernel interpret 
> things differently. I've had a look at mount_cd9660 but nothing leaps 
> out at me.
>
> The mount currently looks like this:
>
> /dev/acd0c on /cdrom (cd9660, local, read-only)
>
> Or something else? Thanks for any clues I can use,
> David
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
>
>
The DVD filesystem (iso) doesn't support itself files bigger then 2 Gb.
It's because of signed int32 filesize in ISO FS.
You can write on DVD files upto 4Gb in size (last version of growisofs 
needed),
but you can't read them back.
You can check - may be, in 5.3 this is solved. Bu i suggest to you read 
this file on some other system.
You can also dump DVD in image and attempt to take this file out of the 
image manually.

I have the same problems (but i can't write >2 Gb files) then attempt to 
make backups on DVD-R

Best regards,
Alexander Derevianko



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41DA8C49.8020101>