public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [Question] cp result.txt  /dev/mtd0 problem
@ 2001-07-13 23:28 이재훈
  2001-07-16 12:44 ` Andrew Dixon
  0 siblings, 1 reply; 3+ messages in thread
From: 이재훈 @ 2001-07-13 23:28 UTC (permalink / raw)
  To: linux-mtd

 Hi Developers,

 I got latest MTD source code in CVS.
 and I successfully got kernel boot message from MTD .

 after booted, I tried MKDEDEV, 
 at that time, everyting is OK.

 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.

 I don't know how to overcome this problem..

 Could anyone suggest any tips or helps?
 Any comments will help us.

 thanks.

 kingseft@samsung.co.kr


==================================================
우리 인터넷, Daum
평생 쓰는 무료 E-mail 주소 한메일넷
지구촌 한글 검색서비스 Daum검색
http://www.daum.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Question] cp result.txt  /dev/mtd0 problem
  2001-07-13 23:28 [Question] cp result.txt /dev/mtd0 problem 이재훈
@ 2001-07-16 12:44 ` Andrew Dixon
  2001-07-16 13:41   ` Vipin Malik
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Dixon @ 2001-07-16 12:44 UTC (permalink / raw)
  To: linux-mtd@lists.infradead.org

>  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Question] cp result.txt  /dev/mtd0 problem
  2001-07-16 12:44 ` Andrew Dixon
@ 2001-07-16 13:41   ` Vipin Malik
  0 siblings, 0 replies; 3+ messages in thread
From: Vipin Malik @ 2001-07-16 13:41 UTC (permalink / raw)
  To: Andrew Dixon, linux-mtd@lists.infradead.org

At 08:44 AM 7/16/2001 -0400, Andrew Dixon wrote:

> >  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
>                ^^^^^^

/dev/mtd is not a filesystem- it is a char device. You cannot mount it. 
(though you can mount a *filesystem* on top of it (via its cousin- mtdblockn)).

try the following:
# strace cp /tmp/jffs.image  /dev/mtd0

See where it fails. It may give you a clue.

Vipin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-07-16 13:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-13 23:28 [Question] cp result.txt /dev/mtd0 problem 이재훈
2001-07-16 12:44 ` Andrew Dixon
2001-07-16 13:41   ` Vipin Malik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox