Re: non-persistent storage?
On Fri, 13 Dec 2019 17:57:23 -0500, Erik Soderquist wrote: I've test all of the suggestions I've seen so far with the exception of the cygserver and shared memory, and all of the ones I've tested failed the power failure scenario. /dev/clipboard? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: non-persistent storage?
On Fri, Dec 13, 2019 at 11:20 AM Buchbinder, Barry (NIH/NIAID) [E] via cygwin wrote: > One could put a script, batch file, or a link thereto in one's startup > folder that will run on Windows' boot. The OP's issue is that the data must be destroyed instantly even in the event of a power failure. Use case scenario: thief breaks in and steals the host, just yanking power cords/etc out, and then pulls the drive and mounts it on another system to recover this data; it is sensitive enough that it must be destroyed immediately by the power failure. Unfortunately, nothing in Windows is designed for that kind of security, and Cygwin has to work around a lot of Windows design flaws to function in general. I've test all of the suggestions I've seen so far with the exception of the cygserver and shared memory, and all of the ones I've tested failed the power failure scenario. I think if the cygserver/shared memory suggestion works, it will be the only available option to prevent the data from default existing on the disc, and due to another of Window's design flaws, may still be written into the page file, though it would be much harder to cleanly extract from the page file than from a normal filesystem file. -- Erik -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
[ANNOUNCEMENT] Updated : netcdf-4.7.3-1
Version 4.7.3-1 of libnetcdf-devel libnetcdf15 (API Bump) netcdf Version 4.5.2-1 of libnetcdf-fortran-devel libnetcdf-fortran_7 (API Bump) Version 4.3.1-1 of libnetcdf-cxx4-devel libnetcdf-cxx4_1 are available in the Cygwin distribution. CHANGES Latest upstream releases https://github.com/Unidata/netcdf-c/releases https://github.com/Unidata/netcdf-fortran/releases https://github.com/Unidata/netcdf-cxx4/releases DESCRIPTION NetCDF (network Common Data Form) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. HOMEPAGE http://www.unidata.ucar.edu/software/netcdf/ Marco Atzeri If you have questions or comments, please send them to the cygwin mailing list at: cygwin (at) cygwin (dot) com . -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: non-persistent storage?
Ulli Horlacher wrote: On Fri 2019-12-13 (00:51), Jürgen Wagner wrote: - Run cygserver-config as an administrator. ~: cygserver-config Generating /etc/cygserver.conf file Warning: The following function requires administrator privileges! Do you want to install cygserver as service? (Say "no" if it's already installed as service) (yes/no) yes /usr/bin/cygserver-config: line 181: cygrunsrv: command not found In addition to Marco's reply for shmtool, you'll need the 'cygrunsrv' package. ..mark -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: non-persistent storage?
>On Thu, Dec 12, 2019 at 5:08 PM Ulli Horlacher wrote: > >>Erik Soderquist sent the following at Thursday, December 12, 2019 5:45 pm >> >> On Thu 2019-12-12 (21:59), Buchbinder, Barry (NIH/NIAID) [E] via cygwin >> wrote: >>> >>> If the temp file was created by mktemp and the name saved in an >>> environmental variable, each bash shell could have its own file with >>> not risk that an instance of bash would erase another instance's file. >> >> I need the opposite: all processes must read and write the same data! >> And the data must be gone when system shuts down or even if there is a >> power failure. > > This is very hacky, but I believe you can get the effect you want by > having an admin process auto-start at host startup, identify itself, and > then set parts of its own /proc/ process ID tree as world read/write. > I think this will give you the "destroyed even at power failure" > impermanence you are looking for. I know it is not in the normal > layouts (like /var/run/ would be), but we are working around limitations > imposed by Windows. One could put a script, batch file, or a link thereto in one's startup folder that will run on Windows' boot. The script/batch file would be written to clean out the tmp files. Google << windows startup folder >>. If all processes, regardless of whether they start with the same shell/subshell, will share the same temp file, one could create the file upon boot using the same script. Also, one could make the script that creates the temp file (e.g., .bashrc) check the file or an environmental variable so that a subshell doesn't create a new temp file, if that's how you want it. - Barry Disclaimer: Statements made herein are not made on behalf of NIAID.
Re: non-persistent storage?
Am 13.12.2019 um 11:06 schrieb Ulli Horlacher: On Fri 2019-12-13 (00:51), Jürgen Wagner wrote: - Run cygserver-config as an administrator. ~: cygserver-config Generating /etc/cygserver.conf file Warning: The following function requires administrator privileges! Do you want to install cygserver as service? (Say "no" if it's already installed as service) (yes/no) yes /usr/bin/cygserver-config: line 181: cygrunsrv: command not found # shmtool w myFunnyC8380ufsKey shmtool is also missing. Which package have I to install? $ cygcheck -p shmtool Found 6 matches for shmtool ... cygutils-extra-1.4.16-2 - cygutils-extra: A collection of simple utilities (other tools) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: non-persistent storage?
On Fri 2019-12-13 (00:51), Jürgen Wagner wrote: > - Run cygserver-config as an administrator. ~: cygserver-config Generating /etc/cygserver.conf file Warning: The following function requires administrator privileges! Do you want to install cygserver as service? (Say "no" if it's already installed as service) (yes/no) yes /usr/bin/cygserver-config: line 181: cygrunsrv: command not found > # shmtool w myFunnyC8380ufsKey shmtool is also missing. Which package have I to install? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<72eb3b54-1c86-689e-f663-543f80755...@wagner.is> -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: non-persistant storage?
On Thu 2019-12-12 (17:06), L A Walsh wrote: > On 2019/12/12 13:40, Eliot Moss wrote: > > > Ah! I think what you want is a tmpfs or ramfs. > > Not sure if cygwin supports that ... > > > > Easiest thing might be to use /dev/shm. I used it during > development to store intermediate data that was later to be > transfered via a fifo... > > Basically check for existence of "/dev/shm" (exists on my cygwin). > if "tmp" didn't already exist, create it w/options similar to > /tmp (only owner can delete/edit): > > mkdir -m 1777 /tmp/shm/tmp > > > **Warning, "writes" to /dev/shm/tmp (or /dev/mem) can fill up > your system's memory, so its only good for "small files" > (small being well under your system's free memory amount). This is true for Linux, but not for cygwin, where /dev/shm is ntfs on disk: ~: uname -a CYGWIN_NT-10.0 VD-TIK-12 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin ~: df -TH /dev/shm Filesystem Type Size Used Avail Use% Mounted on C:/cygwin64ntfs 34G 25G 8.9G 74% / Its content is still there after a reboot and I can see it with the windows explorer: https://fex.belwue.de/fop/dyQzlG1x/X-20191213103905.png -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<5df2e42a.7020...@tlinx.org> -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: non-persistent storage?
On Fri 2019-12-13 (07:27), Jürgen Wagner wrote: > And regarding the tmpfs (RAM disk) , you can use /dev/shm. > > # date > /dev/shm/key > # cat /dev/shm/key > Fri Dec 13 07:26:03 CET 2019 /dev/shm ist not a tmpfs on cygwin: /dev/shm: df -TH /dev/shm Filesystem Type Size Used Avail Use% Mounted on C:/cygwin64ntfs 34G 25G 9.1G 74% / When I write something into this direcory and reboot, it is still there. -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<019cfbcf-d1b3-ddf0-1f07-5c2fda599...@wagner.is> -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple