473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to safely remove my USB drive from inside linux?

AmberJain
884 Expert 512MB
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
Sep 28 '08 #1
4 7671
Nepomuk
3,112 Expert 2GB
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
Sep 28 '08 #2
AmberJain
884 Expert 512MB
Thanks nepoumk ;)..........

Cheers,
AmbrNewlearner
Sep 29 '08 #3
AmberJain
884 Expert 512MB
Hello,

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
Oct 1 '08 #4
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 )
Oct 3 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Russell E. Owen | last post by:
I've been doing some socket programming with threads and am confused how to safely shut down a connection. First of all, using the file-like object returned by urllib to do ftp file download...
0
by: ja | last post by:
I am trying to write a program that will allow me to unplug a USB mass storage device from a Windows 2000 box without getting the "Unsafe Removal of Device" warning I tried the following program...
0
by: Michael Hauer | last post by:
Hi, First my system(s): We want to migrate one server from NT 4.0 to Linux (small company). Clients are NT + XP. The application is .NET 1.0 and all clients run 1.0 SP3. A network drive...
0
by: Joe Cool | last post by:
When you plug a flash drive into a USB port on your XP Pro PC, a System Tray Icon shows up for an application called Safely Remove Hardware. If you left click on it, a list of USB devices appears...
15
by: ais523 | last post by:
I was just wondering whether there was a portable way to use gets() safely, and came up with this: #include <stdio.h> #include <stdlib.h> int main() { FILE* temp; char buf;
2
by: nitinpatel1117 | last post by:
Hi, i'm new to linux, so this may be a really silly question. But i've got this linux system (Red hat) and i have a usb stick with some files on it. i want to basically plug in my usb stick...
12
by: prism via DotNetMonster.com | last post by:
question: how do we safely remove a USB device in vb.net? for example, in the vb.net application, we open some files from a usb device, and after that, we want to "safely remove" it without...
3
by: Richard | last post by:
Hi, We have a few development dbs version 8, but really doesnt matter, that are non-recoverable ( LOGRETAIN OFF). How do I trim the log space ? db2 get db cfg for MYDB | grep 'First active log...
16
by: Fett | last post by:
I am creating a program that requires some data that must be kept up to date. What I plan is to put this data up on a web-site then have the program periodically pull the data off the web-site. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.