LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2009, 08:52 PM   #1
Lorax
Member
 
Registered: Nov 2009
Posts: 215

Rep: Reputation: 32
Can I write to a FAT32 partition from Debian?


Debian Lenny Gnome.
Compaq desktop, Intel Celeron 1100 MHz, 512k

Is it possible to write files to a Fat 32 partition?
The drive is mounted. I can explore the files present there, as well as use them and copy them to Debian, but I keep running into the same old "You do not have permissions" crizzap when I try to save files onto that partition.

The FAT32 is on a separate HD from my Debian. Winderz is on that drive's first partition, and the FATTY is the drive's other partition.

Last edited by Lorax; 12-15-2009 at 08:55 PM.
 
Old 12-15-2009, 08:58 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Yes, you should be able to (unless the HDD has physically disabled write access).

What do you see as the mount-options?


Cheers,
Tink
 
Old 12-15-2009, 09:20 PM   #3
arief karfianto
LQ Newbie
 
Registered: Dec 2009
Location: Indonesia
Distribution: Redhat, Fedora, CentOS, Suse, OpenSuSE, Slackware, Onebase, Ubuntu, Mandriva, Mepis, IPCop, Mint
Posts: 14

Rep: Reputation: 1
Quote:
Originally Posted by Lorax View Post
Debian Lenny Gnome.
Compaq desktop, Intel Celeron 1100 MHz, 512k

Is it possible to write files to a Fat 32 partition?
The drive is mounted. I can explore the files present there, as well as use them and copy them to Debian, but I keep running into the same old "You do not have permissions" crizzap when I try to save files onto that partition.

The FAT32 is on a separate HD from my Debian. Winderz is on that drive's first partition, and the FATTY is the drive's other partition.
as long as I use linux, I'm able to read/write the FAT32 partition without facing any problems.

If you have some troubles, try checking the disk's permission, maybe the permission is not writable by the system.

Wish you luck bro..
 
1 members found this post helpful.
Old 12-15-2009, 09:25 PM   #4
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Make sure you have "rw" as an option in your /etc/fstab entry of the drive.

Regards
 
1 members found this post helpful.
Old 12-15-2009, 10:02 PM   #5
Lorax
Member
 
Registered: Nov 2009
Posts: 215

Original Poster
Rep: Reputation: 32
Quote:
What do you see as the mount-options?
I should know what you mean, by now, but....

I think you are referring to the same as Shylock? (Hi Shylock, remember me??!!)
Quote:
Make sure you have "rw" as an option in your /etc/fstab entry of the drive.
I KNOW I know this, I'm just not recalling it (old smoker's brain HA!)
 
Old 12-15-2009, 10:59 PM   #6
Lorax
Member
 
Registered: Nov 2009
Posts: 215

Original Poster
Rep: Reputation: 32
Ok, can someone help with this info, Now?

Quote:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 errors=remount-ro 0 1
/dev/hdb5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/hda1 /winderz ntfs-3g rw,users,auto,noatime,exec 0 0
/dev/hda2 /fat vfat users,rw,auto,noatime,exec 0 0
/dev/hdd1 /xtra ntfs-3g rw,users,auto,noatime,exec 0 0
I found this in the GUI. It would be great if someone could tell me how to get exactly this info by terminal. Thanks

Last edited by Lorax; 12-15-2009 at 11:00 PM.
 
Old 12-15-2009, 11:04 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
fstab, looks ok. You can get that info from the terminal with:
Code:
cat /etc/fstab

I wonder if a different user mounted the partition, and therefore only that user (and root) can write to it:
We can find out with:

Code:
id
ls -al /fat
Evo2.

Last edited by evo2; 12-15-2009 at 11:05 PM. Reason: tag typo
 
1 members found this post helpful.
Old 12-15-2009, 11:12 PM   #8
Lorax
Member
 
Registered: Nov 2009
Posts: 215

Original Poster
Rep: Reputation: 32
Hey evo!


?????????????????????????

Quote:
LORAXNETWORK:~# id
uid=0(root) gid=0(root) groups=0(root)
LORAXNETWORK:~# ls -al /fat
total 36
drwxr-xr-x 5 root root 8192 1969-12-31 19:00 .
drwxr-xr-x 26 root root 4096 2009-12-13 20:26 ..
drwxr-xr-x 5 root root 8192 2009-12-10 23:04 kite
drwxr-xr-x 2 root root 8192 2009-12-11 19:37 Recycled
drwxr-xr-x 3 root root 8192 2009-12-10 23:04 System Volume Information
I am the owner and only user.

Last edited by Lorax; 12-15-2009 at 11:20 PM.
 
Old 12-15-2009, 11:24 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi Lorax,

Ok, so the partition has been mounted by root, and only root can write to it. So as a normal user you will not be able to write to it.

So that you as a normal user can write to the /fat please do the following. Close any file browser windows that are open showing anything in /fat, and close any terminals. Now open a terminal as you (not root), then type.

Code:
su
umount /fat
exit
mount /fat
Now please try to see if you can write to /fat as a normal user.

EDIT* I just saw a problem with your fstab the entries that says "users" should instead say "user". This could be the cause of your problems.

Cheers,

Evo2.

Last edited by evo2; 12-15-2009 at 11:26 PM.
 
1 members found this post helpful.
Old 12-15-2009, 11:34 PM   #10
Lorax
Member
 
Registered: Nov 2009
Posts: 215

Original Poster
Rep: Reputation: 32
Like magic!
Thanks EVO2!!!
I guess I can do this with ANY FAT32? I would only need to specify the "name" of the drive (ie /fat or /xtra) as they appear in fstab???

E D I T: Is this possible with NTFS?

Last edited by Lorax; 12-15-2009 at 11:37 PM.
 
Old 12-15-2009, 11:43 PM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by Lorax View Post
Like magic!
I guess I can do this with ANY FAT32? I would only need to specify the "name" of the drive (ie /fat or /xtra) as they appear in fstab???
Yep, any fat32 partition should be fine.

Did you modify your fstab file to change all the instances of "users" to "user"?

Quote:
E D I T: Is this possible with NTFS?
Good question. In the past the writing to NTFS was not possible, however I think it may be possible these days. I guess others may be able to give you a definitive answer.

Cheers,

Evo2.
 
1 members found this post helpful.
Old 12-15-2009, 11:56 PM   #12
Lorax
Member
 
Registered: Nov 2009
Posts: 215

Original Poster
Rep: Reputation: 32
EVO2 Thank you very much!

Last edited by Lorax; 12-16-2009 at 12:26 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux won't write to FAT32 partition joshknape Linux - Newbie 10 02-06-2006 01:20 AM
No permission to write to FAT32 partition smiley_lauf Linux - Newbie 5 02-04-2006 01:53 PM
can't write to fat32 partition after using nautilus stevanbt Linux - Newbie 6 02-01-2006 06:42 AM
Write to FAT32 Partition ok? ziphem Linux - Newbie 8 01-25-2005 06:39 PM
Can't write to second FAT32 partition stewe151 Linux - Hardware 13 07-22-2002 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration