Mounting mtd block device raises "Block device required"
Andre Puschmann
andre.puschmann at stud.tu-ilmenau.de
Wed Jun 11 05:26:46 EDT 2008
Hi,
Hinko Kocevar wrote:
> Char device seems to work..
Yes, sorry for being not precise.
Coping a jffs2 image (in 2.6.25) at /dev/mtd5 and mouting the same one
in 2.6.21 (/dev/mtdblock5) works. So accessing the flash as a character
device works.
> What is the ls -l /dev/mtdblock5 output?
As expected:
$ ls -l /dev/mtdblock5
brw-rw---- 1 root root 31, 5 Jan 1 1970 /dev/mtdblock5
> Also could you try:
> mount -t jffs2 /dev/mtdblock5 /mnt/flash
I also tried that:
# mount -t jffs2 /dev/mtdblock5 /mnt/flash
mount: mounting /dev/mtdblock5 on /mnt/flash failed: Invalid argument
But it seems like it has to do something with the block device driver
mapping:
$ head -n 2 /dev/mtdblock5 | hexdump -C
head: /dev/mtdblock5: No such device or address
Thanks,
Andre
More information about the linux-mtd
mailing list