CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > 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 Display Modes
Old   September 11, 2012, 17: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: 8
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, 17:20
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 02:59
Default
  #3
New Member
 
Romain
Join Date: Aug 2012
Posts: 12
Rep Power: 6
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, 15:16
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
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 On
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 09:59
Hard drive storage and .cfx vs .def files audrey CFX 5 September 16, 2011 06:19
3D LES of Air Flow in Hard Disk Drive Trinnapong FLUENT 0 April 17, 2008 21:04
Hard Disk Access Time steve podleski Main CFD Forum 35 August 3, 2000 13:14


All times are GMT -4. The time now is 09:56.