Results 1 to 10 of 16
I have a simple but annoying problem. I want to automatically mount a shared data partition at boot-up in order to read/write data and to share email and web browser ...
- 12-18-2006 #1Just Joined!
- Join Date
- Oct 2006
- Location
- Berlin, Germany
- Posts
- 15
Mount FAT32 shared partition with 'write' permission
I have a simple but annoying problem. I want to automatically mount a shared data partition at boot-up in order to read/write data and to share email and web browser information. I have a separate partition formatted to FAT32 (vfat). I have created a mount point (/winshare) and added a line to '/etc/fstab'. For various reasons I would prefer to have an independent mount point rather than mounting it in '/home/user_name' (where I assume I would have read/write access by default). However, while the partition mounts, I can see and access the data, I cannot get write permission.
Here is the relevant information.
$ mount:
'/etc/fstab':Code:/dev/sda2 on /winshare type vfat (rw,uid=1000,gid=1000)
I have tried mounting the partition using <options>:Code:# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs devmode=0666 0 0 sysfs /sys sysfs defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 /dev/sda5 / reiserfs defaults 0 1 /dev/sda1 /media/sda1 ntfs ro,umask=000,nls=utf8 0 0 /dev/sda2 /winshare vfat auto,rw,uid=1000,gid=1000 0 0 /dev/sda6 /home ext3 defaults 0 0 /dev/sda7 none swap sw 0 0 /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0OC
"rw,auto,users"
and
"defaults"
as well as what you can see above
"auto,rw,uid=user_name,gid=group_name"
I have also tried to run '# chmod' on the mount point, for e.g., '# chmod ug+w /winshare' but while I can change all these options, I cannot change the write permission.
Can anyone advise me on this? Thanks.
coady
- 12-18-2006 #2
This should work nicely :
Code:/dev/sda2 /winshare vfat user,umask=0000,iocharset=utf8 0 0
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."
-Bruce Lee
- 12-18-2006 #3
add this code in /etc/fstab file for /winshare.
Code:/dev/sda2 /winshare vfat rw,auto,umask=0,uid=1000,gid=1000 0 0
Edit: antidrugue beats me !
CasperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 12-18-2006 #4Just Joined!
- Join Date
- Oct 2006
- Location
- Berlin, Germany
- Posts
- 15
I tried the following, but it doesn't work:
I am not sure why? I have tried other combinations too.Code:/dev/sda2 /winshare vfat rw,auto,umask=0000,uid=1000,gid=1000,iocharset=utf8 0 0
Is the problem the location of the mount point in the file system?
What about specific umask settings (e.g. for user and group)?
Note, utf8 is set in LANG.
coady
- 12-18-2006 #5
I believe the important bit is the "user" part.
This allows users with non-root access to write to the partition. (i think)Code:/dev/sda2 /winshare vfat user,rw,auto,umask=0000,uid=1000,gid=1000,iocharset=utf8 0 0
- 12-18-2006 #6Just Joined!
- Join Date
- Oct 2006
- Location
- Berlin, Germany
- Posts
- 15
I have entered the following setting in '/etc/fstab':
"/dev/sda2 /media/sda2 vfat exec,umask=000,shortname=mixed,quiet,iocharset=utf 8 0 0"
command "mount" looks like this:
"/dev/sda2 on /media/sda2 type vfat (rw,umask=000,shortname=mixed,quiet,iocharset=utf
"
command "ls -l" looks like this:
"drwxrwxrwx 6 root root 4096 1970-01-01 01:00 sda2"
It should work. I know it should. But I can't write to "/dev/sda2". The strange thing I noticed here is the date (i.e. "1970-01-01 01:00").
coady
- 12-18-2006 #7Just Joined!
- Join Date
- Dec 2006
- Posts
- 7
Sorry to barge in, but i have the same problem.
I crated /mnt/dos
in fstab i added the line
/dev/hdb5 /mnt/dos vfat defaults 0 0
or rw 0 0
what to do? i just want my partition mounted, thats all.
- 12-19-2006 #8
hi koady !
post the output of 'fdisk -l' command.
the code you are using seems correct. is /dev/hda5 has FAT32 file system? did you create mount point 'dos'?
Originally Posted by Danniy
post the output of 'fdisk -l' command.
CasperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 12-19-2006 #9Just Joined!
- Join Date
- Oct 2006
- Location
- Berlin, Germany
- Posts
- 15
Thanks to everyone who helped here. I now have read/write access to the shared partition. Best regards to all...
coady
- 12-19-2006 #10Just Joined!
- Join Date
- Dec 2006
- Posts
- 7
What do u mean by creating a mount point? How to create a mount point?
The partition is fat32. Is a windows partition, and i want full rights on it from linux. I cant mount it.
I only mount it by this line:
mount -t vfat /dev/hdb5 /mnt/dos
But is temporary and i dont have write rights.
What to do. Im a linux novice.



