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 01-01-2009, 08:29 PM   #1
mortyg
LQ Newbie
 
Registered: Nov 2008
Distribution: Fedora 15
Posts: 5

Rep: Reputation: 0
floppy dir changes ownership when mounted


Hello, right from the start I could mount the floppy drive from my gnome desktop, I wanted to try from the command line and found I needed to add this line to my fstab, /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 I did that then I made the folder floppy in my home directory. I can mount umount the floppy fine (as root), but, I am unable to create files on the floppy as myself. It seems when I mount as root it changes the ownership of the floppy folder to root taking away my permissions. I have read man mount, info mount, googled mount, the same with permissions, any help would be appreciated. I am using Fedora Core 9, later mortyg
 
Old 01-01-2009, 09:44 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by mortyg View Post
Hello, right from the start I could mount the floppy drive from my gnome desktop, I wanted to try from the command line and found I needed to add this line to my fstab, /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 I did that then I made the folder floppy in my home directory.
Step by step.
  • What's the purpose of creating a dir called "floppy" in your home?
  • Did you do anything else in fstab related to that floppy dir in your home?

Quote:
I can mount umount the floppy fine (as root), but, I am unable to create files on the floppy as myself. It seems when I mount as root it changes the ownership of the floppy folder to root taking away my permissions.
Yes. That's the normal thing. There are many things you can do about it.

If the volume is mounted as vfat, check the "umask" mount option. You probably want umask=000. If it's formatted with a linux fs, then it's probably aware of permissions. In that case I guess you just need to mount it as your user, and not as root. The "user" and "users" options for mount (which are not the same option) will come in handy about that.
 
Old 01-03-2009, 09:11 AM   #3
mortyg
LQ Newbie
 
Registered: Nov 2008
Distribution: Fedora 15
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for answering, sorry it took so long for me to get back, when I originally tried to mount, I got the error msg that it could not find the mount point, after some more reading I new I had to mkdir floppy, the only article I found that told me where to do that, said to make it in /home/(me)/floppy.

The line, /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 is the only thing I did to fstab.

Where should I mkdir floppy? When I get that in the correct place I will look at the umask command.
 
Old 01-04-2009, 12:49 PM   #4
mortyg
LQ Newbie
 
Registered: Nov 2008
Distribution: Fedora 15
Posts: 5

Original Poster
Rep: Reputation: 0
problem solved

With some local help I found all I need was the right command: mount /dev/fd0 /mnt/floppy, newbie...what can I say, later mortyg
 
  


Reply


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
dir and group ownership automatic set thllgo Linux - Newbie 3 06-13-2008 10:36 AM
changing ownership of a mounted drive laucian Linux - Newbie 9 11-02-2007 02:50 PM
permissions and ownership on dir gabsik Linux - Software 4 02-05-2007 06:48 AM
File ownership - changing a whole dir to different owner sKAApGIF Linux - Desktop 6 08-21-2006 08:25 AM
Could not modify the ownership of a dir RayQ Linux - General 12 12-29-2004 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 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