Changing permissions
I have this harddrive where I've kept all files from the time that I used Windows. So it's FAT32. Now, I can't access these files when I'm not logged in as root and that's no fun. I tried the following:
Code:
bash-2.05b$ su I tried reading man chmod but I don't really get it and I wanna get this donw as quick as possible. |
That won't work. You've to make them available editing the file fstab, located at /etc.
This is how mine looks like: Code:
/dev/hda2 /mnt/win_d vfat uid=500,gid=500,umask=000,exec,dev,suid,rw 1 0 /partition / mount point < permissions> The above code mounts the second slice of my hd to /mnt/win_d and all users can access my win partitions. Regards! |
The good way to allow someone else than root to access FAT32 partition is to use mount options. A quick (and dirty according to me), is to add the following option in your /etc/fstab: umask=000. Or a proper solution is to mount your partition with a GID different then root. For example create a group named vfat with a GID of 500, and then add as option in your /etc/fstab: gid=500. Then add user you want to access vfat partition to the vfat group ;)
|
Mine says
Code:
/dev/hdd1 /fat-d vfat defaults 1 0 Code:
/dev/hdd1 /fat-d vfat uid=100, umask=000, exec, dev, suid, rw 1 0 |
did you create the directory /fat-d ? You've to create it first :)
|
When I installed Slackware I chose that harddrive and gave it the name /fat-d. Other than that I haven't done anything to it. But I can access it by going into /fat-d as root so it's created then right?
|
yup. Only the permissions seems weird... hmmm.. check this link:
http://members.cox.net/laitcg/new/intro.html It's the best slackware tutorial there is in my honest opinion. I've print it out and the guy teaches about mounting windows partitions for write and reading. But I pretty much got it from there, but take a look anyway! Good luck! |
On that site it says
Code:
/dev/hda1 /win98 vfat uid=500,gid=500,umask=000,exec,dev,suid,rw 1 0 Code:
/dev/hdd1 /fat-d vfat uid=500,gid=500,umask=000,exec,dev,suid,rw 1 0 Oh well, maybe the best thing would be to get rid of all films and music and save the most important stuff on CD's and format the disk. |
you just need to umount vfat partition and remount it :)
Code:
umount /fat-d |
Oliv' is correct ;). Rebooting would also work, since Linux will search for fstab to mount partition during the boot time. Don't format the disk ;). There's always another way with Linux :D...
Starta om den då :) |
Great! Thanks alot to all of you.
|
All times are GMT -5. The time now is 07:51 AM. |