fdisk -l?




From: roystonvasey <mikestocks@madasafish.com>
To: gumstix-users@lists.sourceforge.net
Sent: Tuesday, December 6, 2011 5:33 PM
Subject: [Gumstix-users] Filesystem type detection

Dear List,
I have an interesting problem that I hope someone can help me with.
Is there a way to determine the filesystem type of the on-board NAND when
the booting from an SD card?
With both JFFS2 and UBI if you try to mount the NAND filesystem and choose
the wrong one they will try to 'fix the errors' and kill/corrupt any data
that was there.

The reason that I'm asking is that I have a few hundred Overo based units
out in the field. All units are using on-board NAND file systems. Newer
units are using UBI, older ones JFFS2.
The latest application version I am wanting to distribute has a dependency
on a 3.0 kernel and id like to upgrade JFFS2 systems to UBI so the usual
mechanisms for package upgrades wont work for older kernel/filesystem
versions.

I am trying to make it as easy as possible for our field techs to upgrade
the systems as possible.
My plan is to provide them with a microSD that they can plug in, reboot
(press the reset) and the sd image will boot and perform the upgrade.

As part of the upgrade the existing data and configurations need to be
pulled off before the RootFS is replaced so I need to mount the NAND
filesystem and need to choose the correct type.

My best guess is to try and read the u-boot configuration data to determine
what FS u-boot is configured for.

Any help would be appreciated.

Cheers Mike.


--
View this message in context: http://gumstix.8.n6.nabble.com/Filesystem-type-detection-tp1279299p1279299.html
Sent from the Gumstix mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users