Re: non-persistent storage?

2019-12-17 Thread Corinna Vinschen
On Dec 17 09:32, Andrey Repin wrote: > Greetings, Ulli Horlacher! > > > /dev/shm ist not a tmpfs on cygwin: > > Cygwin is a userspace DLL. It is not a filesystem driver. > > > /dev/shm: df -TH /dev/shm > > Filesystem Type Size Used Avail Use% Mounted on > > C:/cygwin64ntfs 34G 25G

Re: non-persistent storage?

2019-12-16 Thread Andrey Repin
Greetings, Ulli Horlacher! > /dev/shm ist not a tmpfs on cygwin: Cygwin is a userspace DLL. It is not a filesystem driver. > /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

Re: non-persistent storage?

2019-12-16 Thread Corinna Vinschen
On Dec 13 10:34, Ulli Horlacher wrote: > 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

Re: non-persistent storage?

2019-12-13 Thread Steven Penny
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:

Re: non-persistent storage?

2019-12-13 Thread Erik Soderquist
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.

Re: non-persistent storage?

2019-12-13 Thread Mark Geisert
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

RE: non-persistent storage?

2019-12-13 Thread Buchbinder, Barry (NIH/NIAID) [E] via cygwin
>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 >>>

Re: non-persistent storage?

2019-12-13 Thread Marco Atzeri
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

Re: non-persistent storage?

2019-12-13 Thread 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

Re: non-persistent storage?

2019-12-13 Thread Ulli Horlacher
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%

Re: non-persistent storage?

2019-12-12 Thread Jürgen Wagner
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 # It is not advisable to store larger amounts of data there, but an encryption key should be fine. Cheers, --j. On 13.12.2019 00:21, Ulli Horlacher wrote: On Fri

Re: non-persistent storage?

2019-12-12 Thread Jürgen Wagner
Ok, we're getting closer. - Run cygserver-config as an administrator. - Do "net start cygserver" That will provide shared memory capabilities. Then try this: # shmtool w myFunnyC8380ufsKey Shared memory segment exists - opening as client Done... # shmtool r Shared memory segment exists -

Re: non-persistent storage?

2019-12-12 Thread Ulli Horlacher
On Fri 2019-12-13 (00:03), Jürgen Wagner wrote: > 1. You create a RAM disk How do I do it with cygwin? > 2. You encrypt the data with a ephemeral key This is exactly what I want to share between processes! -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK

Re: non-persistent storage?

2019-12-12 Thread Ulli Horlacher
On Thu 2019-12-12 (17:45), Erik Soderquist wrote: > 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. It is not possible to

Re: non-persistent storage?

2019-12-12 Thread Jürgen Wagner
I can see two options: 1. You create a RAM disk and the contents will obviously be gone when the system reboots or crashes. 2. You encrypt the data with a ephemeral key that will be lost on reboot (e.g., kept in shared memory). When the system comes up and finds itself unable to read the data,

Re: non-persistent storage?

2019-12-12 Thread Erik Soderquist
On Thu, Dec 12, 2019 at 5:45 PM Erik Soderquist wrote: > 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

Re: non-persistent storage?

2019-12-12 Thread Erik Soderquist
On Thu, Dec 12, 2019 at 5:08 PM Ulli Horlacher wrote: > > 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

Re: non-persistent storage?

2019-12-12 Thread Ulli Horlacher
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

RE: non-persistent storage?

2019-12-12 Thread Buchbinder, Barry (NIH/NIAID) [E] via cygwin
Eliot Moss sent the following at Thursday, December 12, 2019 2:19 pm >On 12/12/2019 7:00 AM, Ulli Horlacher wrote: > >> I need to store some data (a few kB) non-persistent. >> On a real UNIX I would use /var/run, because after a shutdown all its >> content is lost. >> But on cygwin /var/run is