LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 05-05-2007, 02:09 PM   #1
paind
Member
 
Registered: Mar 2007
Location: Moscow
Distribution: arch linux
Posts: 37

Rep: Reputation: 15
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.
 
Old 05-05-2007, 04:46 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
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).
 
Old 05-07-2007, 01:40 PM   #3
paind
Member
 
Registered: Mar 2007
Location: Moscow
Distribution: arch linux
Posts: 37

Original Poster
Rep: Reputation: 15
thanks for advice David. Up till now I never unmounted devices manually. Seems like it was the problem.
 
Old 05-09-2007, 12:30 AM   #4
zborgerd
Member
 
Registered: Mar 2004
Distribution: Slackware / Dropline GNOME
Posts: 378

Rep: Reputation: 30
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.
 
Old 05-09-2007, 10:22 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,446
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
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.
 
  


Reply


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
Trouble with mounted devices heatus Fedora 0 08-10-2004 02:19 AM
Mounted Devices On Desktop snt Mandriva 4 05-21-2004 11:52 AM
Mounted Devices kbeaver Linux - Hardware 3 07-11-2003 02:44 PM
DVDRom problem--not mounted properly? loran Linux - Newbie 16 03-19-2003 12:50 AM
Mounted Devices natethebate Linux - General 6 08-29-2000 01:36 AM


All times are GMT -5. The time now is 06:55 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