odonovan_dan wrote:
> Hi
>
> I would like to completely erase the /dev/mtdblock/3 (rootfs)
> partition on a TS7400 with 32MB flash, so that I can reinstall a clean
> version of the ts-linux distro that comes pre-installed on it.
>
> Can anyone suggest a suitable tool or technique to use for this? I'm
> hoping for something more low-level that 'rm -rf' if possible, perhaps
> something that might scrub the OOB metadata produced by YAFFS also?
ftp://ftp.embeddedARM.com/ts-arm-sbc/ts-7200-linux/binaries/ts-utils/eraseall
This is the utility we use. You should just need to specify which
partition to erase. (Don't remember off the top of my head though
whether you need to specify the /dev/mtd* or /dev/mtdblock*, but I
*think* it's the former). It uses the mtd layer to erase all the blocks
on the partition; this includes the OOB blocks.
You could also use mtderase, but it's a bit less verbose about what it's
doing.
> Also, if I use some tool to completely erase the contents of
> /dev/mtdblock/3, would it then be sufficient to simply mount it as a
> YAFFS partition again to recreate the filesystem or is there an
> additional step that would be needed to "format" the partition?
YAFFS will detect the blocks are erased and will automatically do what
it needs to in order to use the partition.
> Thanks,
> -Dan
______ Best Regards,
|__ __/ Michael Schmidt
|| Software Engineer
||echnologic Systems (EmbeddedARM.com)
|| (480) 16525 East Laser Drive
|/ 837-5200 Fountain Hills, AZ 85268
http://oz.embeddedarm.com/~michael
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|