Re: [beagleboard] SD card errors on hard reboot

2018-03-20 Thread Graham Haddock
I don't use node.js, so I am not familiar with it.
The name of the function suggests that it does a 'sync' after the write,
which is what you want.
In Linux, the 'sync' command flushes all the buffers to disk.
I would just read the manual on the function to make sure it is doing what
you want.
--- Graham

==

On Tue, Mar 20, 2018 at 12:28 PM, Troy Weber  wrote:

> How would you flush the sd card buffers from node.js? To write to the
> files I am doing using the *writeFileSync* command.
>
>
> On Monday, March 19, 2018 at 5:55:12 PM UTC-7, Graham wrote:
>>
>> As a matter of buffer hygiene, are you flushing the buffers to the sd
>> card after every time you write to it?
>> Something like the equivalent of the 'sync' command?
>> If there is still unwritten info in the buffers when the power gets
>> pulled, bye-bye data.
>>
>> In Linux, when the mounted drive is suddenly declared "read-only" it
>> means that the OS has observed some corruption or error in the file system,
>> and does so to prevent further corruption.
>>
>> --- Graham
>>
>> ==
>>
>> On Monday, March 19, 2018 at 6:59:29 PM UTC-5, Wulf Man wrote:
>>>
>>> I dont know if its for sale there was a battery cape
>>> or you can go with custom hardware
>>>
>>>
>>> On 3/19/2018 4:56 PM, Troy Weber wrote:
>>>
>>> Well we need to be able to pull the plug without damaging things. Is the
>>> best option then to have a battery system that allows BBB to listen for
>>> loss of power and gracefully shut down? Are there alternative methods?
>>>
>>> Troy Weber
>>> Mechatronics / Software Developer
>>> troyw...@gmail.com
>>> 707-761-1644 <(707)%20761-1644>
>>> sent from mobile
>>>
>>> On Mon, Mar 19, 2018, 4:42 PM evilwulfie  wrote:
>>>
 Well yes if you fail to unmount a file system you can have issues.
 On my systems i designed a battery backup system to prevent just the
 issues you
 are seeing now.
 It does not happen all the time but one time is unacceptable.

 Beaglebone is a live filesystem and you cant just pull the plug.

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups "BeagleBoard" group.
 To unsubscribe from this topic, visit https://groups.google.com/d/to
 pic/beagleboard/MfN646FtxiA/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 beagleboard...@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/ms
 gid/beagleboard/9e31b553-0c83-640b-99ab-b1b3f2c993ce%40gmail.com.
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> For more options, visit http://beagleboard.org/discuss
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "BeagleBoard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to beagleboard...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/beagleboard/CAPMxd4SkyyydxiQgzeKQY%3DKoryWZ792Wuxv2%
>>> 2BvW2Cgv-KjbwsQ%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/beagleboard/MfN646FtxiA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beagleboard/980149f3-a0a8-4863-a327-3fd4a0e2657a%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CANN_KV5qK0zke1B88DA2U9dS4PdCeqfZZrV-WGhedZxHJ5x%3Dng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SD card errors on hard reboot

2018-03-20 Thread Troy Weber
How would you flush the sd card buffers from node.js? To write to the files 
I am doing using the *writeFileSync* command.

On Monday, March 19, 2018 at 5:55:12 PM UTC-7, Graham wrote:
>
> As a matter of buffer hygiene, are you flushing the buffers to the sd card 
> after every time you write to it?
> Something like the equivalent of the 'sync' command?
> If there is still unwritten info in the buffers when the power gets 
> pulled, bye-bye data.
>
> In Linux, when the mounted drive is suddenly declared "read-only" it means 
> that the OS has observed some corruption or error in the file system, and 
> does so to prevent further corruption.
>
> --- Graham
>
> ==
>
> On Monday, March 19, 2018 at 6:59:29 PM UTC-5, Wulf Man wrote:
>>
>> I dont know if its for sale there was a battery cape
>> or you can go with custom hardware
>>
>>
>> On 3/19/2018 4:56 PM, Troy Weber wrote:
>>
>> Well we need to be able to pull the plug without damaging things. Is the 
>> best option then to have a battery system that allows BBB to listen for 
>> loss of power and gracefully shut down? Are there alternative methods? 
>>
>> Troy Weber
>> Mechatronics / Software Developer
>> troyw...@gmail.com
>> 707-761-1644
>> sent from mobile
>>
>> On Mon, Mar 19, 2018, 4:42 PM evilwulfie  wrote:
>>
>>> Well yes if you fail to unmount a file system you can have issues.
>>> On my systems i designed a battery backup system to prevent just the
>>> issues you
>>> are seeing now.
>>> It does not happen all the time but one time is unacceptable.
>>>
>>> Beaglebone is a live filesystem and you cant just pull the plug.
>>>
>>> --
>>> For more options, visit http://beagleboard.org/discuss
>>> ---
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "BeagleBoard" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/beagleboard/MfN646FtxiA/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> beagleboard...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/beagleboard/9e31b553-0c83-640b-99ab-b1b3f2c993ce%40gmail.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> For more options, visit http://beagleboard.org/discuss
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to beagleboard...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/CAPMxd4SkyyydxiQgzeKQY%3DKoryWZ792Wuxv2%2BvW2Cgv-KjbwsQ%40mail.gmail.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/980149f3-a0a8-4863-a327-3fd4a0e2657a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread evilwulfie
the EMMC can also suffer from the plug being pulled

