Execution of programs on 2kB-EXT2-FS impossible?

Execution of programs on 2kB-EXT2-FS impossible?

Post by Axel Dunke » Thu, 22 Dec 1994 00:38:38



Hi,

I experienced problems when trying to execute programs from a 2kb (!)
EXT2-FS.

I compiled fileutils-3.9 with STATIC (!) linked libs. When I run
"ls" from a 1-kb-Ext2fs it runs fine, if I copy it to a 2kB-ext2fs,
it produces the error: sh: ./ls: cannot execute binary file.

Also, running a ftpd on this filesystem results in problems
if I use an anonymous chroot-ed access (ls does not run).

Any ideas on this?

All the best,
Axel

 
 
 

Execution of programs on 2kB-EXT2-FS impossible?

Post by Ralf G. R. Ber » Fri, 23 Dec 1994 01:07:58



> I experienced problems when trying to execute programs from a 2kb (!)
> EXT2-FS.

> I compiled fileutils-3.9 with STATIC (!) linked libs. When I run
> "ls" from a 1-kb-Ext2fs it runs fine, if I copy it to a 2kB-ext2fs,
> it produces the error: sh: ./ls: cannot execute binary file.

Are you sure that you can distinguish between "kilo" and "mega"? :-)

   Ralf

--

snail: H"uckeswagener Str. 42, 51647 Gummersbach, Germany |     phone/fax:
WWW: http://www-users.informatik.rwth-aachen.de/~rabe     | +49 2261 21968

 
 
 

Execution of programs on 2kB-EXT2-FS impossible?

Post by Ralf G. R. Ber » Fri, 23 Dec 1994 07:35:37




Quote:> >> I experienced problems when trying to execute programs from a 2kb (!)
> >> EXT2-FS.

> >Are you sure that you can distinguish between "kilo" and "mega"? :-)

> Yes, he can.   At this time, Linux can only execute programs from partitions
> with a 1kb block size.

Aaargh. I thought he was referring to the FS size, obviously he referred
to the block size. Sorry for messing this up. :-)

  Ralf
--

snail: H"uckeswagener Str. 42, 51647 Gummersbach, Germany |     phone/fax:
WWW: http://www-users.informatik.rwth-aachen.de/~rabe     | +49 2261 21968

 
 
 

Execution of programs on 2kB-EXT2-FS impossible?

Post by David Michael Per » Thu, 22 Dec 1994 23:15:56





>> I experienced problems when trying to execute programs from a 2kb (!)
>> EXT2-FS.

>> I compiled fileutils-3.9 with STATIC (!) linked libs. When I run
>> "ls" from a 1-kb-Ext2fs it runs fine, if I copy it to a 2kB-ext2fs,
>> it produces the error: sh: ./ls: cannot execute binary file.

>Are you sure that you can distinguish between "kilo" and "mega"? :-)

Yes, he can.   At this time, Linux can only execute programs from partitions
with a 1kb block size.  I am not sure if this will be changed anytime soon,
as it won't be that easy or that useful. (Maybe for CD's with 2048kb block
sizes or BSD FFS partitions with 4096kb)

-Dave
--
____


(:-3,. w .sig)   -->> Join the free software revolution -- use Linux! <<--