public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Sanjay Kumar <sankumar73@yahoo.com>
To: rkaiser@sysgo.de
Cc: linux-mtd@lists.infradead.org
Subject: Re: jffs2 mounting problem
Date: Thu, 4 Apr 2002 11:42:37 -0800 (PST)	[thread overview]
Message-ID: <20020404194237.87870.qmail@web13205.mail.yahoo.com> (raw)
In-Reply-To: <200204041814.g34IEjw20020@dagobert.svc.sysgo.de>

Hi Robert,
Thanks for you useful sugestions.
Now I create the character device using MAKEDEV script i.e 
crwxr--r--   1 root     root      90,   0 Mar 27  2002 mtd0
crwxr--r--   1 root     root      90,   2 Mar 27  2002 mtd1
crwxr--r--   1 root     root      90,   4 Mar 27  2002 mtd2
Also I am using eraseall(eraseall /dev/mtd2)to erase the last partition completely. 
Still I see the same behaviour. 
Also the used space remains at 100% and event after long time
it doesn't decrease.

Please let me know what else I can try. I am in very urgent need to solve this problem.

Thanks & regards,
Sanjay
--- Robert Kaiser <rob@sysgo.de> wrote:
> Hi,
> 
> Am Donnerstag, 4. April 2002 18:07 schrieben Sie:
> > I am using two AMD flash of 4MB each. Then I am relocating them such that
> > they are continuous.
> > Then I create  three partitions, first one for bootloader, second for JFFS2
> > root partition and the last is free to be used latter.
> >
> > Then probing of the flash also shows the following information -
> > physmap flash device: 800000 at bf800000
> > Number of erase regions: 2
> > Primary Vendor Command Set: 0002 (AMD/Fujitsu Standard)
> >
> > Now when I boot the system from 2nd jffs2 root partition I see the
> > following info -
> >
> > #cat /proc/mtd
> > dev:    size   erasesize  name
> > mtd0: 000a0000 00010000 "bootstrap and kernel"
> > mtd1: 00360000 00010000 "jffs2 filesystem"
> > mtd2: 00400000 00010000 "jffs2 2nd filesystem"
> >
> > Also I have following devices created -
> > #ls -l
> > crwxr--r--   1 root     root      90,   0 Mar 27  2002 mtd0
> > crwxr--r--   1 root     root      90,   1 Mar 27  2002 mtd1
> > crwxr--r--   1 root     root      90,   2 Mar 27  2002 mtd2
> > crw-r--r--   1 root     root      90,   4 Jan  1 00:03 mtd4
> > brwxr--r--   1 root     root      31,   0 Mar 27  2002 mtdblock0
> > brwxr--r--   1 root     root      31,   1 Mar 27  2002 mtdblock1
> > brw-r--r--   1 root     root      31,   2 Jan  1 00:02 mtdblock2
> >
> 
> Have a look at the MAKEDEV script in directory "util" of the MTD directory. 
> The minor numbers you chose for /dev/mtd? are, umm, unusual. I doubt you 
> really want them. The MAKEDEV script would have assigned these numbers:
> 
>    mtd0: 0
>    mtd1: 2
>    mtd2: 4
>    mtd4: 8
> 
> >
> >
> > Now I want the last partition to be mounted to /mnt directory.
> > For that first I use /dev/mtd4 for erasing the partition and
> 
> Due to the (presumably wrong) minor numbers, /dev/mtd4 in your case 
> corresponds to device mtd2 (i.e. "jffs2 2nd filesystem"), so that is
> what got erased.
> 
> > then I use the following command to mount the last partition -
> >
> > #mount -t jffs2 /dev/mtdblock2 /mnt
> 
> The minor number for mtdblock2 is correct (i.e. it also corresponds to the 
> "jffs2 2nd filesystem" partition), so this should actually work. My only 
> guess is that you may have used "erase /dev/mtd4" to do the erase ? Note that 
> the "erase" command by default erases only one block, "eraseall" erases an 
> entire device.
> 
> >
> > When the mounting is completed I use the command "df" and I see the
> > used space in the partition increases rapidly to 100%.
> 
> This is normal AFAIK. After increasing to 100% as you observed, it should go 
> back to some 5% or so (depends on the erase block size).
> 
> Hope this helps
> 
> Rob
> 
> 
> ----------------------------------------------------------------
> Robert Kaiser                         email: rkaiser@sysgo.de
> SYSGO RTS GmbH
> Am Pfaffenstein 14                    phone: (49) 6136 9948-762
> D-55270 Klein-Winternheim / Germany   fax:   (49) 6136 9948-10


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

  reply	other threads:[~2002-04-04 19:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-04 16:07 jffs2 mounting problem Sanjay Kumar
2002-04-04 17:16 ` Robert Kaiser
2002-04-04 19:42   ` Sanjay Kumar [this message]
2002-04-04 21:24   ` Sanjay Kumar
2002-04-08 14:14     ` ajcurtis84
  -- strict thread matches above, loose matches on Subject: below --
2005-07-28  7:57 JFFS2 " Amit Sharma
2005-07-28  9:15 ` Thomas Gleixner
2002-07-31 13:05 use "nandwrite" instead of "cp"? ??
2002-07-31 13:23 ` jffs2 mounting problem ??
2002-01-08 17:17 JFFS2 " Sanjay Kumar
2002-01-09  3:04 ` Vipin Malik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020404194237.87870.qmail@web13205.mail.yahoo.com \
    --to=sankumar73@yahoo.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=rkaiser@sysgo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox