LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-17-2006, 02:08 AM   #1
jargren
LQ Newbie
 
Registered: Nov 2005
Location: Sweden, Växjö
Distribution: SuSe 10.3
Posts: 25

Rep: Reputation: 15
Shall I unmount when disconnect usb driver??


Hello everybody!
Do I have to unmount my external usb driver (/dev/sda5) before I disconnect it from the computer or can I just take it away and put it in again when I want?
When I connect it again I think I'll need to "mount -a".
If I have to unmount it shall I then write "umount /dev/sda5"?

Best regards
Per

Last edited by jargren; 08-17-2006 at 02:46 AM.
 
Old 08-17-2006, 12:17 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
It depends a lot on what options are used when it's mounted, but in general, yes, you should make sure it's unmounted before you remove it. Mounting is usually asynchronous, which means that the file transfers are not instantaneous, but get held in a buffer for a time before the actual writing is done. If you remove the device before the transfers are complete, then you risk corrupting the data and/or the file system. And there might be other subsystems that can get confused as well if they think a drive is there when it isn't.

If you mounted it with the regular "mount" command, then, yes, use the "umount" command to unmount it. Most distros these days have automounting systems in place though, which can (ironically) be a bit more complex to work with. I don't know exactly how Suse does it's automounting, but my guess is it uses some form of HAL and hotplug combination. Unlike the regular mount command, these don't put entries into your mtab file, so the regular unmount command probably doesn't work. There should be an unmount/remove safely command in your graphic interfaces, and you can use the "pmount" and "pumount" commands in the shell.

Finally, "mount -a" is not a useful command in this circumstance. The -a flag will attempt to mount all entries in fstab at once (unless flagged with 'noauto'), something you're certainly not interested in doing just for the sake of a single usb device.
 
Old 08-17-2006, 01:32 PM   #3
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
Quote:
I don't know exactly how Suse does it's automounting, but my guess is it uses some form of HAL and hotplug combination.
depends on the version:
pre 10.1 used submount
10.1 relies on KDE or Gnome own mechanisms. Non KDE/Gnome can use ivman (from repositories and much better than KDE/Gnome mounting options)
 
  


Reply



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
Unmount USB Drive stevsom Linux - General 2 05-15-2005 12:21 AM
unmount the usb device prital Linux - Newbie 6 01-24-2005 08:08 PM
unmount usb device pmorimer Linux - Hardware 2 08-25-2004 04:36 PM
Problem mounting usb zip after disconnect ciaran_skye Mandriva 3 06-16-2004 03:40 PM
USB Unmount Issues DavW Linux - Hardware 1 03-24-2004 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:45 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