lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMuHMdUqfqxfxHxuMY1W1jfovun3WvXy05wsYUHz53Pwrio+jw@mail.gmail.com>
Date:	Wed, 20 Nov 2013 12:02:29 +0100
From:	Geert Uytterhoeven <geert@...ux-m68k.org>
To:	Suki Buryani <sukiburyani@...oo.com>
Cc:	"uclinux-dev@...inux.org" <uclinux-dev@...inux.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: Having troubles in updating MTD partitions

On Wed, Nov 20, 2013 at 11:49 AM, Suki Buryani <sukiburyani@...oo.com> wrote:
>>5824 is the usable size of the file system on mtdblock3, i.e. after subtracting
> the overhead for file system bookkeeping.
>
> By default mtd partitions were like
>
> cat /proc/partitions
> major minor  #blocks  name
>
>   31     0       8192 mtdblock0
>   31     1        256 mtdblock1
>   31     2       2048 mtdblock2
>   31     3       5824 mtdblock3
>   31     4         64 mtdblock4
>
> mtdblock3 was having 5824 blocks and 5824 blocks were able to use,
>
> I think you are missing my point, i have increase size of mtdblock3 but i am unable use whole partion and idk why

Sorry, I indeed misunderstood you.

Could it be that jffs2 requires a minimum granularity for file system sizes?
Probably the size needs to be a multiple of the eraseblock size?

$ factor 5824
5824: 2 2 2 2 2 2 7 13
$ factor 5884
5884: 2 2 1471

I.e. the former is a multiple of 64 (KiB), the latter is a multiple of 4 (KiB).

> there is one more thing, Can any one tell me how i can change eraseblock for a partition, i > believe i also having wrong eraseblock for mtdblock3

Sorry, I don't know.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