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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-01-2009, 08:29 PM
|
#1
|
LQ Newbie
Registered: Nov 2008
Distribution: Fedora 15
Posts: 5
Rep:
|
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
|
|
|
01-01-2009, 09:44 PM
|
#2
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by mortyg
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.
|
|
|
01-03-2009, 09:11 AM
|
#3
|
LQ Newbie
Registered: Nov 2008
Distribution: Fedora 15
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
01-04-2009, 12:49 PM
|
#4
|
LQ Newbie
Registered: Nov 2008
Distribution: Fedora 15
Posts: 5
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|