Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 use a SUSE 9.3 distribution that has hotplug installed. When I plug an external Hard Disk, I have only ready only user access and read write access as root.
changing the parameters in the file /etc/sysconfig/hotplug does not help:
BUT if the filesystem on the USB disk is FAT32 I get a rw access to this !!
reading the /etc/mtab show that the submountd does not seem to take into account my fstab
when you figure that out, please let me know. i have the same issue with debian on the 2.6.11 kernel. i have rw permissions in my /etc/fstab, but it does not matter only root has those permissions and it still gives me plenty of error msg, but does what i tell it to do.
user can not to squat other then read my USBstick.
submountd tends to replace mountd I suppose for the main Linux distributors. see submount.sourceforge.net/ to check that I correctly understood this. That means changing interpretation of fstab file (noauto,umask .... not processed anymore)
The new option procuid does not help
the option user and users are different but not usefull with this new interpretation of fstab.
I know the two options are different, I'm not exactly sure how 'users' work but I know 'user' will make all the files owned by the user that mounts the device aswell as allowing a normal user to mount/umount that device
Oh, and do you know for sure that the option 'rw' does have an affect if others like 'users' don't? I don't have much knowledge about mountd and submountd to be able to be able to help much further, sorry
I changed my fstab and saw the results on mtab after having unplugged and replugged the USB disk.
It seems that the kernel ( chkconfig --list | grep mount shows nothing) calls submountd which is an executable located in /sbin.
You should never have to reboot for changed settings in fstab to take effect, unless they apply to a drive that can't be unmounted. A drive can only be (safely) unmounted when it is not being used [see fuser(1)]. That said, when you plug in your USB stick, the hotplugger sees a new device, which registers as something like usb-mass-storage. If necessary, appropriate kernel modules are loaded, and the automounter daemon (tipped off by the hotplugger that something is going on) checks the kernel-assigned drive designation against fstab to find out how it should be mounted. I think that's more or less how it works. But fstab changes will take effect on the next mount, regardless.
I've found a solution for me:
Formatting the external disk with FAT32 makes it writable with automount. In other words, if I connect a CFcard or an external hard disk formatted ext3 I have a user read only access and a read/write root access, but without changing anything else, when I reformat my CFCARD or HD with FAT, I get a user read/write access. So I keep the FAT32 filesystem on my external HD.
Originally posted by Lleb_KCir also once you make a change to fstab, do you have to reboot for it to take effect or is there an other way around that like restarting some service?
Code:
# umount -a
for unmounting everything. (it will not unmount the disks that are in use)
Code:
# mount -a
for mounting the whole fstab file in /etc/fstab.
so for the fstab file to take effect just type:
Code:
# umount -a;mount -a
greetings.
bas
(i have the same problem (thread) but changing filesystem ain't an option. so i am still looking for the RIGHT answer.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.