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

script Allrun doesn't work after beeing copied on another disk hard drive

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2012, 18:14
Default script Allrun doesn't work after beeing copied on another disk hard drive
  #1
New Member
 
Romain
Join Date: Jun 2010
Location: Lyon
Posts: 28
Rep Power: 15
nakor is on a distinguished road
Hello,
I have a little problem with my Allrun file.

When I am in the installation folder (/opt/openfoam210/tutorial/...) everything work just fine.
If I copy it on another space in the same hard drive (/home/.../Desktop), it is still working.

But if I try to copy it on another drive (/media/data/test/) I cannot run this script anymore.

I tried to use chmod +x Allrun (Allrun.sh does not exist!) but it is not working.

Anyone can help me on this little issue ?

I think that it is more linux related than openfoam, but I am stuck.

Thanks in advance.
nakor is offline   Reply With Quote

Old   September 11, 2012, 18:20
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Romain,

Do you know what's the format of "/media/data/test/"? NTFS or ext3 or ext4 or FAT32?

Or in other words: are you able to open the disk at "/media/data/test/" in Windows? If so, then that might be why it's not working. NTFS doesn't handle "is this executable or not" permissions.

Either way, try running the script with either one of the following commands:
Code:
bash ./Allrun
sh ./Allrun
Best regards,
Bruno
nakor likes this.
__________________
wyldckat is offline   Reply With Quote

Old   September 12, 2012, 03:59
Default
  #3
New Member
 
Romain
Join Date: Aug 2012
Posts: 12
Rep Power: 13
romain.h is on a distinguished road
Hello Bruno,

it is a NTFS hard drive, so I will try


bash ./Allrun

sh ./Allrun
and if it is not working I will format my drive in fat32.


Thanks.
romain.h is offline   Reply With Quote

Old   September 12, 2012, 16:16
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Romain,

FAT32 suffers from the same defect, namely it doesn't preserve the executable flags that Linux uses on ext2/3/4.

Honestly, all of this really depends on what you need to do:
  • If you need to be able to read the cases in Windows, then you should stay with this mode of operation, namely use "sh Allrun" whenever you want to execute scripts. The downside is that you'll need to define in "Allrun" to also call other scripts using "sh script_name".
  • If you are using a pen/drive that is used in both Linux and Windows, but only need to open cases in Linux, then you could use an ext2 partition inside a single file. You can find such a description here: Maintaining a local git repository on a portable disk image file or partition
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 14:39
Simulation inside a hard disk drive leeteckwei1988 FLUENT 2 April 3, 2012 10:59
Hard drive storage and .cfx vs .def files audrey CFX 5 September 16, 2011 07:19
3D LES of Air Flow in Hard Disk Drive Trinnapong FLUENT 0 April 17, 2008 22:04
Hard Disk Access Time steve podleski Main CFD Forum 35 August 3, 2000 14:14


All times are GMT -4. The time now is 11:51.