mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2013-11-06, 21:17   #12
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2·467 Posts
Default

Thank you... still getting "Permission denied" even after doing the chmod and then the chown commands.

Possibly related: I discovered that I could right-click on the mprime icon to get the Properties, but when I put a check mark next to "Allow executing file as program," the check mark disappears right away.

I'm wondering if I need to actually install Zorin OS on some kind of drive before any of this works. (Currently running it on a live DVD -- not a CD as I wrote before.)

Rodrigo

EDIT: I wrote that and then EdH's post appeared after I submitted mine.

Last fiddled with by Rodrigo on 2013-11-06 at 21:20 Reason: add comment on EdH
Rodrigo is offline   Reply With Quote
Old 2013-11-06, 21:53   #13
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Can you do

Code:
ls -l
from within the mprime directory on your usb thumbdrive and post the output here?

Also, please post the output of

Code:
cat /etc/mtab
Also make sure you are running 32-bit software (e.g. mprime) if it is a 32-bit operating system, and 64-bit software (e.g. mprime) if it is a 64-bit operating system.

Last fiddled with by paulunderwood on 2013-11-06 at 22:25
paulunderwood is offline   Reply With Quote
Old 2013-11-07, 03:57   #14
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2×467 Posts
Default

OK, I'll do that as soon as I figure out how to redirect the terminal output to a file. I knew how to do that in MS-DOS. It'll be another opportunity to learn my way around Linux.

I can confirm, though, that it's mprime 64-bit and Zorin OS x64.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2013-11-07, 04:14   #15
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

To redirect standard output, append the command with "> your_file_here" e.g.

Code:
ls -l > ls_output
While you are at it, please run

Code:
ls -l .. > ls_parent
both from within the directory where mprime is.

Also print the contents of "/etc/mtab" here, maybe via:

Code:
cp /etc/mtab mtab_copy
What is the response to the following command?

Code:
whoami

Last fiddled with by paulunderwood on 2013-11-07 at 04:30
paulunderwood is offline   Reply With Quote
Old 2013-11-07, 05:40   #16
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2×467 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
To redirect standard output, append the command with "> your_file_here" e.g.

Code:
ls -l > ls_output
Here goes:
Code:
total 30336
-rw-r--r-- 1 live live     2110 Dec 12  2012 license.txt
-rw-r--r-- 1 live live        0 Nov  7 00:23 ls_output
-rw-r--r-- 1 live live 30852745 Dec 12  2012 mprime
-rw-r--r-- 1 live live    20019 Dec 12  2012 readme.txt
-rw-r--r-- 1 live live     6860 Dec 12  2012 stress.txt
-rw-r--r-- 1 live live    24526 Dec 12  2012 undoc.txt
-rw-r--r-- 1 live live    45832 Dec 12  2012 whatsnew.txt
Quote:
Originally Posted by paulunderwood View Post
While you are at it, please run

Code:
ls -l .. > ls_parent
both from within the directory where mprime is.
It reads:
Code:
total 32
drwx------ 2 live live 32768 Nov  7 00:24 mPrime
Quote:
Originally Posted by paulunderwood View Post
Also print the contents of "/etc/mtab" here, maybe via:

Code:
cp /etc/mtab mtab_copy
Code:
 
/cow / overlayfs rw 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
udev /dev devtmpfs rw,mode=0755 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
tmpfs /run tmpfs rw,noexec,nosuid,size=10%,mode=0755 0 0
/dev/sr0 /cdrom iso9660 ro,noatime 0 0
/dev/loop0 /rofs squashfs ro,noatime 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev 0 0
none /run/lock tmpfs rw,noexec,nosuid,nodev,size=5242880 0 0
none /run/shm tmpfs rw,nosuid,nodev 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /home/live/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=live 0 0
/dev/sdb1 /media/9021-9EC0 vfat rw,nosuid,nodev,uid=999,gid=999,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks 0 0
/dev/sdc1 /media/FC30-3DA9 vfat rw,nosuid,nodev,uid=999,gid=999,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks 0 0
(Sorry, I don't know where the line breaks are supposed to go. I transferred the mtab_copy file to a Windows PC for uploading here, and Notepad doesn't seem to recognize its CR/LFs. Maybe they came out OK when I put the CODE tags around it.)

Quote:
Originally Posted by paulunderwood View Post
What is the response to the following command?

Code:
whoami
live

FWIW, this is a Live DVD system.

Hope these printouts help to track down the issue!

Rodrigo

Last fiddled with by Rodrigo on 2013-11-07 at 06:10 Reason: clarity
Rodrigo is offline   Reply With Quote
Old 2013-11-07, 10:29   #17
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2A0116 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
Thank you... still getting "Permission denied" even after doing the chmod and then the chown commands.

Possibly related: I discovered that I could right-click on the mprime icon to get the Properties, but when I put a check mark next to "Allow executing file as program," the check mark disappears right away.
Is the thumb drive being mounted read-only?
xilman is offline   Reply With Quote
Old 2013-11-07, 14:02   #18
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

This link has the answer. You will need to "umount" the drive and remount it will the "exec" flag, but heed the warnings about every file then being executable.

Code:
ls /media/FC30-3DA9
This will check you have the right drive. (You have 2 vfat drives.)

Code:
umount /media/FC30-3DA9
Then remount it with the "exec" flag:

Code:
mkdir /media/FC30-3DA9
mount -t vfat -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/sdc1 /media/FC30-3DA9
(You might have to precede umount, mkdir and mount with "sudo" if you need root permissions.)


Last fiddled with by paulunderwood on 2013-11-07 at 14:32
paulunderwood is offline   Reply With Quote
Old 2013-11-07, 18:45   #19
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2·467 Posts
Default

Wow, that worked!! (For the benefit of anybody later looking to do this: I did have to sudo in order to perform the mkdir and mount operations.)

Thank you very much, Paul.

Now I can perform the comparison.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2013-11-07, 19:06   #20
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

1110100110112 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
Thank you very much, Paul.
You're welcome!
paulunderwood is offline   Reply With Quote
Old 2013-11-08, 06:44   #21
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2×467 Posts
Default

One last, quick question:

If I want to convert all those files back to non-programs (for example, so that I can copy the pWxxxxxx files back to the original location to run in Windows), do I umount and then mount again as given above but leaving out the "exec" part? Or do I need to do something else?

Rodrigo

Last fiddled with by Rodrigo on 2013-11-08 at 06:44
Rodrigo is offline   Reply With Quote
Old 2013-11-08, 10:43   #22
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

1075310 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
One last, quick question:

If I want to convert all those files back to non-programs (for example, so that I can copy the pWxxxxxx files back to the original location to run in Windows), do I umount and then mount again as given above but leaving out the "exec" part? Or do I need to do something else?

Rodrigo
You don't need to do anything. The "exec" flag allows files to be executed as programs as well as anything else.

Many file systems are mounted executable by default. Some removable devices containing file systems are not so mounted to protect you against sundry nasties. Anyone else here old enough to remember viruses being spread by floppies?
xilman is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu saddies ET_ GPU Computing 12 2013-05-14 14:30
New laptop with ubuntu pinhodecarlos Linux 30 2013-04-12 09:23
Upgrading Ubuntu from 9.04 to 11.04 ET_ Linux 9 2012-03-05 20:04
how to install on ubuntu? yeah Information & Answers 2 2011-03-02 17:43
Ubuntu 9.10 henryzz Linux 11 2010-01-29 21:31

All times are UTC. The time now is 07:51.


Sat Jul 17 07:51:18 UTC 2021 up 50 days, 5:38, 1 user, load averages: 2.29, 1.56, 1.39

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.