Skip to content

Errors while installing Arch Linux through a USB 3G modem

I'm trying to install Arch on my PC and I have access to the internet only through a USB 3G modem but I can't seem to get it to work. I'll list the things I've tried -

 

The command

dmesg | tail

showed that

sr 10:0:0:0: Attached scsi CD-ROM sr0

and so I tried eject the /dev/sr0 but it didn't work at all. The lsblk command still showed the presence of sr0.

 

I changed the udev rules in /lib/udev/rules.d/40-usb_modeswitch.rules to include my vendor ID and product ID which are 19d2 and 1177 respectively. The usb_modeswitch.rules now includes this -

ATTR{idVendor}=="19d2", ATTR{idProduct}=="1177", RUN+="usb_modeswitch '%b%k'"

I copied the netctl example profile named mobile_ppp to /etc/netctl and edited it to the interface name wwp0s20u2i5 as shown by lsusb, I got the following errors from journal -xn and netctl status mobile_ppp

archiso pppd[1319]: In file /run/network/mobile_ppp.wwp0s20u2i5.mobile_ppp/options: unrecognized option 'wwp0s20u2i5'
archsio network[1302]: Could not establish a ppp connection for profile 'mobile_ppp'.
archiso network[1302]: Failed to bring the network up for profile 'mobile_ppp'

 

The same was true for ttyUSB0. However, when I set it to ttyACM0, netctl start mobile_ppp didn't give me any errors but didn't work. journalctl -xn and netctl status mobile_ppp gave the following one-line error -

archsio pppd[1454]: Connect script failed

I removed and reinserted the USB modem and then, journalctl -xn didn't give any errors. However, it did contain the following lines -

usb_modeswitch: switched to 19d2:1177 on 003/014
sr 16:0:0:0: Attached scsi CD-ROM sr0
archiso systemd[1]: Started Networking for netctl profile mobile_ppp
The start-up result is done.

netctl status mobile_ppp gave me the same error as the last time -

archsio pppd[1454]: Connect script failed

I think I am at a dead-end here. Help?

EDIT: You are also welcome to try to resolve my issue at Arch Forums here

Edited 3 Jul 2015. We only hold this version.

8 points10 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
8 · 100% up
Kind
Text
ID
3byuly

10 comments

use wvdial don't torture yourself

2 points

I tried to use wvdial. Although it obtains an IP and DNS address and is able to make a connection, the wvdial process doesn't return to the shell (command prompt) during the Arch Linux installation.

I have to manually give a CTRL+C to return to the shell.

1 points

did you use stupid mode it might help

2: yes wvdial does not return to shell until you cancel it

2 points

edited it to the interface name wwp0s20u2i5 as shown by lsusb

I don't think this is what the interface is supposed to be. Run dmesg and look for a line like this:

usb 1-6: GSM modem (1-port) converter now attached to ttyUSB0

Put ttyUSB0 or whatever else shows there on the profile and try again. Alternatively you could try using pppd directly, as shown here.

1 points

My device uses ttyACM0 and using that doesn't give me any errors but the connection still doesn't happen.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.