<br><br><div class="gmail_quote">On Thu, Sep 23, 2010 at 3:21 AM, andrew clarke <span dir="ltr"><<a href="mailto:mail@ozzmosis.com">mail@ozzmosis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Wed 2010-09-22 22:21:27 UTC+0200, Daniel Louw (<a href="mailto:daniel@dline.co.za">daniel@dline.co.za</a>) wrote:<br>
<br>
> This might be a silly question, but it is very frustrating.<br>
><br>
> I have this memory stick, a 2 GB one formatted with FAT32.<br>
><br>
> I was working on a .C file stored on the memory stick, saving as I<br>
> made progress with the code. Then all of a sudden I cannot save<br>
> anymore. I get an error saying the disk is read only. I cannot create<br>
> new folders or files or anything. chmod doesn't work, it simply says<br>
> read only partition. What the hell?<br>
><br>
> Could it be because I compile directly on the disk? I use the disk a<br>
> lot at university and it is much easier to just work directly on the<br>
> disk.<br>
<br>
</div></div>Not a silly question.<br>
<br>
Compiling directly on the memory stick is no different to writing any<br>
other type of file to the disk.  As far as Linux is concerned it's<br>
just another drive.<br>
<br>
I suspect there is some sort of FAT32 filesystem corruption on the<br>
memory stick, and once the Linux kernel encounters it it switches its<br>
FAT32 driver to read-only as to not cause any further corruption. You<br>
can do a file system check/repair on the memory stick from the Ubuntu<br>
GUI - System -> Administration -> Disk Utility.  Then select the<br>
memory stick's FAT32 partition and click Check Filesystem.  You may<br>
need to click on Unmount Volume first.<br>
<br>
On the other hand you may have encountered a bug in the FAT32<br>
driver, although given the number of years people have been using<br>
FAT32 in Linux this is pretty unlikely.  :-)<br>
<br>
/var/log/messages may give you some clues.  You can view it from the<br>
Ubuntu GUI - under System -> Administration -> Log file viewer.<br>
<br>
FAT32 is pretty fragile.  Instead of doing the FAT32 filesystem check<br>
above you may just want to make a backup of your data on the memory<br>
stick, reformat it as NTFS and copy the data back.  NTFS is a bit more<br>
robust, with errors in the filesystem generally handled a lot more<br>
gracefully.<br>
<br>
There are few reasons not to use NTFS on memory sticks these days. For<br>
example the NTFS driver in Apple Mac OS X is read-only but you can<br>
download/install software to allow read/write NTFS drives on OS X.<br>
Similarly FreeBSD and other lesser-known operating systems.<br>
<br>
Regards<br>
<font color="#888888">Andrew<br>
</font><div><div></div><div class="h5"><br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</div></div></blockquote></div><br>More chances are that your fat32 FS got an error. Which means you don't have any other option than to copy the data else where and format it. It might be the reason that your pen drive's flash chip is failing. I had a Transcend 512MB USB Drive and just couple of months ago it failed permanently. I was getting similar ReadOnly FS situations for a month ago. I used to reformat it and use it again. But after a while it stopped replying to the PC. No reply - no device initiation - and I have a dead USB Drive. Not sorry though that thing cost me <br clear="all">
Rs 650/- five yrs ago. i.e roughly $13 and had 3yrs warranty. <br><br><span style="color: rgb(102, 102, 102);">Regards,<br>Vaibhav Dalvi<br></span><i>Thoughts lead on to purposes; purposes go forth in action; actions form 
habits; habits decide character; and character fixes our destiny.<br>- <a href="http://www.saidwhat.co.uk/quotes/favourite/tyron_edwards" target="_blank">Tyron Edwards</a></i><br><i>Please avoid sending me Word or PowerPoint attachments.<br>

See <a href="http://www.gnu.org/philosophy/no-word-attachments.html" target="_blank">http://www.gnu.org/philosophy/no-word-attachments.html</a><br><br></i><br>