From: Alexey Borovskoy <alexey_borovskoy@mail.ru>
To: community@altlinux.ru
Subject: [Comm] jffs2 и usb-flash брелок
Date: Mon, 12 Jul 2004 14:45:52 +1300
Message-ID: <200407121445.54198.alexey_borovskoy@mail.ru> (raw)
Добрый день.
Подскажите пожалуйста, как правильно поселить файловую систему
jffs2 на обычном usb-flash брелке.
С пакетом mtd и устройствами /dev/mtd0 и /dev/mtdblock0 уже
наигрался, не выходит каменный цветок.
Что я делал:
Поскольку брелок у меня один, то я решил потренироватся на
на /dev/loop0.
Создал /dev/mtd0
#mknod /dev/mtd0 c 90 0
Создал /dev/mtdblock0
#mknod /dev/mtdblock0 b 90 0
Путь номер 1
1. dd if=/dev/zero of=flash.img bs=1M count=128
2. losetup /dev/loop0 flash.img
3. modprobe blkmtd device=/dev/loop0
4. modprobe mtdblock
5. mkfs.jffs2 -o flash.fs -d /tmp. По размеру flash.fs видно что
что-то внутри есть.
6. dd if=flash.fs of=/dev/mtdblock0. Облом.
Но dd if=flash.fs of=/dev/mtd0 прокатывает.
Результат: /dev/loop0 не монтируется маунтом.
Путь номер 2
1. dd if=/dev/zero of=flash.img bs=1M count=128
2. losetup /dev/loop0 flash.img
3. mkfs.jffs2 -o flash.fs -d /tmp. По размеру flash.fs видно что
что-то внутри есть.
6. dd if=flash.fs of=/dev/losetup0.
Результат: /dev/loop0 не монтируется маунтом.
flash_eraseall -j /dev/mtd0 нормально стирает псевдо-флешку.
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
next reply other threads:[~2004-07-12 1:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-12 1:45 Alexey Borovskoy [this message]
2004-07-13 9:56 ` [Comm] " Денис Смирнов
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=200407121445.54198.alexey_borovskoy@mail.ru \
--to=alexey_borovskoy@mail.ru \
--cc=community@altlinux.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git