Fail to mount cloned disk image with fastmap.
Bill Pringlemeir
bpringlemeir at nbsps.com
Thu Aug 15 14:23:26 EDT 2013
On 15 Aug 2013, bpringlemeir at nbsps.com wrote:
> I have back-ported the fastmap code from the 3.0 series to a 2.6.36
> kernel on an ARM cpu. It has been running for some time without issue
> and the boot time is reduced by 1/2 second. I just ran a test over
> night with 'pppd' capturing packets and likely filled up the disk.
>
> It appears that my kernel does not boot, so I made a clone of the disk
> and then attempt to mount it on my Ubuntu machine,
[snip]
> The 'modprobe' of the UBI fails with the 3.8 Ubuntu kernel. Should I
> re-compile without MTD_UBI_FASTMAP to see if I can mount the file
> system? I would like to be able to look at the file system, even in
> read-only mode. The kernel logs are below from the 'ubi' modprobe.
> Is there actually an issue here with UBI? But I think that some of the
> UBI issues might be a problem? Can I use some other flash with a
> bigger size so that 'PEBs' can be reserved?
I remounted the Ubuntu machine with nandsim and only used a single
partition. This gets rid of the 'print_rsvd_warning'. However, the
image still can not be mounted on the PC with ubifs (UBI has fast map).
I recompiled my Linux 2.6.36 without Linux and used a 'nandwrite' and
'tftp' from an initramfs to reproduce the image on another device. The
2.6.36 patched kernel mount it after correcting some errors. However,
as the 'bad blocks' are different between devices, I may have missed
some data and this made it work.
Fwiw,
Bill Pringlemeir.
More information about the linux-mtd
mailing list