On 3/19/2018 5:59 PM, Troy Weber wrote:
> probably not! I'll have to look into flushing buffers, I've never
> heard of that.
>
> Troy Weber
> Mechatronics / Software Developer
> troywwe...@gmail.com 
> 707-761-1644
> sent from mobile
>
> On Mon, Mar 19, 2018, 5:55 PM Graham  > wrote:
>
> As a matter of buffer hygiene, are you flushing the buffers to the
> sd card after every time you write to it?
> Something like the equivalent of the 'sync' command?
> If there is still unwritten info in the buffers when the power
> gets pulled, bye-bye data.
>
> In Linux, when the mounted drive is suddenly declared "read-only"
> it means that the OS has observed some corruption or error in the
> file system, and does so to prevent further corruption.
>
> --- Graham
>
> ==
>
> On Monday, March 19, 2018 at 6:59:29 PM UTC-5, Wulf Man wrote:
>
> I dont know if its for sale there was a battery cape
> or you can go with custom hardware
>
>
> On 3/19/2018 4:56 PM, Troy Weber wrote:
>> Well we need to be able to pull the plug without damaging
>> things. Is the best option then to have a battery system that
>> allows BBB to listen for loss of power and gracefully shut
>> down? Are there alternative methods?
>>
>> Troy Weber
>> Mechatronics / Software Developer
>> troyw...@gmail.com
>> 707-761-1644
>> sent from mobile
>>
>> On Mon, Mar 19, 2018, 4:42 PM evilwulfie 
>> wrote:
>>
>> Well yes if you fail to unmount a file system you can
>> have issues.
>> On my systems i designed a battery backup system to
>> prevent just the
>> issues you
>> are seeing now.
>> It does not happen all the time but one time is unacceptable.
>>
>> Beaglebone is a live filesystem and you cant just pull
>> the plug.
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to a
>> topic in the Google Groups "BeagleBoard" group.
>> To unsubscribe from this topic, visit
>> 
>> https://groups.google.com/d/topic/beagleboard/MfN646FtxiA/unsubscribe.
>> To unsubscribe from this group and all its topics, send
>> an email to beagleboard...@googlegroups.com.
>> To view this discussion on the web visit
>> 
>> https://groups.google.com/d/msgid/beagleboard/9e31b553-0c83-640b-99ab-b1b3f2c993ce%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> -- 
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the
>> Google Groups "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from
>> it, send an email to beagleboard...@googlegroups.com.
>> To view this discussion on the web visit
>> 
>> https://groups.google.com/d/msgid/beagleboard/CAPMxd4SkyyydxiQgzeKQY%3DKoryWZ792Wuxv2%2BvW2Cgv-KjbwsQ%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in
> the Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/MfN646FtxiA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email
> to beagleboard+unsubscr...@googlegroups.com
> .
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/beagleboard/a08143d4-f0b3-43c2-b497-421a2bdd93bb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to beagleboard+unsubscr...@googlegroups.com
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/CAPMxd4SG7YLXS2%2BbYa9xMYnScZUAKRLyvWy%3DVP1usUX03gQ8qg%40mail.g

Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread Troy Weber
probably not! I'll have to look into flushing buffers, I've never heard of
that.

Troy Weber
Mechatronics / Software Developer
troywwe...@gmail.com
707-761-1644
sent from mobile

On Mon, Mar 19, 2018, 5:55 PM Graham  wrote:

