LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2009, 03:03 AM   #1
wakrein
Member
 
Registered: Aug 2009
Posts: 40

Rep: Reputation: 15
./configure: Permission denied on removable media


I have googled all about this issue, i have tried many things. I searched the forums and found many issues without a resolution. I cant seem to find a resolution.
I am trying to ./configure with an output of "Permission Denied"

D:is the loction of the program i want to ./configure
If i ls -l D: (D: my removable media) i get lrwxrwxrwx 1 root root 9 2009-08-26 18:55 D: -> /media/D:/
dont know if this is relevant but could help...maybe

Also when i su and ./configure i also get the same output of "Permission Denied"

I dont know what to do im at loss for options. Any help is appriciated.

Last edited by wakrein; 08-27-2009 at 03:10 AM. Reason: Forgot to add somthing sorry
 
Old 08-27-2009, 03:08 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
What you want to configure? where configure script is located, be more clear .
what is output of mount command ?

thnks
 
Old 08-27-2009, 03:14 AM   #3
wakrein
Member
 
Registered: Aug 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vishesh View Post
What you want to configure? where configure script is located, be more clear .
what is output of mount command ?

thnks
I want to configure shed a hex editor
the script is located in /home/user/D:/shed-1.15
the output of the mount command is
Code:
rootfs on / type rootfs (rw)
/dev/sda1 on /.ro type ext2 (ro)
/dev/sda2 on /.rw type ext3 (rw,noatime,data=ordered)
none on / type aufs (rw,xino=/.rw/.aufs.xino,br:/.rw=rw:/.ro=ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /tmp type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sdb1 on /media/D: type vfat (rw,nosuid,nodev,noexec,fmask=0111,dmask=0000,codepage=cp850,iocharset=utf8,shortname=mixed)
/dev/sda1 on /ro type ext2 (ro)

Last edited by wakrein; 08-27-2009 at 03:14 AM. Reason: TYPO
 
Old 08-27-2009, 03:18 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
The noexec option of mount do not allow execution on the filesystem. Try to umount /dev/sdb1 and mount again using simply:
Code:
mount -t vfat /dev/sdb1 /media/D
then run ./configure again.
 
Old 08-27-2009, 03:22 AM   #5
wakrein
Member
 
Registered: Aug 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
The noexec option of mount do not allow execution on the filesystem. Try to umount /dev/sdb1 and mount again using simply:
Code:
mount -t vfat /dev/sdb1 /media/D
then run ./configure again.
mount -t vfat /dev/sdb1 media/D:

output: mount: mount point media/D does not exist
 
Old 08-27-2009, 03:24 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Code:
mkdir /media/D && mount -t vfat /dev/sdb1 /media/D
 
Old 08-27-2009, 03:37 AM   #7
wakrein
Member
 
Registered: Aug 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Code:
mkdir /media/D && mount -t vfat /dev/sdb1 /media/D
mkdir /media/D
ok i did this still the same output
mount -t vfat /dev/sdb1 media/D
output: mount: mount point media/D: does not exist
 
Old 08-27-2009, 03:54 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Quote:
Originally Posted by wakrein View Post
mkdir /media/D
ok i did this still the same output
mount -t vfat /dev/sdb1 media/D
output: mount: mount point media/D: does not exist
You forgot a leading slash: is /media/D, not media/D.
 
Old 08-27-2009, 03:56 AM   #9
wakrein
Member
 
Registered: Aug 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
You forgot a leading slash: is /media/D, not media/D.
oh

darn i get thi output now

mount: special device /dev/sbd1 does not exist
 
Old 08-27-2009, 04:00 AM   #10
wakrein
Member
 
Registered: Aug 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
You forgot a leading slash: is /media/D, not media/D.
i see what i did wrong i need was typing sbd instead of what i should of typed sdb heh sorry well let get it a shot
 
Old 08-27-2009, 04:03 AM   #11
wakrein
Member
 
Registered: Aug 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
You forgot a leading slash: is /media/D, not media/D.
mount: /dev/sdb1 already mounted or /media/D: busy
mount: according to mtab, /dev/sdb1 is already mounted on /media/D:

sorry for my tripple post.
 
Old 08-27-2009, 04:16 AM   #12
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Well, let's start from the beginning: you have first to umount /dev/sdb1:
Code:
umount /dev/sdb1
because the system automatically mounted it with noexec. Now, re-mount it under /media/D using
Code:
mount -t vfat /dev/sdb1 /media/D
As further step check the output of the mount command again (without options) to see if the disk has been mounted correctly (without noexec).
 
Old 08-27-2009, 04:18 AM   #13
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
use following
#mount -o remount,exec /dev/sdb1

thnks
 
Old 08-27-2009, 04:27 AM   #14
wakrein
Member
 
Registered: Aug 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vishesh View Post
use following
#mount -o remount,exec /dev/sdb1

thnks
done
here is mount output
Code:
rootfs on / type rootfs (rw)
/dev/sda1 on /.ro type ext2 (ro)
/dev/sda2 on /.rw type ext3 (rw,noatime,data=ordered)
none on / type aufs (rw,xino=/.rw/.aufs.xino,br:/.rw=rw:/.ro=ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /tmp type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sdb1 on /media/D: type vfat (rw,nosuid,nodev,fmask=0111,dmask=0000,codepage=cp850,iocharset=utf8,shortname=mixed)
/dev/sda1 on /ro type ext2 (ro)
./configure
Code:
bash: ./configure: No such file or directory
mount -t vfat /dev/sdb1 /media/D:
Code:
mount: /dev/sdb1 already mounted or /media/D: busy
mount: according to mtab, /dev/sdb1 is already mounted on /media/D:
 
Old 08-27-2009, 04:46 AM   #15
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Quote:
Originally Posted by wakrein View Post
Code:
bash: ./configure: No such file or directory
Be sure you're in the directory where configure is placed:
Code:
pwd
ls
 
  


Reply

Tags
configure, denied, permission


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
./configure - permission denied Odan Linux - General 14 03-31-2013 10:04 AM
media:/ gives permission denied blackbeard99 Slackware 6 12-23-2007 03:58 AM
Permission denied in mount /media/cdrecorder from non-root account... sean04 Linux - Newbie 2 12-10-2007 12:57 PM
./configure: Permission denied Qing Feng Linux - Newbie 3 11-16-2004 11:08 AM
./configure --> permission denied mrosati Linux - Software 3 05-13-2004 02:48 PM


All times are GMT -5. The time now is 05:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration