LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mounted devices not working properly (https://www.linuxquestions.org/questions/slackware-14/mounted-devices-not-working-properly-551536/)

paind 05-05-2007 01:09 PM

mounted devices not working properly
 
I plug in my mp3 player or flash stick in usb port then gnome dropline mount it. Then when I try to upload some files copy screen appears and everything seems fine, but when I unplug and plug again the device there is no newly uploaded information on it(like I didn't upload anything). When I try again it usually works, but not the first time.

David the H. 05-05-2007 03:46 PM

Perhaps you're just not giving it enough time. Most disk writing is done asynchronously, which means that the data is actually stored in a buffer for some time before it's written to the disk. Always make sure you properly unmount a drive before you remove it, or use the "safely remove" option if it has one, to ensure that the buffered data gets written out. You can seriously corrupt your filesystem if you don't (been there, done that).

paind 05-07-2007 12:40 PM

thanks for advice David. Up till now I never unmounted devices manually. Seems like it was the problem.

zborgerd 05-08-2007 11:30 PM

Right-click the icon on the GNOME desktop and "eject" or "unmount" it first. Linux doesn't actually write to the disk immediately (by default). Since flash memory must be written in blocks of a specific size, data is written from a RAM buffer to avoid damage to the disk from rapid data writing. When you "eject" it, the data is finalized and written from the buffer to the flash memory. On Windows, this is similar, but people more often end up with corrupt data from unsafe ejects rather than data that isn't written at all.

onebuck 05-09-2007 09:22 AM

Quote:

Originally Posted by zborgerd
Right-click the icon on the GNOME desktop and "eject" or "unmount" it first. Linux doesn't actually write to the disk immediately (by default). Since flash memory must be written in blocks of a specific size, data is written from a RAM buffer to avoid damage to the disk from rapid data writing. When you "eject" it, the data is finalized and written from the buffer to the flash memory. On Windows, this is similar, but people more often end up with corrupt data from unsafe ejects rather than data that isn't written at all.

Hi,

Might I add that you can use the 'sync' command from the cli. This will force the buffers to be written to the device.

From cli do 'info coreutils sync' to get the information.


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