Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Apr 2005 08:19:14 -0500
From:      Ash <omniBSD@speakeasy.net>
To:        =?ISO-8859-15?Q?Bj=F6rn_K=F6nig?= <bkoenig@cs.tu-berlin.de>
Cc:        freebsd questions <freebsd-questions@freebsd.org>
Subject:   Re: Problem ext2
Message-ID:  <42723452.7070803@speakeasy.net>
In-Reply-To: <4271DAB7.7040607@cs.tu-berlin.de>
References:  <4271D753.1010003@lugpiacenza.org> <4271DAB7.7040607@cs.tu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Björn König wrote:
> pier wrote:
> 
>> I need ext2 because i need to exchange very big files (dvd iso images)
>> with linux computers.
>> But everytime i try to copy a big file i receive this message:
>>
>> cp: ./sarge-i386-1.iso: File too large
>>  

Do your Linux kernel your ext2 file system support large files (files 
over 2GB)? If not, you will have to boot into Debian and enable LFS 
(large file support) and add that feature to your ext2 partition.

>>
> FreeBSD might only be able to deal with files smaller than 2 GiB on ext2 
> file systems. Use a program like lxsplit to cut the file into chunks 
> first, e.g.
> 
>  lxsplit -s filename 1024M
> 
> and join it later with
> 
>  lxsplit -j filename.001
> 
> Björn
> 

Adding to Björn's advice, in case you don't with to use a port. The 
FreeBSD base system includes split(1), which will allow you split up 
binary files (with -b flag) and then join them with cat.

To split:

	split -b 1024b original.iso original.

To join:

	cat original.aa original.ab ... original.an >> original.iso


Please note that this won't work for your particular case, if your 
Debian install does not support LFS.

-Ash



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