Linux - NewbieThis 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.
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.
i've read so many threads and pages regarding this problem, I dont even know if I've having the same issue as when I started. But I am going to start over from the beginning and ask for help this time.
I have a debian machine with an external harddrive. I have a windows machine on the same network from which I can read the files from the debian drive, but I cant write to it.
At some point in time (several months ago?) I could.
currently, I have this line in my /etc/fstab:
/dev/sdb1 /media/MUSIC/ vfat user,uid=1000,gid=1000,rw,umask=000 0 0
and i've tried a hundred different mount commands (but not as many as i've tried fstab lines) but generally have been using this at start up:
sudo mount /dev/sdb1 /media/MUSIC/
(i am under the impression that i should not have to use 'sudo' when doing this, since the fstab line includes 'user' but if i dont, the command fails)
no matter what I've tried, the permissions come out as owned by root:
drwxr-xr-x 905 root root 163840 2010-10-17 17:45 Music
attempting (as root) to change ownership of the directory also does not work:
chown: changing ownership of `/media/MUSIC/': Operation not permitted
i've confirmed that i have the uid and gid number correct with
id wgato
but it doesnt seem to 'take' even after reboot. I can only mount the drive with the sudo command and cannot write to it unless i'm root on the debian machine.
i read, but didnt fully grasp, that you cant have users permissions on drives using a FAT file system. Good to know that chown/chmod is a dead end.
ETA:
i'm not sure what i did different (ARGH), but i can now mount the drive as a regular user.
but i still cant write to it unless i'm root.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.