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.
/dev/sda1 /mnt/cardreader auto sync,noauto,user,exec,rw 0 0 #HOTPLUG B3Fu.Ua$
/dev/hda1 /mnt/win95 auto auto,user,exec,ro 0 0
/dev/hda5 /mnt/winfiles auto auto,user,exec,ro 0 0
This allows me to right click on my desktop and mount any of these three... For some reason, the win95 and winfiles mounts are only readable if I am logged in as root. I have changed the permissions, but everytime I issue the mount command, it changes the properties to read and execute only for root. Any ideas why?
Also, the card reader will mount and I can read and delete files. However, it will only let me write a meg of data on the card before it says its full... And its a 128Mb card Any ideas on this also?
You have to set the access rights for your windows partitions with umask.
This is not done by simply changing the access rights of the mountpoint.
So add umask=0000 to the lines with the mount options for the windows partitions
in order to allow ANYONE to read and write from/to the windows partitions.
OK, since you are mounting read only, umask=0222 is the right option.
Better:
I suggest you group all valid users in a group. Usually they are grouped per default into a group called "users".
Find the group id of users by loging in as a non-root user and typing
id
let's say this gid=100
then add following to the mount options in fstab
gid=100, umask 0007
This will allow only the members of the "users" group to read/write and execute
from/to your windows partition.
In your case, since you mount read-only it could be, e.g.:
/dev/hda1 /mnt/win95 auto auto,gid=100, umask 0227,user,exec,ro 0 0
Right... I found the problem with the card reader was that I was deleting files and they were going to the .Trash-user directory on the card, thus leaving no space. Is there a way to stop this hapening? I don't want to su in every time I delete files to the delete the trash...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.