[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Permission problem on mtd block device



nikunj@xxxxxxx. Dadhania) writes:

> David Woodhouse <dwmw2@xxxxxxx.org> writes:
> 
> > nikunj@xxxxxxx.org said:
> > > mount /dev/mtdblock0 /mnt 
> > >
> > > this command works. it gives some directory listing such as..
> > >
> > > / # ls -al /mnt
> > > dr-xr-xr-x   1 0        0               0 Jan  1 00:03 .
> > > drwxr-xr-x  12 0        0            1024 Jul  2  2001 ..
> > > dr-xr-xr-x   1 0        0               0 Jan  1 00:03 001
> > > -r--r--r--   1 0        0               0 Jan  1 00:03 devices
> > > -r--r--r--   1 0        0               0 Jan  1 00:03 drivers
> > 
> > That looks like usbdevfs.
> Ooppps ... you are right...  
> 
> > cat /proc/mounts /proc/filesystems
> 
> /mnt # cat /proc/mounts 
> /dev/root / ext2 rw 0 0
> /proc /proc proc rw 0 0
> /dev/mtdblock0 /mnt usbdevfs rw 0 0
> 
> /mnt # cat /proc/filesystems 
> nodev   sockfs
> nodev   shm
> nodev   pipefs
> nodev   proc
>         ext2
> nodev   usbdevfs
> nodev   devpts
>         jffs
> 
> but where is the flash ?
> Is the major and minor number are correct which I have specified in 
> previous mail? (for the reference mtd0 90 0, mtdr 90 1, mtdblock0 31 0)
> In the /proc/mtd it shows the mtd0, mtd1 and mtd2 entries.
> And when i give the command
> 
> mount -t jffs /dev/mtdblock0 /mnt/
> mount: Mounting /dev/mtdblock0 on /mnt failed: Permission denied
> 
> how do I mount the jffs??

sorry to bother u all. Actually i was assigning wrong minor numbers.
I got the mtdblock2 mounted using jffs2. But still jffs is not working :( 

/dev # mount -t jffs /dev/mtdblock2 /mnt
jffs_scan_falsh():Free size accounting screwed
jfffs_scan_flash():free_chunk_size1 == 0x758c0, free_chunk_size2 == 0x0, fmc->free_size == 0x113540
JFFS: Failed to mount device 1f:02.
mount: Mounting /dev/mtdblock2 on /mnt failed: Invalid argument

Is jffs2 stable enough to use in production use or should i stick with jffs?
If i have to use jffs please guide me in this regard.


regards,

nikunj

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com