> As a matter of buffer hygiene, are you flushing the buffers to the sd card
> after every time you write to it?
> Something like the equivalent of the 'sync' command?
> If there is still unwritten info in the buffers when the power gets
> pulled, bye-bye data.
>
> In Linux, when the mounted drive is suddenly declared "read-only" it means
> that the OS has observed some corruption or error in the file system, and
> does so to prevent further corruption.
>
> --- Graham
>
> ==
>
> On Monday, March 19, 2018 at 6:59:29 PM UTC-5, Wulf Man wrote:
>>
>> I dont know if its for sale there was a battery cape
>> or you can go with custom hardware
>>
>>
>> On 3/19/2018 4:56 PM, Troy Weber wrote:
>>
>> Well we need to be able to pull the plug without damaging things. Is the
>> best option then to have a battery system that allows BBB to listen for
>> loss of power and gracefully shut down? Are there alternative methods?
>>
>> Troy Weber
>> Mechatronics / Software Developer
>> troyw...@gmail.com
>> 707-761-1644
>> sent from mobile
>>
>> On Mon, Mar 19, 2018, 4:42 PM evilwulfie  wrote:
>>
>>> Well yes if you fail to unmount a file system you can have issues.
>>> On my systems i designed a battery backup system to prevent just the
>>> issues you
>>> are seeing now.
>>> It does not happen all the time but one time is unacceptable.
>>>
>>> Beaglebone is a live filesystem and you cant just pull the plug.
>>>
>>> --
>>> For more options, visit http://beagleboard.org/discuss
>>> ---
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "BeagleBoard" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/beagleboard/MfN646FtxiA/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> beagleboard...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/beagleboard/9e31b553-0c83-640b-99ab-b1b3f2c993ce%40gmail.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to beagleboard...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/beagleboard/CAPMxd4SkyyydxiQgzeKQY%3DKoryWZ792Wuxv2%2BvW2Cgv-KjbwsQ%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/MfN646FtxiA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/a08143d4-f0b3-43c2-b497-421a2bdd93bb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAPMxd4SG7YLXS2%2BbYa9xMYnScZUAKRLyvWy%3DVP1usUX03gQ8qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread Graham
As a matter of buffer hygiene, are you flushing the buffers to the sd card 
after every time you write to it?
Something like the equivalent of the 'sync' command?
If there is still unwritten info in the buffers when the power gets pulled, 
bye-bye data.

In Linux, when the mounted drive is suddenly declared "read-only" it means 
that the OS has observed some corruption or error in the file system, and 
does so to prevent further corruption.

--- Graham

==

On Monday, March 19, 2018 at 6:59:29 PM UTC-5, Wulf Man wrote:
>
> I dont know if its for sale there was a battery cape
> or you can go with custom hardware
>
>
> On 3/19/2018 4:56 PM, Troy Weber wrote:
>
> Well we need to be able to pull the plug without damaging things. Is the 
> best option then to have a battery system that allows BBB to listen for 
> loss of power and gracefully shut down? Are there alternative methods? 
>
> Troy Weber
> Mechatronics / Software Developer
> troyw...@gmail.com 
> 707-761-1644
> sent from mobile
>
> On Mon, Mar 19, 2018, 4:42 PM evilwulfie > 
> wrote:
>
>> Well yes if you fail to unmount a file system you can have issues.
>> On my systems i designed a battery backup system to prevent just the
>> issues you
>> are seeing now.
>> It does not happen all the time but one time is unacceptable.
>>
>> Beaglebone is a live filesystem and you cant just pull the plug.
>>
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "BeagleBoard" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/beagleboard/MfN646FtxiA/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> beagleboard...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/9e31b553-0c83-640b-99ab-b1b3f2c993ce%40gmail.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> For more options, visit http://beagleboard.org/discuss
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to beagleboard...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/CAPMxd4SkyyydxiQgzeKQY%3DKoryWZ792Wuxv2%2BvW2Cgv-KjbwsQ%40mail.gmail.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/a08143d4-f0b3-43c2-b497-421a2bdd93bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread evilwulfie
I dont know if its for sale there was a battery cape
or you can go with custom hardware


On 3/19/2018 4:56 PM, Troy Weber wrote:
> Well we need to be able to pull the plug without damaging things. Is
> the best option then to have a battery system that allows BBB to
> listen for loss of power and gracefully shut down? Are there
> alternative methods?
>
> Troy Weber
> Mechatronics / Software Developer
> troywwe...@gmail.com 
> 707-761-1644
> sent from mobile
>
> On Mon, Mar 19, 2018, 4:42 PM evilwulfie  > wrote:
>
> Well yes if you fail to unmount a file system you can have issues.
> On my systems i designed a battery backup system to prevent just the
> issues you
> are seeing now.
> It does not happen all the time but one time is unacceptable.
>
> Beaglebone is a live filesystem and you cant just pull the plug.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in
> the Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/MfN646FtxiA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email
> to beagleboard+unsubscr...@googlegroups.com
> .
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/beagleboard/9e31b553-0c83-640b-99ab-b1b3f2c993ce%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to beagleboard+unsubscr...@googlegroups.com
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/CAPMxd4SkyyydxiQgzeKQY%3DKoryWZ792Wuxv2%2BvW2Cgv-KjbwsQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/e13e10d3-f18d-6e01-1d97-347fd3f4c2f4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread Troy Weber
Well we need to be able to pull the plug without damaging things. Is the
best option then to have a battery system that allows BBB to listen for
loss of power and gracefully shut down? Are there alternative methods?

