chmod USB pendrive problem
I've gotten my 32 meg Targus DiskOnKey USB pendrive working on Redhat Linux 9 (redhat can recognize, and mount it). But I've been having some problems with it. I originally created /mnt/diskonkey as my mount point, and I've been using
mount -t vfat /dev/sda1 /mnt/diskonkey
to mount it. Strangely enough, when I unmount and remove the pendrive, /mnt/diskonkey disappears, and reappears when I plug it back in. It also edits my fstab whenever I plug/unplug it. it adds/removes the following line
/dev/sda /mnt/diskonkey auto noauto,owner,kudzu 0 0
That much I assume is just normal working order, so I don't consider that a problem, that's just background info. Here is my problem.
when I created the mount point, I did chmod 777 /mnt/diskonkey. but whenever I mount the drive, the permissions change to 755 so I cannot edit the contents in konqueror unless I am logged in as root. I can still do functions like cp and mv in the console as root, but this is somewhat cumbersome when I am just trying to use my drive in a GUI. I've tried using chmod while it was mounted, but it gave me the following error
[root@localhost magician]# chmod 777 /mnt/diskonkey/
chmod: changing permissions of `/mnt/diskonkey/' (requested: 0777, actual: 0755): Operation not permitted
Trying to use chown to change the owner of the drive yielded a similar error as well. does anyone have a fix? The pendrive itself has no physical write-lock switch
|