[Question] cp result.txt /dev/mtd0 problem

Andrew Dixon andrew.dixon at seranoa.com
Mon Jul 16 08:44:02 EDT 2001


>  when I followed the step in FAQ manual.
>  I tried
> 
>  cp /tmp/jffs.image  /dev/mtd0
> 
>  I got
> 
>  cp: /dev/mtd0  Read only file system.
> 

Have you mounted /dev/mtd0 onto a file system?  You probably need to do
something like:

	#mount -t mtd /dev/mtd0 /flash
               ^^^^^^

I'm not sure about "-t mtd" because I haven't started playing with this
yet myself, but that info should be fairly easy to track down.

Once the file system is mounted you should be able to copy to it by:

	$cp /tmp/jffs.image /flash

later,
Andy




More information about the linux-mtd mailing list