Fedora Linux Support Community & Resources Center
  #1  
Old 30th April 2012, 03:31 PM
deepclutch Offline
Registered User
 
Join Date: Mar 2009
Location: Kerala,India
Posts: 65
linuxdebianiceweasel
Post Safely Remove USB 3G Modem failed. manual unbind help needed

I have a Huawei K4505 3G modem which works fine in Gnu/Linux using Gnome3 Desktop Environment. the issue is, I cannot safely remove usb modem/amazon kindle touch like devices as it fails with a error message which reads as below :


commands like pmount/pumount/umount/eject lazy unmount etc all failed. when I tried udisks --unmount /dev/sdb never worked showing same error as the pic I attached. Yet to try sdparm/hdparm as I don't know how to use these commands to unmount/unbind this device.

So, Safely remove a USB device needs the device to be "suspended" before removing. In Gnome, I face this issue with Amazon Kindle Touch(usb connection) and this USB modem where manually unbinding is what I do as of now.

I open "computer:" page on Nautilus file Manager and it shows Huawei device(K4505) displayed.
So, I find the usb port number from dmesg and issue below commands to remove the device as of now, because "Safely remove" fails.

I did type these commands after finding usb port used is "2-1":
as root :

Code:
sync&&sync&&sync
Code:
echo "auto" > "/sys/bus/usb/devices/usb2/2-1/power/level"
Code:
echo "2-1:1.1" > "/sys/bus/usb/devices/2-1\:1.1/driver/unbind"
^^ I hope these 2 steps are enough? but, I try to remove the device attributes also before pulling usb modem out of the port.

Code:
echo "1" > "/sys/bus/usb/devices/usb2/2-1/remove"
The End result is the "Huawei" icon disappears from Nautilus file manger "computer:" page. MY source for above commands are from Debian forum.
http://forums.debian.net/viewtopic.php?f=5&t=52627

Can someone guide Me whether I am doing is the correct way? Is there a way I can resolve this issue rather than manually unbinding/unmounting Modem/Kindle reader etc.

Some more info about this modem. I am using 3G modem for the first time and this modem when connected to Windows 7 mount a flash drive and pops out "mobile manager" software installer. In Gnu/Linux, it is detected as a modem only . is there a solution to see the flash drive and modem working together as in Windows?

Thanks in Advance,
DC

K4505 technical specifications:
http://pastebin.ca/2142207
Reply With Quote
  #2  
Old 30th April 2012, 03:56 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,082
linuxfirefox
Re: Safely Remove USB 3G Modem failed. manual unbind help needed

You probably have to rmmod the drivers that are using the modem before you can "safely" remove it.

But what could happen if you just unplug it after you close your internet connection?

A read-only flash drive with windows software is pretty useless in Linux, isn't it?

What happens when you plug it in?

Code:
tail -f /var/log/messages
Reply With Quote
  #3  
Old 30th April 2012, 04:44 PM
deepclutch Offline
Registered User
 
Join Date: Mar 2009
Location: Kerala,India
Posts: 65
linuxdebianiceweasel
Re: Safely Remove USB 3G Modem failed. manual unbind help needed

Here is the output when I inserted USB modem:
http://fpaste.org/QmyO/


to "safely remove" , I invoked the commands in My first post and here is the reaction:
Code:
Apr 30 21:03:11 lindesk kernel: [  842.517200] WARNING! power/level is deprecated; use power/control instead
Apr 30 21:05:18 lindesk NetworkManager[692]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.1/net/wwan0, iface: wwan0)
Apr 30 21:05:18 lindesk kernel: [  969.297826] cdc_ether 1-4:1.1: wwan0: unregister 'cdc_ether' usb-0000:00:1d.7-4, Mobile Broadband Network Device
Apr 30 21:05:50 lindesk modem-manager[660]: <info>  (ttyUSB0) closing serial port...
Apr 30 21:05:50 lindesk modem-manager[660]: <info>  (ttyUSB0) serial port closed
Apr 30 21:05:50 lindesk kernel: [ 1001.878748] option: option_instat_callback: error -108
Apr 30 21:05:50 lindesk modem-manager[660]: <info>  (tty/ttyUSB0): released by modem /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4
Apr 30 21:05:50 lindesk kernel: [ 1001.880143] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Apr 30 21:05:50 lindesk kernel: [ 1001.880178] option 1-4:1.0: device disconnected
Apr 30 21:05:50 lindesk kernel: [ 1001.882779] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Apr 30 21:05:50 lindesk kernel: [ 1001.882820] option 1-4:1.3: device disconnected
Apr 30 21:05:50 lindesk kernel: [ 1001.884306] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Apr 30 21:05:50 lindesk kernel: [ 1001.884324] option 1-4:1.4: device disconnected
Apr 30 21:05:50 lindesk modem-manager[660]: <info>  Modem /org/freedesktop/ModemManager/Modems/0: state changed (registered -> disabled)
Apr 30 21:05:50 lindesk NetworkManager[692]: <info> (ttyUSB0): now unmanaged
Apr 30 21:05:50 lindesk NetworkManager[692]: <info> (ttyUSB0): device state change: disconnected -> unmanaged (reason 'removed') [30 10 36]
Apr 30 21:05:50 lindesk NetworkManager[692]: <info> (ttyUSB0): cleaning up...
Apr 30 21:05:50 lindesk NetworkManager[692]: <info> (ttyUSB0): taking down device.
Apr 30 21:05:50 lindesk modem-manager[660]: <info>  (ttyUSB2) closing serial port...
Apr 30 21:05:50 lindesk modem-manager[660]: <info>  (ttyUSB2) serial port closed
Apr 30 21:05:50 lindesk kernel: [ 1001.892265] usb 1-4: USB disconnect, device number 5
Reply With Quote
  #4  
Old 1st May 2012, 10:14 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,082
linuxfirefox
Re: Safely Remove USB 3G Modem failed. manual unbind help needed

Your flash drive is recognized as Vodafone cdrom so you should be able to mount it if it wasn't mounted automagically

Code:
mkdir /mnt/vodafone
mount -r -t /dev/sr1 /mnt/vodafone
And this is deprecated:

Code:
echo "auto" > "/sys/bus/usb/devices/usb2/2-1/power/level"
Try power/control instead ;-)
Reply With Quote
  #5  
Old 1st May 2012, 10:58 AM
deepclutch Offline
Registered User
 
Join Date: Mar 2009
Location: Kerala,India
Posts: 65
linuxdebianiceweasel
Re: Safely Remove USB 3G Modem failed. manual unbind help needed

Thanks.
So, Manually unbinding is the only solution? Is there a way this issue can be fixed with "udisks" command.

TIA+
Reply With Quote
Reply

Tags
failed, manual, modem, needed, remove, safely, unbind, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F14: Have to 'safely remove' TWICE to remove external USB drive rweed Using Fedora 1 15th December 2010 07:11 AM
Can I safely remove Ubuntu??? shahdharmit Using Fedora 12 24th September 2009 04:13 AM
safely remove USB-notification bd54338rre Using Fedora 1 4th February 2009 11:06 PM
How can I safely remove the old kernel? xploder Alpha - Beta (Fedora 9 Only) 6 13th July 2008 10:58 PM


Current GMT-time: 01:57 (Sunday, 21-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Hennepin Canal Parkway State Park Travel Photos on Instagram - Brioche Travel Photos on Instagram - Fakultas kedokteran UNDIP