LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2005, 02:26 PM   #1
mykeey
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Rep: Reputation: 0
Symobolic LInk to Devices Missing on Reboot


I have created a symoblic link to /dev/ttyS0 called /dev/pilot. I am using Fedora 3 but on the reboot the symbolic link disappears. Also I am trying to keep the permissions to /dev/ttyS0 to 0666. Please advice so that I can keep my symbolic link and permission on reboot. Thanks in advance.
 
Old 01-16-2005, 04:03 PM   #2
dns21
Member
 
Registered: Feb 2004
Location: AZ
Distribution: Slackware, Ubuntu, CentOS, Debian
Posts: 139

Rep: Reputation: 15
What are you attempting to accomplish?
 
Old 01-16-2005, 04:21 PM   #3
mykeey
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Original Poster
Rep: Reputation: 0
What i am trying to do is setup gnome-pilot to work with Evolution. Each time I press the Hot-Sync on the Palm Pilot it does not sync. So to check if it is working after a reboot, I use pilot-xfer -p /dev/pilot -l to check if the palm pilot is seen by the system. I get the following message:

$> pilot-xfer -p /dev/pilot -l
The device /dev/pilot does not exist..
Possible solution:

mknod /dev/pilot c <major> <minor>

Unable to bind to port: /dev/pilot
Please use --help for more information

Then I recreate the link using ln -s /dev/ttyS0 /dev/pilot as root. I rerun the pilot-xfer command and receive the following message:


$> pilot-xfer -p /dev/pilot -l
Please check the permissions on /dev/ttyS0..
Possible solution:

chmod 0666 /dev/ttyS0

Unable to bind to port: /dev/pilot
Please use --help for more information


Once I do sthe chmod command, it works.


$> pilot-xfer -p /dev/pilot -l

Listening to port: /dev/pilot

Please press the HotSync button now...



Let me know what I need to do so I do not have to setup the symbolic link and the permissions everytime I boot. Thanks for responding.
 
Old 01-16-2005, 04:45 PM   #4
dns21
Member
 
Registered: Feb 2004
Location: AZ
Distribution: Slackware, Ubuntu, CentOS, Debian
Posts: 139

Rep: Reputation: 15
Perfect. I'm not sure which distro you are using but with Slackware, there is a file called /etc/rc.d/rc.local. It is made to be a script file that can run user specified commands whenever the computer is started up. All you do is add the necessary commands and they run each time the computer starts up.
 
Old 01-16-2005, 05:12 PM   #5
sonis
LQ Newbie
 
Registered: Oct 2004
Posts: 14

Rep: Reputation: 0
is that possible to write this command into .bashrc?
 
Old 01-16-2005, 08:09 PM   #6
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
What kernel are you using? If it's a 2.6 udev pretty much controls creation of the /dev directory and you would have to add an additional rule to create that symlink.
 
Old 01-16-2005, 08:38 PM   #7
mykeey
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Yes I am using 2.6 thanks for the tip. I will read up on how to make a new rule thanks.
 
Old 01-16-2005, 11:13 PM   #8
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
the permissions is easy
/etc/udev/permissions.d
and go for the one numbered earliest and in there you find permissions being set for the device
it uses the four numbers format for permissions
ignore the first number
the rest are user,group,others
4=read
2=write
1=execute

man for the link i would just put it in the bootscripts for now -- at the bottom of something that starts last or something -- i wrote mine at the bottom of my firewal script

it's a hack but the alternative is figuring out those udev rules (roll eyes)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB devices on reboot tardigrade Linux - Hardware 6 03-06-2005 01:39 PM
missing devices hostile1313 Linux - Newbie 2 12-01-2004 06:54 AM
need to reboot network parameters and devices mfeoli Linux - Networking 3 11-04-2004 06:53 PM
Mystery of the missing devices orange400 Linux - General 7 05-04-2004 03:49 AM
USB devices only recognized with lsusb after plugged in reboot arnostienen Slackware 1 01-29-2004 04:40 PM


All times are GMT -5. The time now is 10:57 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration