problem with build jffs2 filesystem
----- Original Message -----
From:David Woodhouse <[email protected]>
To:fyaowen <[email protected]>
Subject:Re: problem with build jffs2 filesystem
Date:Sat, 30 Mar 2002 23:30:23 +0800
Quoted 8 lines
Quoted 4 lines · [email protected] said:
dd if=jffs2.image of=/dev/mtd7
mount -t jffs2/dev/mtd7/mnt
After I gave out this instruction, all partitions on Neponset were erased.That mount command should have failed. You cannot mount the character device.
ls -l /dev
brw-r--r-- 1 root root 31, 7 Jan 28 14:16 mtd7
I have no mtdblocks, only mtd* instead. The major number of mtd7 is 31. So mtd7 is a block device, isn't it?
Quoted 7 lines
--
dwmw2
______________________________________
===================================================================
������ѵ������� (http://mail.sina.com.cn)
���˷�����Ϣ�������г���һ�ߣ��ó���ʱ�ͳ��֣� (http://classad.sina.com.cn/2shou/)
Quoted 5 lines · fyaowen
ls -l /dev
brw-r--r-- 1 root root 31, 7 Jan 28 14:16 mtd7I have no mtdblocks, only mtd* instead. The major number of mtd7 is 31. So mtd7 is a block device, isn't it?
It is, although the name is confusing. Usually, mtd7 is a char device (major 90, minor 14) and mtdblock7 is the name for your mtd7.
Jörn
Signature · 3 lines
When your language is nowhere near Turing-complete, syntactic sugar can be your friend. -- Eric Raymond in "The cathedral and the bazaar"