Connecting Tech Pros Worldwide Forums | Help | Site Map

How to safely remove my USB drive from inside linux?

ambrnewlearner's Avatar
Expert
 
Join Date: Jan 2008
Location: A city in my country ;)
Posts: 855
#1: Sep 28 '08
Hello,

After a successful installation of Xubuntu, I am posting this question.

In Windows XP we select option "Safely remove hardware" before we remove a USB drive (or Pen drive) from a computer. What is Linux equivalent of "Safely Remove USB drive" of windows.

I think if we unmount a USB drive then this is equivalent to "Safely remove USB drive" of XP. But I'm not sure and therefore I am psoting this here.


Thanks in advance............
AmbrNewlearner

Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Posts: 2,466
#2: Sep 28 '08

re: How to safely remove my USB drive from inside linux?


Basically, you're right. Unmounting is even more than "safely remove hardware", as in some cases Linux doesn't write the data to the drive before you unmount it.

Greetings,
Nepomuk
ambrnewlearner's Avatar
Expert
 
Join Date: Jan 2008
Location: A city in my country ;)
Posts: 855
#3: Sep 29 '08

re: How to safely remove my USB drive from inside linux?


Thanks nepoumk ;)..........

Cheers,
AmbrNewlearner
ambrnewlearner's Avatar
Expert
 
Join Date: Jan 2008
Location: A city in my country ;)
Posts: 855
#4: Oct 1 '08

re: How to safely remove my USB drive from inside linux?


Hello,

Quote:

Originally Posted by nepomuk

Basically, you're right. Unmounting is even more than "safely remove hardware", as in some cases Linux doesn't write the data to the drive before you unmount it.

I'm little confused.
As you say that (in some cases) Linux doesnot writes data to the drive before user unmount it. But if this is true then there must be some temporary location where the files are stored until they are actually written to drive when it is unmounted. Can you please post that temporary location?

Also, Is your quote above true only for removable devices or can that be applied to non removable devices too?


Thanks.........
AmbrNewlearner
Newbie
 
Join Date: Oct 2008
Posts: 1
#5: Oct 3 '08

re: How to safely remove my USB drive from inside linux?


Quote:

Originally Posted by ambrnewlearner

As you say that (in some cases) Linux doesnot writes data to the drive before user unmount it. But if this is true then there must be some temporary location where the files are stored until they are actually written to drive when it is unmounted.

True indeed. It's the file system cache (a memory area in kernel space). Almost any Linux file system uses it for performance reasons.

(Google Search Results )
Reply