Long JFFS2 Mount time?

Kenneth Johansson kenneth.johansson at etx.ericsson.se
Fri Apr 11 17:43:40 EDT 2003


On Fri, 2003-04-11 at 23:25, Marc D'Anjou wrote:
> I forgot to say that the one line command used to fill the log contains a while loop:
> 
> "while true; do cat file1.txt >> file2.log; done"
> 
> While this was executing, I monitored the file size until it reached 2 meg bytes.
> 
> Where file1.txt has 450 bytes in it.
> 
> Note: I don't think the 450 bytes is important, it could have been much smaller and still given the save results.
> 
> Marc

And I used this a few times until the file system had 100kb free. no
problem with mount or ls. 
---
#! /bin/bash

:>$1

TIMES=4096
while [ $TIMES -gt 0 ]
do
  dd if=/dev/urandom bs=512 count=1 2>/dev/null >> $1
  TIMES=$(($TIMES - 1))
done
---

-- 
Kenneth Johansson	
Ericsson AB                       Tel: +46 8 719 70 20
Tellusborgsvägen  90              Fax: +46 8 719 29 45
126 25 Stockholm                  ken at switchboard.ericsson.se




More information about the linux-mtd mailing list