From: Angelo Dureghello <angelo70@gmail.com>
To: linux-mtd@lists.infradead.org
Subject: help request, jffs2 fs files get lost
Date: Sun, 01 May 2011 13:35:14 +0200 [thread overview]
Message-ID: <4DBD4572.5040508@gmail.com> (raw)
Hi all,
i am looking for some help on an issue with jffs2: i can create jffs2 fs, mount, store edit/write some files, unmount,
but in a next mount i find no more files/dirs.
MTD probe detect correctly my flash, the chip allows erase sectors of 4KB, or blocks of 64KB. MTD shows correctly a 0x1000 erase size.
/ # / # cat /proc/mtd
dev: size erasesize name
mtd0: 00010000 00001000 "Colilo (64K)"
mtd1: 002f0000 00001000 "Kernel+ROMfs (3008K)"
mtd2: 00100000 00001000 "JFFS2 (1024K)" <--- want to use this partition only as jffs2 to store non volatile data
mtd3: 0009d000 00001000 "ROMfs"
So from uClinux, i try to prepare the jffs2 fs:
# eraseall /dev/mtd2
erased 1024 Kibyte @ 0 -- 100% complete.
cat /dev/mtd2 i see the flash has been cleared
then i create a folder "backup" in /var with some files and try to crete the jffs2 fs:
mkfs.jffs2 -d backup -o jffs2.img
cp /deV/mtd2 jffs2.img
Then i just mount/umount the device, but i get often the issue decribed.
Any help is really appreciated.
many thanks
angelo
next reply other threads:[~2011-05-01 11:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-01 11:35 Angelo Dureghello [this message]
2011-05-02 6:55 ` help request, jffs2 fs files get lost Ricard Wanderlof
2011-05-02 8:43 ` angelo
[not found] ` <4DBE6BCD.3050400@gmail.com>
2011-05-02 8:58 ` Ricard Wanderlof
2011-05-02 9:16 ` angelo
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=4DBD4572.5040508@gmail.com \
--to=angelo70@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.