Loading ...
Sorry, an error occurred while loading the content.

RE: [NSLU-general] File Size

Expand Messages
  • Piotr Mackowiak
    Yes of course,. Proper code was: cat AA.bin BB.BIN cat AA.bin BB.bin And I try with bash. But simply changing shell type in /etc /passwd (for root and
    Message 1 of 4 , Aug 26, 2007
    • 0 Attachment
      Yes of course,. Proper code was:

      cat AA.bin > BB.BIN
      cat AA.bin >> BB.bin

      And I try with bash. But simply changing shell type in /etc /passwd (for
      root and any particular user) hangs login session during log-in procedure.
      Why?

      _____

      From: nslu2-general@yahoogroups.com [mailto:nslu2-general@yahoogroups.com]
      On Behalf Of Marcel Nijenhof
      Sent: Sunday, August 26, 2007 11:27 PM
      To: nslu2-general@yahoogroups.com
      Subject: Re: [nslu2-general] File Size



      On Sun, 2007-08-26 at 14:55 +0200, Piotr Mackowiak wrote:
      > I copied file aprox. 1,5 GB of EXT3 formatted file system on MAXTOR
      > HDD
      > connected to NSLU. (ver 6.8 beta). And than I try to make larger file
      > (from
      > console):
      >
      > CODE
      >
      > AA.bin >BB.bin (AA.bin file is over 1,5 GB large)

      This means that you create a file BB.bin from the output of
      AA.bin? But the size of AA.bin doesn't mean that the output
      is 1.5 GB!

      But probably you mean something like:
      cat AA.bin > BB.bin

      >
      > AA.bin >> BB.bin
      >
      > The last process stopped when BB.bin file reached size 2147483647
      > bytes with
      > warning: File size limit exceeded.

      This probably means that the program you are using does 31 bits io!

      In that case the maxium size is 2GB!

      >
      > Why? 2 Gb is not too much for EXT3 file system. Can somebody help me?

      It isn't. But you are using a program which has a 31 bit filesize limit.
      You need to use 64 filesize api to create or manipulate files bigger
      than 2 GB.

      The redirection ">>" is done by the shell so you are using a shell
      that only use the 31/32 bits api.

      A small test on unslung using "bash" and the standard "/bin/sh
      (busybox)"

      bash-3.2$ bash-3.2$ exec /opt/bin/bash
      bash: bash-3.2$: command not found
      bash-3.2$ exec /opt/bin/bash
      bash-3.2$ echo a | dd of=g1 bs=1k seek=2097151
      0+1 records in
      0+1 records out
      2 bytes (2 B) copied, 0.000779 s, 2.6 kB/s
      bash-3.2$ cat /bin/sh >> g1
      bash-3.2$ ls -l g1
      -rw------- 1 marceln everyone 2147680782 Aug 26 22:37 g1
      bash-3.2$ exec /bin/sh

      BusyBox v0.60.4 (2005.03.22-06:52+0000) Built-in shell (ash)
      Enter 'help' for a list of built-in commands.

      $ echo a | dd of=g1 bs=1k seek=2097151
      0+1 records in
      0+1 records out
      2 bytes (2 B) copied, 0.01645 s, 0.1 kB/s
      $ cat /bin/sh >> g1
      File size limit exceeded

      > Why?

      So the standard busybox doesn't accept files bigger than 2 GB.

      > 2 Gb is not too much for EXT3 file system.

      You are completly correct!

      > Can somebody help me?

      You are able to help your self. Just install bash!

      --
      marceln






      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.