LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-12-2012, 10:29 PM   #1
jag022054
LQ Newbie
 
Registered: May 2011
Posts: 8
Blog Entries: 1

Rep: Reputation: 0
Problems with writing to msdos format flash drive.


I am running Ubuntu 12.04

I have a flash drive in msdos format. I am having problems writing files to subfolder.
I can read files.
I can create folders.
I can write files to the root directory.

The data initially appears to be OK. After ejecting the drive and remounting it the folder is empty.

What is going on. What can I do to fix this.
 
Old 11-13-2012, 12:51 PM   #2
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Tiny Core Linux 4.5.6, knoppix 6.7, antixM8.11, partedmagic, slitaz 3.0,PuppyLinux,Ubuntu 10.04
Posts: 545
Blog Entries: 1

Rep: Reputation: 37
run "gparted", menu "check" to see any issue?
what say dmesg after the files are written? do you see errors?
what happens with another one? throw the old one away? (sticks get wear..)
 
Old 11-14-2012, 05:16 AM   #3
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 870
Blog Entries: 2

Rep: Reputation: 219Reputation: 219Reputation: 219
Are the filenames you are trying to create in the msdos 8.3 format. If not you would need vfat rather than msdos.
 
Old 11-14-2012, 11:36 PM   #4
jag022054
LQ Newbie
 
Registered: May 2011
Posts: 8
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Checked using gparted.

The gparted check seemed to like the fat32 file system on the flash drive. No errors were detected.

In response to the question about the length of the file names being used. The drive contained files and folders with long file names. Gparted shows the file system as fat32, it may realy be vfat as suggested.

I tried reformating and reloading the data. I was able to load data but ran into problems once there number of folders got to be the same number as were originally on the device.

The problem produces no error. Files apear to be copied. They disapear after the device is ejected and remounted. I think this may be the real problem. I think if there were an error message when when these files fail this issue would be a lot less of a mystery.

It looks like part of the problem is limitations in the FAT32 file system or the way it is configured on this device.

I also tried writing a bunch of files into as single directory. I got 317 files to stick. I was able to recreat this a couple of times. Once I hit this limit I couldn't get files in another folder to stick either. When I was doing multiple folders wall seemed to be 27 folders (containing 303 files).

Because the it fails silently I didn't realize when I explained the initial symptoms that I was dealing with a device that had already hit the wall.

I don't see any options of in gparted or disk utility(red hat) for increasing the number of directory entries.

Funny thing though when I format using gparted the drive mounts read only. I have only been able to get it to be usable for writes using disk utility. Gparted does a better job of showing the progress and results associated with actions. I am not sure why I not getting a good result from the format.
 
  


Reply

Tags
folder, msdos, rights, write


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Writing files to flash drive in the right order andy_g_gray Linux - Hardware 3 11-26-2006 11:50 AM
How to format a usb flash drive eypros Linux - Software 4 04-19-2006 02:06 PM
Problems with reading & writing to USB Flash Drive LordSurvivoR Linux - Hardware 8 01-31-2006 03:45 PM
slow writing to flash drive obstinatesod Linux - Newbie 11 01-03-2006 04:14 AM
how to format a floppy(msdos) in mandrake? coolamit78 Linux - Software 1 05-31-2004 03:11 PM


All times are GMT -5. The time now is 02:34 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration