I work extensively on both Windows 7 and Ubuntu and use a USB pen drive to transfer data, Python files, etc. between these OSs. Recently my USB pen drive has been giving me 'read-only' errors such as
Error while creating directory Untitled Folder.
There was an error creating directory in /media/TSB USB DRV
Error creating directory: Read-only file system
I've browsed through some related pages like this and this. The problem was fixed by copying everything from USB to Windows PC, reformatting USB then putting everything back on to the USB.
My question is: Is there a way to avoid this problem in the future? I know that whenever I stick the USB into a Windows PC, I have the option of checking for errors, so is this procedure sufficient?
ntfsck
andntfsfix
(see http://askubuntu.com/questions/112150/how-to-correctly-fix-a-dirty-ntfs-partition-without-using-chkdsk) but unfotunately, for some you errors you have to use Windows' chkdsk/equivalent. There's no other option. – muru Jul 09 '14 at 00:43chkdsk
andWine
, then. – Medulla Oblongata Jul 09 '14 at 00:46