I doubt that you will ever hit the end of life on a quality SD card,
especially a large size one. The writes that you are doing, and thus the
number of blocks, are TINY compared to what the cards were designed
for... photos and videos. You can also run a flash file system instead
of ext4 if you like. Checking that noatime is set for the filesystem
would have a far greater effect than all of the writes that you will
ever do in daily use. While true at one time, this whole wearing out
flash storage thing is almost a non issue for use cases like this nowdays.

Where you buy SD cards makes a difference. There are a LOT of fakes on
fleabay or from 'other' vendors on amazon and such sites. The 'pro'
series of cards are often of a much higher quality that the consumer
ones as well.

You can attach spinning or SSD disks via USB and it works just fine. I
highly suggest using a powered SATA adapter though, even for SSDs as the
pi just doesn't have many watts on the 5v bus to go around. I 'think'
you still need to boot off of the SD card though. Just the bootloader,
initram and kernel. Then your entire root and userspace can be on the
USB attached storage or an NFS mount.

In my opinion, if you have multiple machines of any given type (more
than one mill for example) then it makes sense to have an NFS mount of
some sort so that you can share NC files and tool tables, etc.

YMMV

On 03/11/2017 10:29 AM, Gene Heskett wrote:
> Greetings all;
> 
> When I setup LCNC on the pi, one of the things I did was to make an 
> R-Pi_nc_files directory on the rotating media of this machine, copied 
> all the .ngc files I have generated to run on TLM to it, and cleaned out 
> the nc_files directory on the pi, leaving only 2 files, which will 
> remind me when I see them that the directory on this machine has not 
> been mounted on top of that one.
> 
> Thats by this one liner script:
> 
> sshfs 
> g...@coyote.coyote.den:/home/gene/linuxcnc/R-Pi_nc_files/ 
> /home/pi/linuxcnc/R-Pi_nc_files
> 
> All one line of course, and the .ini file edited to point nc_files at it.
> 
> With all the config file updates I am doing as I work on both the jog 
> wheels and in due time the gear shift stuff when I've installed the belt 
> position sensors, that I am using up the microsd. It is a bigger one, a 
> Samsung 32Gb, so it will be a while before that occurs, unlike the 
> san-disk lookalikes that I destroyed 2 of in 3 days each.  Bad karma, 
> and ruined my taste for san-disk stuff entirely.
> 
> I am considering doing the similar remote mount of rotating media for the 
> configs directory as it is getting 100x the read-modify-write activity 
> as I make this and that work. An sshfs mount doesn't seem to be any 
> slower than the microsd so far. But since it gets a write to new .var 
> files everytime I close LCNC, it seems like a good idea.
> 
> That mount could be incorporated into the above script as:
> 
> sshfs 
> g...@coyote.den:/home/gene/linuxcnc/R-Pi_configs/ /home/pi/linuxcnc/configs
> 
> Shoot me down if you think its wrong. :-)
> 
> I do have amanda backing up the whole pi, so I could theoretically 
> recover to last nights backup state on a fresh Samsumg microsd with a 
> basic jessie install on it, but it does take time that I'd like to 
> forestall doing as long as I can.
> 
> A 2nd alternative might be a usb to ssd adaptor but I've not investigated 
> setting up such a critter.  Has anyone else?
> 
> Cheers, Gene Heskett
> 

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to