Troy Weber
Mechatronics / Software Developer
troywwe...@gmail.com
707-761-1644
sent from mobile

On Mon, Mar 19, 2018, 4:42 PM evilwulfie  wrote:

> Well yes if you fail to unmount a file system you can have issues.
> On my systems i designed a battery backup system to prevent just the
> issues you
> are seeing now.
> It does not happen all the time but one time is unacceptable.
>
> Beaglebone is a live filesystem and you cant just pull the plug.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/MfN646FtxiA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/9e31b553-0c83-640b-99ab-b1b3f2c993ce%40gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAPMxd4SkyyydxiQgzeKQY%3DKoryWZ792Wuxv2%2BvW2Cgv-KjbwsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread evilwulfie
Well yes if you fail to unmount a file system you can have issues.
On my systems i designed a battery backup system to prevent just the
issues you
are seeing now.
It does not happen all the time but one time is unacceptable.

Beaglebone is a live filesystem and you cant just pull the plug.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/9e31b553-0c83-640b-99ab-b1b3f2c993ce%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread Troy Weber
I failed to attach it. It would not download the file (due to an io error). 
So the file I just attached is empty. When I cat the file on the linux 
system I get the following:

# cat /media/sd/config/WaterfallDiceGame.json 
{
  "_id": 302,
  "name": "diceGamePrototype",
  "type": "system",
  "label": "Dice Game Prototype",
  "packageName": 
"../../../../lib/hardware/oddson-waterfall-dice-game-system",
  "adapters": [],
  "drivers": [
{
  "_id": 200,
  "name": "button",
  "label": "Button",
  "type": "driver",
  "packageName": "@synap/bonescript-state-sensor-driver",
  "adapters": [],
  "config": {
"activeValue": 1,
"pin": "P8_33",
"debounce": {
  "checkRate": 1,
  "checks": 20
}
  }
},
{
  "_id": 201,
  "name": "buttonRed",
  "label": "Button Red",
  "type": "driver",
  "packageName": "@synap/bonescript-state-switch-driver",
  "adapters": [],
  "config": {
"pin": "P8_46",
"activeState": 1,
"startOn": false
  }
},
{
  "_id": 202,
  "name": "buttonGreen",
  "label": "Button Green",
  "type": "driver",
  "packageName": "@synap/bonescript-state-switch-driver",
  "adapters": [],
  "config": {
"pin": "P8_36",
"activeState": 1,
"startOn": false
  }
},
{
  "_id": 203,
  "name": "buttonBlue",
  "label": "Button Blue",
  "type": "driver",
  "packageName": "@synap/bonescript-state-switch-driver",
  "adapters": [],
  "config": {
"pin": "P8_34",
"activeState": 1,
"startOn": false
  }
},
{
  "_id": 210,
  "name": "solenoid1",
  "label": "Solenoid 1",
  "type": "driver",
  "packageName": "@synap/bonescript-state-switch-driver",
  "adapters": [],
  "config": {
"pin": "P8_29",
"activeState": 0,
"startOn": false
  }
},
{
  "_id": 211,
  "name": "solenoid2",
  "label": "Solenoid 2",
  "type": "driver",
  "packageName": "@synap/bonescript-state-switch-driver",
  "adapters": [],
  "config": {
"pin": "P8_27",
"activeState": 0,
"startOn": false
  }
},
{
  "_id": 220,
  "name": "diceCam",
  "label": "Camera",
  "type": "driver",
  "packageName": "../../../../lib/hardware/ffmpeg-camera-driver",
  "adapters": [],
  "config": {
"camera": "/dev/video0",
"video": {
  "filename": "roll.avi",
  "date": true,
  "time": true,
  "width": 1024,
  "height": 576,
  "fps": 15,
  "duration": 4
},
"photo": {
  "filename": "photo.jpg",
  "date": true,
  "time": true,
  "width": 640,
  "height": 480
}
  }
},
{
  "_id": 230,
  "name": "lights1",
  "label": "Lights 1",
  "type": "driver",
  "packageName": "../../../../lib/hardware/oddson-blinkstick-driver",
  "adapters": [],
  "config": {
"serialNo": "BS016951-3.1",
"ledCount": 15,
"animation": [
  {
"duration": 250,
"data": [
  255,
  0,
  0
]
  },
  {
"duration": 250,
"data": [
  255,
  63,
  0
]
  },
  {
"duration": 250,
"data": [
  255,
  127,
  0
]
  },
  {
"duration": 250,
"data": [
  255,
  191,
  0
]
  },
  {
"duration": 250,
"data": [
  255,
  255,
  0
]
  },
  {
"duration": 250,
"data": [
  191,
  255,
  0
]
  },
  {
"duration": 250,
"data": [
  127,
  255,
  0
]
  },
  {
"duration": 250,
"data": [
  63,
  255,
  0
]
  },
  {
"duration": 250,
"data": [
  0,
  255,
  0
]
  },
  {
"duration": 250,
"data": [
  0,
  255,
  63
]
  },
  {
"duration": 250,
"data": [
  0,
  255,
  127
]
  },
  {
"duration": 250,
"data": [
  0,
  255,
  191
]
  },
  {
"duration": 250,
"data": [
  0,

Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread Troy Weber
I should also say that adding noatime does not appear the solve the issue. 
One configuration file in particular that is on the card appears somehow 
corrupted after the aforementioned reboots. It's attached.

On Monday, March 19, 2018 at 4:03:23 PM UTC-7, Troy Weber wrote:
>
> Probably not. I should clarify that by a "hard reboot" I mean that 
> essentially someone pulls the plug (or toggles a switch in the back). So no 
> effort (to my knowledge) is made to unmount the micro SD card.
>
> On Monday, March 19, 2018 at 3:53:29 PM UTC-7, Wulf Man wrote:
>>
>> does it unmount properly every time on reboot ?
>>
>> On 3/19/2018 3:43 PM, Troy Weber wrote:
>>
>> I will try that. I read up on *noatime*. 
>>
>>  *noatime*
>>   Do not update inode access times on this filesystem  (e.g.,  
>> for
>>   faster  access on the news spool to speed up news servers). 
>> This
>>   works  for  all  inode  types  (directories  too),  so   
>> implies
>>   nodiratime.
>>
>>
>> If this works, I'll be curious why. I guess I don't know enough about 
>> inodes just yet to understand why this might be a solution.
>>
>> On Monday, March 19, 2018 at 3:05:22 PM UTC-7, RobertCNelson wrote: 
>>>
>>> On Mon, Mar 19, 2018 at 4:55 PM, Troy Weber  wrote: 
>>> > Hello! 
>>> > 
>>> > I have an application running on the Beaglebone Black. It runs from 
>>> the eMMC 
>>> > because we need to mount a blank SD card and occasionally store data 
>>> or 
>>> > video on the external SD card. Here are some details to jog ideas: 
>>> > 
>>> > using a Bealgebone black 
>>> > connected to a powered hub and running 2 led strips and 1 camera 
>>> > made a custom cape/shield that allows us to interface with 
>>> > 
>>> > an RGB button 
>>> > a 16x2 char lcd 
>>> > an optically isolated relay module 
>>> > 
>>> > the relay module runs a solenoid circuit (in which I'm currently 
>>> debugging 
>>> > the need for a flyback diode) 
>>> > the SD card is mounted using /etc/fstab with the line /dev/mmcblk0p1 
>>> > /media/sd auto auto,nofail,user,dmask=022,fmask=111 0 0 
>>> > SD cards are inexpensive and found here: 
>>> > 
>>> https://www.amazon.com/gp/product/B00WUCNGVQ/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
>>>  
>>> > 
>>> > My application is writing files to the SD card only on certain 
>>> occasions 
>>> > during which the Beaglebone will not be hard-rebooted. However, it 
>>> will be 
>>> > hard-rebooted (and the application started by systemd on next boot) as 
>>> a 
>>> > means of shutting it down. 
>>> > 
>>> > The problem is that I've recently began to discover issues with the 
>>> blank SD 
>>> > card on next boot after a hard reboot. For a short time I can touch 
>>> and 
>>> > write vim files on the card just fine. Once I start up the node.js 
>>> program, 
>>> > part way through it complains about the SD card being read-only. From 
>>> then 
>>> > on I cannot touch or vim files anymore. So I reformat the card and 
>>> copy the 
>>> > configuration files back on. I've noticed that one of my configuration 
>>> files 
>>> > is chopped short. 
>>> > 
>>> > Here are some things I've tried and intend to try: 
>>> > 
>>> > have tried 
>>> > 
>>> > removing the power to the hub which seemed to be back-powering the BBB 
>>> > (still fails on reboot) 
>>> > stopping the program that writes files entirely (still fails on 
>>> reboot) 
>>> > 
>>> > intend to try 
>>> > 
>>> > writing the configuration files elsewhere (on the eMMC for example) 
>>> > better SD cards 
>>> > 
>>> > In the meantime, any ideas? 
>>>
>>> check the actual mount options, and if not enabled add "noatime".. 
>>>
>>> Regards, 
>>>
>>> -- 
>>> Robert Nelson 
>>> https://rcn-ee.com/ 
>>>
>> -- 
>> For more options, visit http://beagleboard.org/discuss
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to beagleboard...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/1df4730c-c024-4e1f-b0c1-2fbdf83ac714%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/b156983c-14ab-4ed6-84dc-e7aa7070192b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


WaterfallDiceGame.json
Description: application/json


Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread Troy Weber
Probably not. I should clarify that by a "hard reboot" I mean that 
essentially someone pulls the plug (or toggles a switch in the back). So no 
effort (to my knowledge) is made to unmount the micro SD card.

On Monday, March 19, 2018 at 3:53:29 PM UTC-7, Wulf Man wrote:
>
> does it unmount properly every time on reboot ?
>
> On 3/19/2018 3:43 PM, Troy Weber wrote:
>
> I will try that. I read up on *noatime*. 
>
>  *noatime*
>   Do not update inode access times on this filesystem  (e.g.,  for
>   faster  access on the news spool to speed up news servers). This
>   works  for  all  inode  types  (directories  too),  so   implies
>   nodiratime.
>
>
> If this works, I'll be curious why. I guess I don't know enough about 
> inodes just yet to understand why this might be a solution.
>
> On Monday, March 19, 2018 at 3:05:22 PM UTC-7, RobertCNelson wrote: 
>>
>> On Mon, Mar 19, 2018 at 4:55 PM, Troy Weber  wrote: 
>> > Hello! 
>> > 
>> > I have an application running on the Beaglebone Black. It runs from the 
>> eMMC 
>> > because we need to mount a blank SD card and occasionally store data or 
>> > video on the external SD card. Here are some details to jog ideas: 
>> > 
>> > using a Bealgebone black 
>> > connected to a powered hub and running 2 led strips and 1 camera 
>> > made a custom cape/shield that allows us to interface with 
>> > 
>> > an RGB button 
>> > a 16x2 char lcd 
>> > an optically isolated relay module 
>> > 
>> > the relay module runs a solenoid circuit (in which I'm currently 
>> debugging 
>> > the need for a flyback diode) 
>> > the SD card is mounted using /etc/fstab with the line /dev/mmcblk0p1 
>> > /media/sd auto auto,nofail,user,dmask=022,fmask=111 0 0 
>> > SD cards are inexpensive and found here: 
>> > 
>> https://www.amazon.com/gp/product/B00WUCNGVQ/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
>>  
>> > 
>> > My application is writing files to the SD card only on certain 
>> occasions 
>> > during which the Beaglebone will not be hard-rebooted. However, it will 
>> be 
>> > hard-rebooted (and the application started by systemd on next boot) as 
>> a 
>> > means of shutting it down. 
>> > 
>> > The problem is that I've recently began to discover issues with the 
>> blank SD 
>> > card on next boot after a hard reboot. For a short time I can touch and 
>> > write vim files on the card just fine. Once I start up the node.js 
>> program, 
>> > part way through it complains about the SD card being read-only. From 
>> then 
>> > on I cannot touch or vim files anymore. So I reformat the card and copy 
>> the 
>> > configuration files back on. I've noticed that one of my configuration 
>> files 
>> > is chopped short. 
>> > 
>> > Here are some things I've tried and intend to try: 
>> > 
>> > have tried 
>> > 
>> > removing the power to the hub which seemed to be back-powering the BBB 
>> > (still fails on reboot) 
>> > stopping the program that writes files entirely (still fails on reboot) 
>> > 
>> > intend to try 
>> > 
>> > writing the configuration files elsewhere (on the eMMC for example) 
>> > better SD cards 
>> > 
>> > In the meantime, any ideas? 
>>
>> check the actual mount options, and if not enabled add "noatime".. 
>>
>> Regards, 
>>
>> -- 
>> Robert Nelson 
>> https://rcn-ee.com/ 
>>
> -- 
> For more options, visit http://beagleboard.org/discuss
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to beagleboard...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/1df4730c-c024-4e1f-b0c1-2fbdf83ac714%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/406743ed-feaa-4675-b5c0-ccb77786f0de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread evilwulfie
does it unmount properly every time on reboot ?

On 3/19/2018 3:43 PM, Troy Weber wrote:
> I will try that. I read up on *noatime*.
>
>  *noatime*
>   Do not update inode access times on this filesystem  (e.g.,  for
>   faster  access on the news spool to speed up news servers). This
>   works  for  all  inode  types  (directories  too),  so   implies
>   nodiratime.
>
> If this works, I'll be curious why. I guess I don't know enough about
> inodes just yet to understand why this might be a solution.
>
> On Monday, March 19, 2018 at 3:05:22 PM UTC-7, RobertCNelson wrote:
>
> On Mon, Mar 19, 2018 at 4:55 PM, Troy Weber  > wrote:
> > Hello!
> >
> > I have an application running on the Beaglebone Black. It runs
> from the eMMC
> > because we need to mount a blank SD card and occasionally store
> data or
> > video on the external SD card. Here are some details to jog ideas:
> >
> > using a Bealgebone black
> > connected to a powered hub and running 2 led strips and 1 camera
> > made a custom cape/shield that allows us to interface with
> >
> > an RGB button
> > a 16x2 char lcd
> > an optically isolated relay module
> >
> > the relay module runs a solenoid circuit (in which I'm currently
> debugging
> > the need for a flyback diode)
> > the SD card is mounted using /etc/fstab with the line
> /dev/mmcblk0p1
> > /media/sd auto auto,nofail,user,dmask=022,fmask=111 0 0
> > SD cards are inexpensive and found here:
> >
> 
> https://www.amazon.com/gp/product/B00WUCNGVQ/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
> 
> 
>
> >
> > My application is writing files to the SD card only on certain
> occasions
> > during which the Beaglebone will not be hard-rebooted. However,
> it will be
> > hard-rebooted (and the application started by systemd on next
> boot) as a
> > means of shutting it down.
> >
> > The problem is that I've recently began to discover issues with
> the blank SD
> > card on next boot after a hard reboot. For a short time I can
> touch and
> > write vim files on the card just fine. Once I start up the
> node.js program,
> > part way through it complains about the SD card being read-only.
> From then
> > on I cannot touch or vim files anymore. So I reformat the card
> and copy the
> > configuration files back on. I've noticed that one of my
> configuration files
> > is chopped short.
> >
> > Here are some things I've tried and intend to try:
> >
> > have tried
> >
> > removing the power to the hub which seemed to be back-powering
> the BBB
> > (still fails on reboot)
> > stopping the program that writes files entirely (still fails on
> reboot)
> >
> > intend to try
> >
> > writing the configuration files elsewhere (on the eMMC for example)
> > better SD cards
> >
> > In the meantime, any ideas?
>
> check the actual mount options, and if not enabled add "noatime"..
>
> Regards,
>
> -- 
> Robert Nelson
> https://rcn-ee.com/
>
> -- 
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to beagleboard+unsubscr...@googlegroups.com
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/1df4730c-c024-4e1f-b0c1-2fbdf83ac714%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/21e09e2e-cc47-7e39-ad58-9d07706e8612%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread Troy Weber
I will try that. I read up on *noatime*.

 *noatime*
  Do not update inode access times on this filesystem  (e.g.,  for
  faster  access on the news spool to speed up news servers). This
  works  for  all  inode  types  (directories  too),  so   implies
  nodiratime.


If this works, I'll be curious why. I guess I don't know enough about 
inodes just yet to understand why this might be a solution.

On Monday, March 19, 2018 at 3:05:22 PM UTC-7, RobertCNelson wrote:
>
> On Mon, Mar 19, 2018 at 4:55 PM, Troy Weber  > wrote: 
> > Hello! 
> > 
> > I have an application running on the Beaglebone Black. It runs from the 
> eMMC 
> > because we need to mount a blank SD card and occasionally store data or 
> > video on the external SD card. Here are some details to jog ideas: 
> > 
> > using a Bealgebone black 
> > connected to a powered hub and running 2 led strips and 1 camera 
> > made a custom cape/shield that allows us to interface with 
> > 
> > an RGB button 
> > a 16x2 char lcd 
> > an optically isolated relay module 
> > 
> > the relay module runs a solenoid circuit (in which I'm currently 
> debugging 
> > the need for a flyback diode) 
> > the SD card is mounted using /etc/fstab with the line /dev/mmcblk0p1 
> > /media/sd auto auto,nofail,user,dmask=022,fmask=111 0 0 
> > SD cards are inexpensive and found here: 
> > 
> https://www.amazon.com/gp/product/B00WUCNGVQ/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
>  
> > 
> > My application is writing files to the SD card only on certain occasions 
> > during which the Beaglebone will not be hard-rebooted. However, it will 
> be 
> > hard-rebooted (and the application started by systemd on next boot) as a 
> > means of shutting it down. 
> > 
> > The problem is that I've recently began to discover issues with the 
> blank SD 
> > card on next boot after a hard reboot. For a short time I can touch and 
> > write vim files on the card just fine. Once I start up the node.js 
> program, 
> > part way through it complains about the SD card being read-only. From 
> then 
> > on I cannot touch or vim files anymore. So I reformat the card and copy 
> the 
> > configuration files back on. I've noticed that one of my configuration 
> files 
> > is chopped short. 
> > 
> > Here are some things I've tried and intend to try: 
> > 
> > have tried 
> > 
> > removing the power to the hub which seemed to be back-powering the BBB 
> > (still fails on reboot) 
> > stopping the program that writes files entirely (still fails on reboot) 
> > 
> > intend to try 
> > 
> > writing the configuration files elsewhere (on the eMMC for example) 
> > better SD cards 
> > 
> > In the meantime, any ideas? 
>
> check the actual mount options, and if not enabled add "noatime".. 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/1df4730c-c024-4e1f-b0c1-2fbdf83ac714%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] SD card errors on hard reboot

2018-03-19 Thread Robert Nelson
On Mon, Mar 19, 2018 at 4:55 PM, Troy Weber  wrote:
> Hello!
>
> I have an application running on the Beaglebone Black. It runs from the eMMC
> because we need to mount a blank SD card and occasionally store data or
> video on the external SD card. Here are some details to jog ideas:
>
> using a Bealgebone black
> connected to a powered hub and running 2 led strips and 1 camera
> made a custom cape/shield that allows us to interface with
>
> an RGB button
> a 16x2 char lcd
> an optically isolated relay module
>
> the relay module runs a solenoid circuit (in which I'm currently debugging
> the need for a flyback diode)
> the SD card is mounted using /etc/fstab with the line /dev/mmcblk0p1
> /media/sd auto auto,nofail,user,dmask=022,fmask=111 0 0
> SD cards are inexpensive and found here:
> https://www.amazon.com/gp/product/B00WUCNGVQ/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
>
> My application is writing files to the SD card only on certain occasions
> during which the Beaglebone will not be hard-rebooted. However, it will be
> hard-rebooted (and the application started by systemd on next boot) as a
> means of shutting it down.
>
> The problem is that I've recently began to discover issues with the blank SD
> card on next boot after a hard reboot. For a short time I can touch and
> write vim files on the card just fine. Once I start up the node.js program,
> part way through it complains about the SD card being read-only. From then
> on I cannot touch or vim files anymore. So I reformat the card and copy the
> configuration files back on. I've noticed that one of my configuration files
> is chopped short.
>
> Here are some things I've tried and intend to try:
>
> have tried
>
> removing the power to the hub which seemed to be back-powering the BBB
> (still fails on reboot)
> stopping the program that writes files entirely (still fails on reboot)
>
> intend to try
>
> writing the configuration files elsewhere (on the eMMC for example)
> better SD cards
>
> In the meantime, any ideas?

check the actual mount options, and if not enabled add "noatime"..

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYgGEc4vGUTBrbvAeWWv62ZFMzOJpKjietUuYWxDMDYR0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] SD card errors on hard reboot

2018-03-19 Thread Troy Weber
Hello!

I have an application running on the Beaglebone Black. It runs from the 
eMMC because we need to mount a blank SD card and occasionally store data 
or video on the external SD card. Here are some details to jog ideas:

   - using a Bealgebone black
   - connected to a powered hub and running 2 led strips and 1 camera
   - made a custom cape/shield that allows us to interface with
  - an RGB button
  - a 16x2 char lcd
  - an optically isolated relay module
   - the relay module runs a solenoid circuit (in which I'm currently 
   debugging the need for a flyback diode)
   - the SD card is mounted using */etc/fstab* with the line */dev/mmcblk0p1 
   /media/sd auto auto,nofail,user,dmask=022,fmask=111 0 0*
   - SD cards are inexpensive and found 
   here: 
https://www.amazon.com/gp/product/B00WUCNGVQ/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

My application is writing files to the SD card only on certain occasions 
during which the Beaglebone will not be hard-rebooted. However, it will be 
hard-rebooted (and the application started by systemd on next boot) as a 
means of shutting it down.

The problem is that I've recently began to discover issues with the blank 
SD card on next boot after a hard reboot. For a short time I can *touch* 
and write *vim* files on the card just fine. Once I start up the node.js 
program, part way through it complains about the SD card being read-only. 
>From then on I cannot *touch* or *vim* files anymore. So I reformat the 
card and copy the configuration files back on. I've noticed that one of my 
configuration files is chopped short.

Here are some things I've tried and intend to try:

   - have tried
  - removing the power to the hub which seemed to be back-powering the 
  BBB (still fails on reboot)
  - stopping the program that writes files entirely (still fails on 
  reboot)
   - intend to try
  - writing the configuration files elsewhere (on the eMMC for example)
  - better SD cards
   
In the meantime, any ideas?

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/d9441485-237f-4e02-becf-5a19c66c31e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.