openSUSE Forums > Applications » Please help: Can't write/delete FAT (even with SuperUser)

Go Back   openSUSE Forums > Applications
Forums FAQ Members List Search Today's Posts Mark Forums Read


Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation)

Reply
Page 1 of 3 1 23
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 18-Jul-2008, 01:58
nayk92's Avatar
Puzzled Penguin
 
Join Date: Jun 2008
Location: Bangalore, India
Posts: 20
nayk92 hasn't been rated much yet
Unhappy Please help: Can't write/delete FAT (even with SuperUser)

I've been trying to write/delete to my FAT partition for about 2 weeks now and can't. Usually I use Konqueror, but I've also used SuperUser Dolphin, I've even opened a new Root account... but nothing allows me to write/delete to my FAT partition, nor can I even change permissions either (though I have read/write privileges as a user, though the OTHER group has only READ privileges).

What is frustrating is that I think I was able to write/delete in my FAT partition when I installed openSUSE 11. But now I can't. I'm sure I messed up somewhere... but I'm not linux proficient enough to figure it out.

I've been forum/google search like crazy but it seems that no one really has this problem or haven't reported it's solution that I know of.

I use openSUSE 11 with a dual boot of Windows XP Home. My FAT partition is about 4.5 GB. I use KDE3.5 (though I also have KDE4 installed). My fstab details are:

Quote:
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part6 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part7 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part8 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.U TF-8 0 0
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.U TF-8 0 0
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part5 /windows/E vfat user,users,gid=users,umask=0002,utf8=true 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
I don't mind having only read privileges for my NTFS drive (though it would be nice to write). But I really need to be able to write to the FAT (vfat) partition.

Please, please, do help. Thanks... in anticipation.

Last edited by nayk92; 18-Jul-2008 at 02:00. Reason: more detail
Reply With Quote
  #2 (permalink)  
Old 18-Jul-2008, 02:06
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,824
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: Please help: Can't write/delete FAT (even with SuperUser

It looks correct in fstab

Have you tried super user, then go to folder where drive is mounted
right click - properties
in permissions tab - drop down boxes, set all to read write
__________________
Box: Fedora 11 | (KDE4.3.2) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM

Last edited by caf4926; 18-Jul-2008 at 02:06. Reason: typo
Reply With Quote
  #3 (permalink)  
Old 18-Jul-2008, 03:08
bcrisciotti's Avatar
Explorer Penguin
 
Join Date: Jun 2008
Location: Rome, Italy
Posts: 241
bcrisciotti hasn't been rated much yet
Default Re: Please help: Can't write/delete FAT (even with SuperUser

Well i agree it is very strange that root cannot delete any file. So try to perform a scandisk in windows or in linux fsck'vfat on the partition.
Reply With Quote
  #4 (permalink)  
Old 18-Jul-2008, 08:04
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,847
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: Please help: Can't write/delete FAT (even with SuperUser

Try replacing this:
Quote:
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part5 /windows/E vfat user,users,gid=users,umask=0002,utf8=true 0 0
by this:
Quote:
/dev/sda5 /windows/E vfat users,gid=users,umask=0002,utf8=true 0 0
So do that first then do this:
The directory "E" in /windows/E. I suggest you change it's owner to root:users. Here's the routine to do that without getting at odds with the mounted drive:
  • Open a terminal and assume root privileges with command: su
  • Unmount the partition with command: umount /dev/sda5
  • Change ownership with command: chown -R root:users /windows/E
  • Change permissions with command: chmod 775 /windows/E
  • remount it with this command: mount -a
__________________
Drop in and visit some time.
Reply With Quote
  #5 (permalink)  
Old 18-Jul-2008, 11:48
nayk92's Avatar
Puzzled Penguin
 
Join Date: Jun 2008
Location: Bangalore, India
Posts: 20
nayk92 hasn't been rated much yet
Default Re: Please help: Can't write/delete FAT (even with SuperUser

To Swerdna: Hey thank you so much for taking the time to reply. Your great reputation precedes you!

I did what you said, (it does look neater), but it didn't work.

I think my E drive was anyway owned by root... But I still followed those steps... but it's just the same... doesn't work, whether I use super user file manager or just plain browser.

Any other suggestions??? (if you have the time)
Reply With Quote
  #6 (permalink)  
Old 18-Jul-2008, 11:50
nayk92's Avatar
Puzzled Penguin
 
