LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-21-2012, 05:22 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Rep: Reputation: 46
Unplugging a memory card after sync command.


Kernel 2.6.21.5, Slackware 12.0

Hi:
When I have written data to a floppy disk I have, afterwards issued

# umount /media/floppy

The prompt immediately appears but I have not ejected the floppy until the LED on the floppy disk unit turns off. Now, I have a memory card connected through USB, the card in not mounted and I issue

# dd bs=4M if=./some_file.img /dev/sda

where /dev/sda is the memory card. When I get the prompt back, I do

# sync

If I now unplug the card immediately after getting the prompt, do I do well?
 
Old 02-22-2012, 11:44 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,373

Rep: Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557
I don't think so. The terminal may return while the write is finishing, and an immediate whip out might disturb stuff. Give it 5 seconds at least
 
1 members found this post helpful.
Old 02-23-2012, 12:34 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
Thanks for your useful post.
 
Old 02-23-2012, 12:47 PM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,373

Rep: Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557
On mature recollection (a loaded political phrase in these parts), the umount does a sync, so you may be all right. It's the immediate hardware pull I would be afraid of.


The historic trivia:
on-mature-recollection
 
Old 02-24-2012, 08:54 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
Thanks again.
 
  


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
Linux not booting after unplugging graphics card on T7400 vduvvuru Linux - Hardware 1 11-26-2008 04:01 AM
Command to retrieve the amount of memory on the video card walple Linux - Hardware 2 10-10-2006 03:57 PM
flushing kernel space memory using sync/bdflush vijay_gct Linux - General 0 02-17-2006 10:27 AM
changing video card memory size from root command line tallboy Linux - Hardware 6 04-04-2005 03:20 PM
"Turning off" USB memory stick before unplugging/disconnecting detly Linux - Hardware 3 03-15-2005 12:34 PM


All times are GMT -5. The time now is 11:13 AM.

Main Menu
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