Re: [Yaffs] can't mount empty partition

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Manoj
Date:  
To: Charles Manning
CC: yaffs
Subject: Re: [Yaffs] can't mount empty partition
Here it is:

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 01000000 00020000 "NAND-block1"
mtd1: 01e00000 00020000 "jffs2"
mtd2: 0d200000 00020000 "NAND-block2"
# uname -a
Linux (none) 2.6.27.18 #9 PREEMPT Thu Jul 30 17:48:08 PDT 2009 armv6l unknown
# dmesg | grep yaffs
[42949375.510000] yaffs Jul 30 2009 16:53:28 Installing.
# cat /proc/yaffs
cat: can't open '/proc/yaffs': No such file or directory


I am using mtd2 for mounting yaffs2.

Thanks.

On Thu, Jul 30, 2009 at 9:46 PM, Charles Manning<> wrote:
> At this stage you will need to provide more info:
>
> cat /proc/yaffs
> cat /proc/mtd
> uname -a
>
> Seems odd that is immediately doing a sync and umount.
>
> -- CHarles
>
>
>
> On Friday 31 July 2009 16:36:30 Manoj wrote:
>> Yes, /mnt/ is an existing directory.
>>
>> On Thu, Jul 30, 2009 at 7:38 PM, Charles Manning<>
> wrote:
>> > On Friday 31 July 2009 13:06:26 Manoj wrote:
>> >> I am trying to mount an empty partition as yaffs2 and can't mount it.
>> >>
>> >> # mount -t yaffs2 /dev/mtdb-ctrl /mnt/
>> >> mount: mounting /dev/mtdb-ctrl on /mnt/ failed: Not a directory
>> >
>> > Is /mnt a directory?
>> >
>> >> From dmesg,
>> >> [42949409.200000] yaffs: dev is 32505858 name is "mtdblock2"
>> >> [42949409.200000] yaffs: passed flags ""
>> >> [42949409.200000] yaffs_read_super: Using yaffs2
>> >> [42949409.200000] yaffs_read_super: block size 4096
>> >> [42949409.200000] yaffs: Attempting MTD mount on 31.2, "mtdblock2"
>> >> [42949409.200000]  erase c0ad33d4
>> >> [42949409.200000]  read c0ad37d4
>> >> [42949409.200000]  write c0ad30ec
>> >> [42949409.200000]  readoob c0ad3704
>> >> [42949409.200000]  writeoob c0ad325c
>> >> [42949409.200000]  block_isbad c0ad3614
>> >> [42949409.200000]  block_markbad c0ad3678
>> >> [42949409.200000]  writesize 2048
>> >> [42949409.200000]  oobsize 64
>> >> [42949409.200000]  erasesize 131072
>> >> [42949409.200000]  size 220200960
>> >> [42949409.200000] yaffs locking
>> >> [42949409.720000] block 1677 is bad
>> >> [42949409.720000] block 1678 is bad
>> >> [42949409.720000] block 1679 is bad
>> >> [42949409.720000] block 1680 is bad
>> >> [42949409.730000] yaffs_read_super: guts initialised OK
>> >> [42949409.730000] yaffs unlocking
>> >> [42949409.730000] yaffs_get_inode for object 1
>> >> [42949409.730000] yaffs_read_super: got root inode
>> >> [42949409.730000] yaffs_read_super: d_alloc_root done
>> >> [42949409.730000] yaffs_read_super: done
>> >> [42949409.730000] yaffs_sync_fs
>> >> [42949409.730000] yaffs_clear_inode: ino 1, count 0 null object
>> >> [42949409.730000] yaffs_put_super
>> >> [42949409.730000] yaffs locking
>> >> [42949409.730000] save exit: isCheckpointed 1
>> >> [42949409.730000] yaffs unlocking
>> >>
>> >> I have completely erased the partition before mounting it.
>> >>
>> >> _______________________________________________
>> >> yaffs mailing list
>> >>
>> >> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>>
>> _______________________________________________
>> yaffs mailing list
>>
>> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>
>
>
> _______________________________________________
> yaffs mailing list
>
> http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs
>