How to safely remove my USB drive from inside linux?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AmberJain
    Recognized Expert Contributor
    • Jan 2008
    • 922

    How to safely remove my USB drive from inside linux?

    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
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    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

    Comment

    • AmberJain
      Recognized Expert Contributor
      • Jan 2008
      • 922

      #3
      Thanks nepoumk ;)..........

      Cheers,
      AmbrNewlearner

      Comment

      • AmberJain
        Recognized Expert Contributor
        • Jan 2008
        • 922

        #4
        Hello,

        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

        Comment

        • tbsalling
          New Member
          • Oct 2008
          • 1

          #5
          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 )

          Comment

          Working...