ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] jffs2 и usb-flash брелок
@ 2004-07-12  1:45 Alexey Borovskoy
  2004-07-13  9:56 ` [Comm] " Денис Смирнов
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Borovskoy @ 2004-07-12  1:45 UTC (permalink / raw)
  To: community

Добрый день.

Подскажите пожалуйста, как правильно поселить файловую систему 
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


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

end of thread, other threads:[~2004-07-13  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-12  1:45 [Comm] jffs2 и usb-flash брелок Alexey Borovskoy
2004-07-13  9:56 ` [Comm] " Денис Смирнов

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