Join Date: Jun 2008
Location: Bangalore, India
Posts: 20
nayk92 hasn't been rated much yet
Question Re: Please help: Can't write/delete FAT (even with SuperUser

Quote:
Originally Posted by bcrisciotti View Post
Well i agree it is very strange that root cannot delete any file. So try to perform a scandisk in windows or in linux fsck'vfat on the partition.
Thanks for this suggestion... but when I went to the terminal and typed fsck'vfat all it did was change the command prompt to > and then I couldn't do anything else, even exit (I had to manually close). Am I missing a step?
Reply With Quote
  #7 (permalink)  
Old 18-Jul-2008, 11:58
nayk92's Avatar
Puzzled Penguin
 
Join Date: Jun 2008
Location: Bangalore, India
Posts: 20
nayk92 hasn't been rated much yet
Exclamation Re: Please help: Can't write/delete FAT (even with SuperUser

Quote:
Originally Posted by caf4926 View Post
It looks correct in fstab

Have you tried super user, then go to folder where drive is mounted
right click - properties
in permissions tab - drop down boxes, set all to read write
Thanks for your comment caf4926. I have tried super user and go to the mounted (windows/E for me)... and then try the permission tab.

These are the settings of permissions:
Owner: can view & Modify contents
Group: can view & Modify contents
Others: can view contents

Owner is root
and Group is user. (my login is part of group user).
And when I try to change the settings to allow even "others" to view & modify contents it says:
Cannot change permissions for windows/E
Similarly it says cannot delete file... when I try to delete any file.

Hope that gives you the appropriate details. Thanks again.
Reply With Quote
  #8 (permalink)  
Old 18-Jul-2008, 12:46
doctorjohn2's Avatar
Explorer Penguin
 
Join Date: Jun 2008
Location: Mangalore, Karnataka, India
Posts: 170
doctorjohn2 hasn't been rated much yet
Default Re: Please help: Can't write/delete FAT (even with SuperUser

Press Alt and F2

Type
kdesu kwrite
and press ENTER

Browse to your /etc/fstab

Click on file-> Save as and save it as fstab.old

Again click on file->Open and browse to /etc/fstab

Delete everything and Paste this

Quote:
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part6 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part7 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part8 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part1 /windows/C ntfs-3g user,users,gid=users,umask=0002,locale=en_US.U TF-8 0 0
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part2 /windows/D ntfs-3g user,users,gid=users,umask=0002,locale=en_US.U TF-8 0 0
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK8032G_56SN0413T-part5 /windows/E vfat user,users,gid=users,umask=0002,utf8=true 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
Reboot

You should be now able to read and write to /windows C, D and E as a normal user.
__________________
nucleuskore
"The Future Is Open"
http://www.neville.in
http://www.linuxrocks.in
Reply With Quote
  #9 (permalink)  
Old 18-Jul-2008, 15:31
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,847
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: Please help: Can't write/delete FAT (even with SuperUser

Quote:
Originally Posted by caf4926 View Post
It looks correct in fstab

Have you tried super user, then go to folder where drive is mounted
right click - properties
in permissions tab - drop down boxes, set all to read write
Just a tip: If you want to change the ownership of a directory that is the mount point for a partition, it will generally be ineffective unless you umount the partition first, and even then the final result when you mount it again depends on the options you choose for it in fstab, and different filesystems react differently to this tactic. It's all a bit confusing
__________________
Drop in and visit some time.
Reply With Quote
  #10 (permalink)  
Old 18-Jul-2008, 15:50
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,847
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: Please help: Can't write/delete FAT (even with SuperUser

Quote:
Originally Posted by doctorjohn2 View Post
Press Alt and F2

Type
kdesu kwrite
and press ENTER

Browse to your /etc/fstab

Click on file-> Save as and save it as fstab.old

Again click on file->Open and browse to /etc/fstab

Delete everything and Paste this



Reboot

You should be now able to read and write to /windows C, D and E as a normal user.
Be careful here, maybe a typo. I think for this alphanumeric string:
Quote:
user,users,gid=users,umask=0002,locale=en_US.U TF-8 0 0
you should close the gap between US.U and TF-8, so it's like this: US.UTF-8.
And that's for both the lines with NTFS. Then I think doctorjohn2's ntfs mounts would work for partitions 2 and 5.
__________________
Drop in and visit some time.
Reply With Quote
Reply
Page 1 of 3 1 23

Bookmarks

Tags
user privileges, write to fat


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2