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 have Mandrake 9.2, but cannot save files to a FAT32 partition on a second drive on my PC, when I am logged in as user.
I have tried logging in as root - but get the same error message, that I do not have the permissions, even though, when I click on "Permissions" it says that I have write permissions.
I have seen similar questions on this format. Apologies if I am duplicating.
How is the partition mounted? Perhaps it is mounted readonly...
mount
cat /etc/fstab
ls -l /dev/hdx or whatever device you use
Will show the desired information.
They are all set to ro. It does not matter with some, as my C drive (with XP) is NTFS. The other drives I can use Partition Magic to convert to FAT32, as I have read that it can cause problems trying to write to NTFS drives.
Here is the result of the doing the cat /etc/ftstab:
I assume that you want to write to hda5. If you are the only user on the computer, you may want to add the options uid=gcox,gid=gcox. I assumed that your user name is gcox, substitute your own user name or user/group id. If there are others you can create a group that will allow you to access this drive.
By using user and group permissions instead of the users option, The drive is more secure incase someone can gain remote access to your computer. However, I don't understand why root wasn't able to write to the drive.
Your fstab entry should then look like this:
Also, Mandrake sets up a group called fileshare for the purpose of sharing access to drives. To allow another user to access the drive, add the user to the fileshare group and change the fstab option to gid=fileshare.
BTW the option ro means readonly and umask=0 means read / write for all. Since umask is after ro option it will take precedence. Since NTFS module is read only umask=0 will not work.
What do you recommend as an editor? I remember using vi many, many years ago when I was learning a bit of Unix - very unintuitive! I can use it, but if there is a simpler text editor, I would prefer to use it.
I assume that I just remove the ro from the string? I can also add the other things that you suggest.
Do the changes take immediate effect or do I need to reboot ?- spoken like an experienced Windows user!
I recommend vi for its simplicity. You only need to know a couple of commands to use it for this purpose. "I" puts you in insert mode. <esc>:q or wq gets you out.
You can use a GUI like gedit or kate but many prefer not to use a GUI as root.
I decided that the simple way out was to change all my data drives to FAT32 and reinstall Linux, which I did, and now I can read and write to my data drives even as "user" and not root.
Many thanks for all those who helped me with their contributions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.