ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@freesource.info>
To: community@altlinux.ru
Subject: [Comm] Re: jffs2 и usb-flash брелок
Date: Tue, 13 Jul 2004 12:56:27 +0300
Message-ID: <40F3B1CB.2010905@freesource.info> (raw)
In-Reply-To: <200407121445.54198.alexey_borovskoy@mail.ru>

Alexey Borovskoy wrote:

>Добрый день.
>
>Подскажите пожалуйста, как правильно поселить файловую систему 
>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 нормально стирает псевдо-флешку.
>
>  
>
jffs2 надо монтировать с /dev/mtd0 (или mtdblock0, уже не помню). Она не 
умеет работать с обычными блочными устройствами, только c mtd.



      reply	other threads:[~2004-07-13  9:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-12  1:45 [Comm] " Alexey Borovskoy
2004-07-13  9:56 ` Денис Смирнов [this message]

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=40F3B1CB.2010905@freesource.info \
    --to=mithraen@freesource.info \
    --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