Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Im using fedora 7 and using fluxbox for my desktop most of the time, and KDE the rest of the time. Im dual booting with windows 98. I did a search for my hard drives and sda1 is the windows partition, sdb1 is my usb drive, and sda5 is my linux hdd. i created directories for mount points within my home directory and have also tried using the default /media/.
so i tried to mount the windows partition like this:
#mkdir /mount/hdd
#mount -t vfat /dev/sda1 /media/hdd
it comes up with read write and execute wfor root and read and execute for user and other.
i tried to change the permissions with
#chmod 777 /media/hdd
i received no error message but it didnt set the default permissions.
i then loaded konqueror from root and tried to right click on the mounted hdd. when i opened up the properties dialog and selected permissions, i was able to change them. when i clicked ok it went thru the normal process, spawned no error message, and then when i opened the properties again nothing was changed, no write permission for users or group.
i googled chmod and it said it was set to rw by default but i could use the -o rw option so i tried
#mount -o rw /dev/sda1 /media/hdd
(this was after using umount). Still only rwx in root, no write in user or group.
when i tried chown it gave me a permission denied error.
when i am in KDE, almost everything automounts which is cool, but i want to be able to use fluxbox because my box has only 384M ram. I also notice when i am in KDE that the usb automounts with rw for user and group.
What am i doing wrong?
btw i realize i did not copy and paste from my konsole as i am not at my PC atm. i will be able to copy and paste in any future replies. thanks a lot.
Distribution: suse, opensuse, debian, others for testing
Posts: 307
Rep:
As you know fat32 does not know about file permissions, so there is also no way for linux to store them there.
File permissions must be set at mount time.
e.g.: mount -t vfat /dev/sda1 /mnt/win98 -o rw,uid=0,gid=104,umask=002
thank you very much, it worked with only a little alteration.
[root@localhost jp]# mount -t vfat /dev/sda1 /media/hdd -o rw,uid=0,gid=104,umask=002
[root@localhost jp]# ls -l /media
total 22
dr-xr-xr-x 2 root root 2048 2007-07-27 22:43 cd
drwxr-xr-x 2 root root 4096 2007-07-14 19:12 dvd
drwxrwxr-x 10 root 104 4096 1969-12-31 19:00 hdd
drwxr-xr-x 2 root root 4096 2007-07-27 14:18 usb1
then i changed umask to 000 and viola:
[root@localhost jp]# mount -t vfat /dev/sda1 /media/hdd -o rw,uid=0,gid=104,umask=000
[root@localhost jp]# ls -l /media
total 22
dr-xr-xr-x 2 root root 2048 2007-07-27 22:43 cd
drwxr-xr-x 2 root root 4096 2007-07-14 19:12 dvd
drwxrwxrwx 10 root 104 4096 1969-12-31 19:00 hdd
drwxr-xr-x 2 root root 4096 2007-07-27 14:18 usb1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.