spacer
spacer search

PHARscape
Phar enough!

Search
spacer
header
Main Menu
Home
Linux and 3G
Linux and 3G Forum
Python Stuff
Pictures
Astronomy
Links
Contacting Me
Search
Mambo License
About
Syndicate
Lunarpages.com Web Hosting
 
Home arrow Linux and 3G Forum

PHARscape
3G Datacards and Linux
 
  FAQFAQ    SearchSearch  RegisterRegister 
   Log inLog in 

TEC: /dev/modem and /dev/modem0 kept on being deleted

 
Post new topic   Reply to topic    PHARscape Forum Index -> Internet
View previous topic :: View next topic  
Author Message
lsam



Joined: 20 Oct 2006
Posts: 10

hong_kong.gif
PostPosted: Mon Feb 12, 2007 9:07 am    Post subject: TEC: /dev/modem and /dev/modem0 kept on being deleted Reply with quote

Dear all,

As the subject reads, I have no idea why those 2 files (created by ln /dev/noz0 /dev/modem and ln /dev/noz0 /dev/modem0 respectively) would be deleted automatically whenever I restart the system.

Anyone can help out solving this problem for me please?

Thanks!


-Charles
Back to top
View user's profile Send private message
martijnv



Joined: 01 Feb 2007
Posts: 10

netherlands.gif
PostPosted: Wed Apr 11, 2007 11:43 am    Post subject: Re: TEC: /dev/modem and /dev/modem0 kept on being deleted Reply with quote

lsam wrote:
Dear all,

As the subject reads, I have no idea why those 2 files (created by ln /dev/noz0 /dev/modem and ln /dev/noz0 /dev/modem0 respectively) would be deleted automatically whenever I restart the system.

Anyone can help out solving this problem for me please?

Thanks!


-Charles

This is probably because your /dev directory is re-created by udev each time you boot (udev is a daemon which listens to the kernel, and creates /dev/* device files when devices are detected).

You can solve it by either modifying the udev configuration (/etc/udev *) and make udev create /dev/modem and /dev/modem0 for you each time /dev/noz0 is created. This is the least 'hackish' solution, but it requires you to find out how the udev config files work. Or you can solve it by recreating your symlink from a startup script. I have the following in my /etc/rc.local (ubunto 6.10)

---------snip-----------------------------
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

ln -s /dev/noz0 /dev/modem

exit 0
-------------snip--------------------

This is a bit more 'hackish' since /dev/modem will not appear/disappear when you insert/remove the card. This is not a problem though, for it works fine.
Back to top
View user's profile Send private message
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 505
Location: UK and Belgium

uk.gif
PostPosted: Fri Apr 20, 2007 11:56 am    Post subject: Reply with quote

Hi,
This thread will explain how to setup udev to reset the /dev/modem link.
http://www.pharscape.org/component/option,com_forum/Itemid,68/page,viewtopic/t,128/

Cheers,
Paul
Back to top
View user's profile Send private message Visit poster's website
lsam



Joined: 20 Oct 2006
Posts: 10

hong_kong.gif
PostPosted: Fri Jun 15, 2007 2:24 pm    Post subject: TEC: Thanks ... Reply with quote

Dear both of you,

Thanks for your suggestions. I will try that now.



-Charles
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PHARscape Forum Index -> Internet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


phpBB component by Adam van Dongen. Based on phpBB © 2001, 2002 phpBB Group
spacer

 
Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.
spacer