Best filesystem for wandboard

111 views
Skip to first unread message

Иван Ефремов

unread,
Dec 18, 2014, 1:47:36 AM12/18/14
to wand...@googlegroups.com
Hello! I develope the device, based on wandboard with Ubuntu 13.10 with kernel 3.0.35. 
The device poweron and poweroff with DC Jack plug in and remove (without command "shutdown"). On this device work one program, that contains all data into RAM and transfer some data with WiFi and Ethernet.
What prefered filesystem and options for this case, that not damage SD Card and filesystem with hard poweroff at work process?
Thank you!

Maxim Podbereznyy

unread,
Dec 18, 2014, 3:10:11 AM12/18/14
to wand...@googlegroups.com
Probably read-only mode is the best choice for your system - it will
not depend on any power failures.
> --
> You received this message because you are subscribed to the Google Groups
> "Wandboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to wandboard+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
LinkedIn - http://www.linkedin.com/in/maximpodbereznyy
Company - http://www.linkedin.com/company/mentorel
Facebook - https://www.facebook.com/mentorel.company

Иван Ефремов

unread,
Dec 18, 2014, 3:14:05 AM12/18/14
to
I think about it, but sometimes I need save options of program and dump of Ethernet traffic on  SD card. And sometime I need update my program over Ethernet.

четверг, 18 декабря 2014 г., 11:10:11 UTC+3 пользователь Maxim Podbereznyy написал:

Cristiano Werner Araújo

unread,
Dec 18, 2014, 6:27:08 AM12/18/14
to wand...@googlegroups.com
You are using Wandboard it self, only the module or a board based in its hardware ?

You may use the second SD card as a storage thus keeping your system SD card safe. A cheap alternative is to create a read-write partition for this data and keep the system in read-only, this way you may corrupt your data, but not your system.

On Thu, Dec 18, 2014 at 6:14 AM, Иван Ефремов <efrem...@gmail.com> wrote:
I think about it, but sometimes I need save options of program and dump of Ethernet traffic on  SD card.

четверг, 18 декабря 2014 г., 11:10:11 UTC+3 пользователь Maxim Podbereznyy написал:
Probably read-only mode is the best choice for your system - it will
not depend on any power failures.


Maxim Podbereznyy

unread,
Dec 18, 2014, 6:37:06 AM12/18/14
to wand...@googlegroups.com
what if you connect an external FRAM ic? It does not depend on power,
but it will work only if your data to save is not very big

2014-12-18 14:26 GMT+03:00 Cristiano Werner Araújo
<cristianow...@gmail.com>:

Иван Ефремов

unread,
Dec 18, 2014, 6:48:46 AM12/18/14
to wand...@googlegroups.com
Cristiano Werner Araújo, I'am using EDM module from wandboard, in this case I have not second card slot. According two partition read-only and read-write - good idea, I try to use it and test my system.
Maxim Podbereznyy, the dump of Ethernet data maybee very big, and using FRAM not good variant.

I think that two partition is best variant for my device.

Cristiano Werner Araújo

unread,
Dec 18, 2014, 7:25:44 AM12/18/14
to wand...@googlegroups.com
Иван Ефремов,

One other thing that can mitigate your problems is using a "no-break". 
I've never tested it, but you can use a battery  ( like this one :http://www.dx.com/p/kinston-universal-2600mah-li-ion-portable-external-power-bank-for-iphone-cellphone-more-black-366754#.VJLHXnW9-00 )
and monitor the power source , if it is gone, turn off it.
Since these batts are supplied with 5V and supply 5V, you can use a GPIO with a voltage divider to check it.

but this depends on your solution size and environment. 


--

Иван Ефремов

unread,
Dec 18, 2014, 7:32:36 AM12/18/14
to wand...@googlegroups.com
Unfortunately my device have fixed size, and I can't include reserve power source.

четверг, 18 декабря 2014 г., 15:25:44 UTC+3 пользователь Cristiano Werner Araújo написал:

Иван Ефремов

unread,
Dec 19, 2014, 1:24:54 AM12/19/14
to wand...@googlegroups.com
I was going to transfer the file system to read-only mode, but I had a question - how do I change the LAN IP address if the "interfaces" file is not writable?

Cristiano Werner Araújo

unread,
Dec 19, 2014, 4:29:57 AM12/19/14
to wand...@googlegroups.com
One solution to that is use a RW partition to put the config files /etc/* , and link those files to the original file system:

$ls rootfs/etc/network/
interfaces -> /mnt/rw_partition/interfaces

In these partition you will have all files that are subjected to change


On Fri, Dec 19, 2014 at 4:24 AM, Иван Ефремов <efrem...@gmail.com> wrote:
I was going to transfer the file system to read-only mode, but I had a question - how do I change the LAN IP address if the "interfaces" file is not writable?

--

Иван Ефремов

unread,
Dec 22, 2014, 9:55:47 AM12/22/14
to wand...@googlegroups.com
I read more manual for make read-only fs. There are several variant: aufs, edit /etc/fstab (but now it's clean) and another. What is best variant for make read-only rootfs. Has anyone done this? Thank you!

Victor Ionkin

unread,
Dec 29, 2014, 2:08:30 PM12/29/14
to wand...@googlegroups.com
I am using read-only file system. Editing fstab is the simplest way. You can find all info on Web. Here is the example (though you may need to adjust device names, volume name and etc):
rootfs               /                    auto       ro,noauto,user,exec   1  1
#rootfs              /                    auto       defaults              1  1
/dev/mmcblk0p1       /boot                auto       defaults              0  0
/dev/mmcblk0p4       /data                auto       defaults              0  0

Иван Ефремов

unread,
Dec 30, 2014, 1:24:19 AM12/30/14
to wand...@googlegroups.com
Thank you! I trying this method, but I selected another way. I modifed bootloader, that mounting rootfs partition in read-only. Second partition I try mount in read-write with fstab, but I get on problem: When my process try to start at loading system (S80MyProc at rcX.d) from data partition mmcblk0p3, system can't find path. I think that partition is not already mounted. When I try start process after login to system, it's all good. That problem may be? Why partition don't mounted before login to system?

понедельник, 29 декабря 2014 г., 22:08:30 UTC+3 пользователь Victor Ionkin написал:
Reply all
Reply to author
Forward
0 new messages