LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-27-2004, 07:54 PM   #1
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Rep: Reputation: 30
9.2 zip disk permission denied


I have mandrake 9.2. I recently installed a 100mb IDE zip drive, which I know works.

Mandrake autocreated this in my fstab when I booted:

none /mnt/zip supermount dev=/dev/hdc4,fs=ext2:vfat,--,codepage=850,kudzu,sync,iocharset=iso8859-1 0 0

When I put in an ext2 formatted disk, I get

[root@localhost rotwang]# mount /mnt/zip
mount: permission denied

Notice- I'm ROOT there.

I've even tried formatting the disk as Linux again, which I'm able to do since you don't need to mount a disk to format it.

I put my own entry in fstab to mount vfat discs:

/dev/hdc4 /mnt/zipfat vfat user,rw,exec,noauto 0 0

And that works fine (for vfat discs).

I have two questions:

1. How do I fix (I'm assuming I should just delete Mandrake's fstab entry and try a variation of my vfat entry).

2. If I'm supposed to do number 1 above, then why did mandrake screw up installing my zip drive and is this a bug in Mandrake? Seems like something as simple as recognizing a 100 zip drive would be what mandrake excels at but here I am deleting it's fstab entry?
 
Old 03-28-2004, 10:39 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
none /mnt/zip supermount dev=/dev/hdc4,fs=ext2:vfat,--,codepage=850,kudzu,sync,iocharset=iso8859-1 0 0
supermount will automatically mount the disk when you access it. You do not need to explicitly use the mount / umount commands. You might get errors when attempting to use the mount command with supermount enabled.

So there might not be a problem. If you want to go back to the original fstab entry stick the disk in the drive and use whatever means to access it. Before you eject be sure to close any applications using the disk or be sure to select another directory with a file browser or if in a text console use the cd command to change directories.

supermount does have its problems and you might find it better not to enable it. Some apps do not like supermount and it might unmount the disk when its least expected.
 
Old 03-28-2004, 10:51 AM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Code:
/dev/hdc4 /mnt/zip ext2 defaults,owner,users,exec,rw 0 0
try this and see if it works........

Last edited by 320mb; 03-28-2004 at 10:53 AM.
 
Old 03-28-2004, 01:54 PM   #4
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by michaelk
supermount will automatically mount the disk when you access it. You do not need to explicitly use the mount / umount commands. You might get errors when attempting to use the mount command with supermount enabled.
Thank you, you're right. One probelm tho-

When I put in a zip and cd to my /mnt/zip dir, I only have read access as a user (I need root to be able to write files to the disk). But, the permissions on my /mnt/zip dir are 777. When I formated the disk I was root. (ran fdisk and then mke2fs as root).

How do I make the disk's base "/" dir be 770?

thank you

Last edited by Rotwang; 03-28-2004 at 01:56 PM.
 
Old 05-10-2006, 03:09 PM   #5
Thomas Jennings
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
permission.zip

Quote:
Originally Posted by Rotwang
Thank you, you're right. One probelm tho-

When I put in a zip and cd to my /mnt/zip dir, I only have read access as a user (I need root to be able to write files to the disk). But, the permissions on my /mnt/zip dir are 777. When I formated the disk I was root. (ran fdisk and then mke2fs as root).

How do I make the disk's base "/" dir be 770?

thank you
How do I work this thing? I am trying to get permission.zip
 
Old 05-10-2006, 03:51 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Thomas Jennings,
Welcome to LinuxQuestions. You do not mention what distribution (assume Mandriva?) / version you are running. Assuming the disk is still formated as FAT32 add the umask=000 option to the /etc/fstab entry for read / write by anyone i.e.

/dev/sda4 /mnt/zip vfat users,noauto,umask=000 0 0

Change /dev/sda4 to the actual device ID (an already formated zip disk still uses 4th partition). noauto does not mount the drive at bootup.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
permission denied Ryan450 Linux - Software 2 01-19-2005 05:25 PM
Permission DEnied NomadABC Linux - Software 3 01-02-2005 09:53 AM
access denied to /mnt/zip as user subjazz Mandriva 8 06-24-2004 09:46 PM
permission denied noir-gel Programming 8 11-17-2003 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:19 PM.

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
Open Source Consulting | Domain Registration