CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[Other] OpenFOAM on WSL with Ubuntu

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2020, 17:28
Default OpenFOAM on WSL with Ubuntu
  #1
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 8
petros is on a distinguished road
Hi all,

This thread consists of two parts: (a) A piece of information for users of OpenFOAM with Windows Subsystem for Linux (WSL) and (b) a long-shot enquire to the more experienced ones.

a.

I was running OpenFOAM v1906 on a Windows machine using WSL and Ubuntu 18.04. My organisation automatically requested to proceed to the recent Windows System Update, and so I did.

After the update, the WSL was removed from my system along with the whole structure of my OpenFOAM environment. However, my simulation files remained intact. Note that the location of OpenFOAM when working in Ubuntu and WSL can be found in the following path:

C\Users\'username'\AppData\Local\Packages\Canonica lGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalS tate\rootfs\home\'username'\

This is a known issue. More information here: https://github.com/microsoft/WSL/issues/4063

Not being able to run Ubuntu, I was advised to re-install Ubuntu from the App Store as I did before. Unfortunately, this led the new installation to overwrite the above-mentioned folder, meaning that all my files were deleted.

Hence my advice to those who use OpenFOAM in Windows is: go immediately to the the location where Ubuntu is installed and make a backup of your files before you proceed to any Windows updates.

b.

The obvious question: Does anyone have any idea how to restore those files?

I must state that the system restore functionality isn't implemented on University-managed machines, something that, sadly, I didn't know in advance.

Best regards,

Petros
petros is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
Running OpenFOAM in parallel in WSL with Ubuntu bash FlyFox OpenFOAM Running, Solving & CFD 7 March 17, 2020 11:08
[OpenFOAM.org] OpenFOAM 2.40 installation on Ubuntu 12.04 LTS eddykendo OpenFOAM Installation 1 July 18, 2015 18:38
Installing OpenFOAM 2.2.0 on Ubuntu 12.10 i686 AHutchison OpenFOAM Installation 6 June 4, 2013 13:11
OpenFOAM vs Ubuntu 10.10 64 bit vkrastev OpenFOAM Installation 12 April 23, 2011 11:14


All times are GMT -4. The time now is 14:10.