LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-21-2017, 11:26 AM   #1
DGLauren
LQ Newbie
 
Registered: Aug 2015
Location: Atlanta, Georgia, USA
Distribution: Zorin
Posts: 13

Rep: Reputation: Disabled
Is there a Linux eqivalent to "safely remove USB"


Hi. And thanks in advance for simply being here! You're much appreciated.

In Windows, I know it's important to click the icon before removing a flash drive. Is there an equivalent in Linux, or does it depend on the distro? I'm so Pavlov-trained that I cringe at just pulling the drive out without securing it first. What does that Windows process do, anyway? Finalize it? Close open files or something?

Thanks for your help!
 
Old 04-21-2017, 11:32 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,197

Rep: Reputation: 164Reputation: 164
In KDE a pop-up opens: USB drive can safely removed.
 
Old 04-21-2017, 11:33 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,501
Blog Entries: 16

Rep: Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262Reputation: 3262
In Linux you must unmount writeable disks before removing them. Many desktops have a graphical app for doing this. In a terminal you use the umount command. After that, it is safe to remove them.

Linux does not usually write to disks as soon as a program gives a write command. Instead, it writes into a buffer and transfers the contents of this to disk when the cpu is otherwise idle. That is why simply pulling out a pendrive can cause it to be corrupted. In addition, the system thinks the disk is still mounted on its mount point, which could cause problems if you try to write to that directory. Unmounting the disk causes a synchronization operation that writes all buffers to disk, followed by the mount point being cleared.
 
2 members found this post helpful.
Old 04-21-2017, 11:34 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049
Quote:
Originally Posted by DGLauren View Post
Hi. And thanks in advance for simply being here! You're much appreciated.

In Windows, I know it's important to click the icon before removing a flash drive. Is there an equivalent in Linux, or does it depend on the distro? I'm so Pavlov-trained that I cringe at just pulling the drive out without securing it first. What does that Windows process do, anyway? Finalize it? Close open files or something?

Thanks for your help!
It depends on your desktop environment/window manager, but having said that, most of them would have an equivalent. So the answer would be yes.
 
1 members found this post helpful.
Old 04-21-2017, 12:09 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,985

Rep: Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570Reputation: 4570
umount and eject if you prefer the command-line.
 
1 members found this post helpful.
Old 04-21-2017, 12:21 PM   #6
DGLauren
LQ Newbie
 
Registered: Aug 2015
Location: Atlanta, Georgia, USA
Distribution: Zorin
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
In Linux you must unmount writeable disks before removing them. Many desktops have a graphical app for doing this. In a terminal you use the umount command. After that, it is safe to remove them.

Linux does not usually write to disks as soon as a program gives a write command. Instead, it writes into a buffer and transfers the contents of this to disk when the cpu is otherwise idle. That is why simply pulling out a pendrive can cause it to be corrupted. In addition, the system thinks the disk is still mounted on its mount point, which could cause problems if you try to write to that directory. Unmounting the disk causes a synchronization operation that writes all buffers to disk, followed by the mount point being cleared.
Hazel! Thank you so much for responding to my question. You not only told me exactly what I needed to know, but explained why. That second part is what put such a gigantic grin on my face. (That, and your signature.) I, too, am a little old lady and learning is still a thrill. Loved what I found in your website, as well. Thank you.
Lauren
 
Old 04-21-2017, 12:23 PM   #7
DGLauren
LQ Newbie
 
Registered: Aug 2015
Location: Atlanta, Georgia, USA
Distribution: Zorin
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks to everyone who responded! I really appreciate the help.
 
  


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
"Safely Remove Drive" highly discouraged -- disables device rknichols Linux - Hardware 17 05-26-2014 08:09 PM
[SOLVED] "unmount volume" or "eject volume" to safely remove a flash drive? Gregg Bell Linux - Newbie 15 04-30-2014 03:02 PM
"unable to eject" error when trying to safely remove ipod shuffle in slack 12 mattydee Slackware 10 07-06-2007 05:03 PM
Missing "Safely Remove" drummerdan Slackware 13 03-19-2006 10:59 PM
Can't "Safely Remove" usb stick: KDE, SUSE 10.0 m29389 SUSE / openSUSE 8 11-15-2005 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:15 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
Open Source Consulting | Domain Registration