openSUSE Forums > Hardware » Easy way to unplug a USB memory stick

Go Back   openSUSE Forums > Hardware
Forums FAQ Members List Search Today's Posts Mark Forums Read


Hardware Questions about drivers, peripheral cabling, configuration

Reply
Page 2 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-Sep-2009, 16:48
Wise Penguin
 
Join Date: Jun 2008
Location: NZ
Posts: 1,851
deano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura about
Default Re: Easy way to unplug a USB memory stick

Quote:
halmount -u /media/<whatever>
is a command line method that I suspect isn't that well known.
IIRC you need the ivman package installed to provide that command. Please correct me if I'm wrong on this.
Reply With Quote
  #12 (permalink)  
Old 08-Sep-2009, 06:15
growbag's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: Köln, Deutschland
Posts: 997
growbag hasn't been rated much yet
Default Re: Easy way to unplug a USB memory stick

Quote:
Originally Posted by tom_enos View Post
I've never had a problem just unpluging it.

the little light goes out, I unplug it,

never had a problem, no lost data

same goes for my external HDD.

I wouldn't do this for an encrypted external device though, you could corrupt the entire thing :S. Always run sync first.
__________________
HP dv6645, Nvidia 8400m-gs, KDE 4.
Reply With Quote
  #13 (permalink)  
Old 08-Sep-2009, 13:14
Busy Penguin
 
Join Date: Jun 2008
Posts: 285
KJ44 hasn't been rated much yet
Default Re: Easy way to unplug a USB memory stick

Quote:
Originally Posted by deano_ferrari View Post
IIRC you need the ivman package installed to provide that command. Please correct me if I'm wrong on this.
You're correct. If it isn't installed, when you type halmount zypper appears on your command line and offers to download and install it for you there and then, without going into YaST. Cute.
Reply With Quote
  #14 (permalink)  
Old 08-Sep-2009, 14:06
cjcox's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: Frisco, TX
Posts: 778
cjcox hasn't been rated much yet
Default Re: Easy way to unplug a USB memory stick

On Fri, 2009-09-04 at 23:46 +0000, ZStefan wrote:
> I have found a quick, easy and safe way to unplug a mounted USB memory
> stick.
>
> The method may be wrong, but it serves me flawlessly for years.
> It doesn't require root privileges, unmounting of the partition(s) of
> the memory stick, tuning of KDE settings, or editing policy files.
>
>
> 1) Quit the applications using the memory stick's partitions.


ok.

>
>
> 2) In any terminal window, say
> sync
> three times, waiting for every previous sync command to complete.


nope.


>
>
> 3) It is unlikely that at this point there is data transfer occurring
> through memory stick, but, if it has LED indicator, watch for it. If
> there is data transfer, then wait.


risky.

>
>
> 4) Unplug the memory stick.
>
>


not safe.

Best way is to tell it to safely remove hardware (KDE) and if that
succeeds, remove it. However, even so, since Linux distros are true
multi-user (unlike ANY Windows variant), there is a chance that the
device could be in use.

There isn't a silver bullet way to do this today.

Devices that are inhernetly single user in purpose tend to "fail" in a
multi-user paradigm. The "solution" (and it really isn't a solution but
a constraint) is to assume that the ONLY the primary desktop user has
the ability to control certain devices. Then, what I said about telling
KDE to safely remove is the "correct" procedure. Gnome may have
something similar.




Reply With Quote
  #15 (permalink)  
Old 10-Sep-2009, 00:57
Busy Penguin
 
Join Date: Sep 2008
Location: Slovenia
Posts: 283
arcull hasn't been rated much yet
Default Re: Easy way to unplug a USB memory stick

even in Konqueror you can right click on the usb stick and select "Safely Remove", it did work for me on suse 10.2, kde 3.5
Reply With Quote
  #16 (permalink)  
Old 10-Sep-2009, 04:21
Busy Penguin
 
Join Date: Jul 2009
Location: Calgary Alberta Canada
Posts: 266
techwiz03 hasn't been rated much yet
Lightbulb Re: Easy way to unplug a USB memory stick

Quote:
Originally Posted by tom_enos View Post
I've never had a problem just unpluging it.

the little light goes out, I unplug it,

never had a problem, no lost data

same goes for my external HDD.
Wow ! you've got guts. USB command structure being controlled through the host controller may leave your host controller locked into an infinite loop thusly interfering with any other USB device in use. Also, unless you explicitely unmount or eject the device the system may decide the device has malfunctioned and refuse to re-enable it at a future date.

regards
Rick
Reply With Quote
  #17 (permalink)  
Old 10-Sep-2009, 10:36
tom_enos's Avatar
Explorer Penguin
 
Join Date: Dec 2008
Posts: 115
tom_enos hasn't been rated much yet
Default Re: Easy way to unplug a USB memory stick

will I guess I'm just lucky. going on 2 years now for my western digital "My Book" and a bunch of different usb drives. suse, mandrivia, xp, vista, and now win7 and I've never had a problem. I also do not use an encrypted file system on any of them so maybe that might have something to do with it. I've just never had a problem with it
Reply With Quote
  #18 (permalink)  
Old 16-Sep-2009, 15:17
Busy Penguin
 
Join Date: Jul 2009
Location: Calgary Alberta Canada
Posts: 266
techwiz03 hasn't been rated much yet
Lightbulb Re: Easy way to unplug a USB memory stick

Quote:
Originally Posted by tom_enos View Post
will I guess I'm just lucky. going on 2 years now for my western digital "My Book" and a bunch of different usb drives. suse, mandrivia, xp, vista, and now win7 and I've never had a problem. I also do not use an encrypted file system on any of them so maybe that might have something to do with it. I've just never had a problem with it
I just finsihed restoring my friends "My Book" she had 30+ years of genealogy stored for back-up (3rd time she used the drive under Windows XP) and just unplugged it not thinking. This cooked her USB port, and the logic board for the drive. Had to connect the drive direct into computer buss to recover information. She was sure sweating since she thought she had a reliable back-up.
I'm just warning people to take standard precautions, how valuable is your information, how valuable is your time? how valuable is your hardware too? One hasty decision can ruin your whole day.
Reply With Quote
  #19 (permalink)  
Old 17-Sep-2009, 07:21
tom_enos's Avatar
Explorer Penguin
 
Join Date: Dec 2008
Posts: 115
tom_enos hasn't been rated much yet
Default Re: Easy way to unplug a USB memory stick

and 3 computers, 2 usb hubs, and 3 years later my "MyBook", 6 usb sticks, 5 phones,2 cameras, and 1 usb headset and every piece of this hardware is fine. I must be Just lucky.
Reply With Quote
  #20 (permalink)  
Old 17-Sep-2009, 14:57
Busy Penguin
 
Join Date: Jul 2009
Location: Calgary Alberta Canada
Posts: 266
techwiz03 hasn't been rated much yet
Default Re: Easy way to unplug a USB memory stick

Quote:
Originally Posted by tom_enos View Post
and 3 computers, 2 usb hubs, and 3 years later my "MyBook", 6 usb sticks, 5 phones,2 cameras, and 1 usb headset and every piece of this hardware is fine. I must be Just lucky.
I agree you are lucky and leave it at that ok.
__________________
When your up to your a** in Alligators it's pretty hard to remember you intended to drain the swamp (author unknown)
Reply With Quote
Reply
Page 2 of 2 1 2

Bookmarks

Tags
easy, memory, stick, unplug, usb


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2