Click to See Complete Forum and Search --> : Problems mounting Fat32 drive..
JesterDev
07-21-2004, 11:10 PM
When I installed Suse 9.1 pro I made a Fat32 partition for storage when space got tight. Well space is getting a bit tight now, but I cannot write to this drive. I have logged in as root and changed the permissions but when I go back to my normal user I still do not have access. So when I go back to root now the changes did not take effect and it tells me I don't have sufficient permission to change the settings.
Anyway the drive is mounted at /local so should I change that? To what?
I was thinking just not providing any mount location and then just mounting it to my desktop, but I don't want to mess up the partition. There is no OS on that partition, it's just formated and empty.
Anyone have some advice?
paj12
07-21-2004, 11:23 PM
Add "users" and "rw" to the line for your HD in /etc/fstab. This will let users mount and read/write the partition.
Don't forget to also add the umask=022 or umask=000 option.
JesterDev
07-22-2004, 12:14 AM
Just to make sure I did this right:
/dev/hda1 / reiserfs acl,user_xattr 1 1
/dev/hdb2 /home reiserfs acl,user_xattr 1 2
/dev/hda2 /local vfat users,rw,umask=022 0 0
/dev/hdb1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/dvd /media/dvd subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=ut f8 0 0
/dev/dvdrecorder /media/dvdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=ut f8 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0
It's /dev/hda2
On Windows partitions you use the umask option to give more specific permissions. It makes no sense having both so you can remove the rw option.
The rest is fine, you can try it.
JesterDev
07-22-2004, 11:46 PM
Well I removed the rw and I still cannot write to that drive. That was the only change I made. So the line with that drive looks like this:
/dev/hda2 /local vfat users,umask=022 0 0
I even rebooted and that made no difference.
paj12
07-23-2004, 12:00 AM
Here, try mine:
/dev/hda1 /windows/c vfat users,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0
That's what the SuSE 9.0 installation hooked me up with by default. There's probably a lot of unnecessary stuff, but it seems to work.
Hope this helps.
JesterDev
07-23-2004, 12:45 AM
Wouldn't converting from /local/ to /windows/c screw someting up? I just don't want to mess anything up.
paj12
07-23-2004, 12:52 AM
Sorry if I was unclear. I meant for you to plug in "users,gid=users,umask=0002,iocharset=iso8859-1,code=437" into your own fstab. What I wrote was the line from my own fstab for my Windows C:\ drive.
JesterDev
07-23-2004, 03:12 AM
Well that didn't work either.. All I get know is:
Could not mount device.
The reported error was:
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
Well this just sucks. I'm sure the partitions not bad. I would just have to restore the original settings.. But I really need the space. That partition would give me anohter 110gigs.
I know this has to be possible.
MMYoung
07-23-2004, 08:10 AM
Try
/dev/hda2 /local vfat noauto,users,rw 0 0
That works with my Slackware install anyway. To explain:
noauto - don't auto mount the filesystem at boot
users - allow all users to mount the drive
rw - mount drive in read/write mode
BTW, you do have a directory called /local don't you?
HTH,
MMYoung
XiaoKJ
07-23-2004, 09:56 AM
Originally posted by JesterDev
Well that didn't work either.. All I get know is:
Could not mount device.
The reported error was:
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
Well this just sucks. I'm sure the partitions not bad. I would just have to restore the original settings.. But I really need the space. That partition would give me anohter 110gigs.
I know this has to be possible.
I don't think vfat can support 110 gigs cos its limit is at 32gb
deathadder
07-23-2004, 11:06 AM
Have you got the vfat module loaded?
modprobe vfat (as root)
korn4266
07-23-2004, 11:14 AM
I just posted something exactly like this thread about a week ago.
try mine:
/dev/hde1 /mnt/storage_drive vfat rw,auto,users,umask=000 0 0
Mine works just fine with that.
dboyer
07-23-2004, 01:56 PM
Originally posted by XiaoKJ
I don't think vfat can support 110 gigs cos its limit is at 32gb
No. A thousand times no!
JesterDev
07-23-2004, 03:42 PM
OK, I tried modeprobe vfat and nothing happened. I also tried this line:
/mnt/storage_drive vfat rw,auto,users,umask=000 0 0
And no luck there either. Still some errors open trying to opent he partition in KDE. Perhaps it's labled wrong then if vfat cannot handle this size. It's a Fat32 partition as listed here: 0x0C Win95 FAT32 LBA
I opened up the patition manager, and mounted it in /mnt/Fat32 so now I guess I'll start from scratch and see what happens.
JesterDev
07-23-2004, 04:08 PM
Got it! :)
Just mounted as above, then added in the suggested lines (thanks everyone) and it worked.