Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant rm /dev/mouse?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Shads
Guest





PostPosted: Sat Jun 08, 2002 11:55 pm    Post subject: cant rm /dev/mouse? Reply with quote

Out of curiousity, what do i have to do to be able to rm the symlink /dev/mouse...? Ive tried various options with rm and none of them seem to work.

bane dev # rm mouse
bane dev # ls -al mouse
lr-xr-xr-x 1 root root 10 Jun 8 14:53 mouse -> misc/psaux
bane dev # rm /dev/mouse
bane dev # ls -al mouse
lr-xr-xr-x 1 root root 10 Jun 8 14:53 mouse -> misc/psaux
bane dev # rm -v -f /dev/mouse
removing `mouse'
bane dev # ls -al mouse
lr-xr-xr-x 1 root root 10 Jun 8 14:53 mouse -> misc/psaux

Im outta ideas here, anyone got any or mind telling me what i did wrong? I even tried setting CONFIG_PROTECT="" thinking perhaps it was being protected in some manor... I'm using ext3 file systems if that makes any difference and am able to remove files anywhere else in the system but /dev/
Back to top
tomte
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2002
Posts: 122

PostPosted: Sat Jun 08, 2002 11:58 pm    Post subject: Reply with quote

/dev/mouse is a symlink created by the devfsd, it regenerates it instantly, if you remove it (I asume, maybe you just can't remove it)

try to alter /etc/devfsd.conf if you want it to link to another device

regards, tom
Back to top
View user's profile Send private message
Shads
Guest





PostPosted: Sun Jun 09, 2002 12:09 am    Post subject: Reply with quote

okie, changed the entry in devfsd.conf from

LOOKUP ^mouse$ CFUNCTION GLOBAL mksymlink misc/psaux mouse
REGISTER ^misc/psaux$ CFUNCTION GLOBAL mksymlink $devname mouse
UNREGISTER ^misc/psaux$ CFUNCTION GLOBAL unlink mouse

to

LOOKUP ^mouse$ CFUNCTION GLOBAL mksymlink tts/0 mouse
REGISTER ^tts/0$ CFUNCTION GLOBAL mksymlink $devname mouse
UNREGISTER ^tts/0$ CFUNCTION GLOBAL unlink mouse

removed the /dev/mouse link, hup'd the devfsd process to get it to reload the config (not sure if needed honestly) and still im getting linked to misc/psaux.

Do i need to reboot to cause the changes to become active (i surely hope not) or is there some kind of update utility i need to run to get it to reload the configuration?

Thanks for the help, its appreciated.
Back to top
tomte
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2002
Posts: 122

PostPosted: Sun Jun 09, 2002 12:29 am    Post subject: Reply with quote

as far as I know, hup'ing devfsd is the only thing needed...
hm, just to be sure..
I did (after your modifications)
Code:

kill -SIGHUP <devfsd-pid>
rm /dev/mouse


this worked...

regards,
tom
Back to top
View user's profile Send private message
Shads
Guest





PostPosted: Sun Jun 09, 2002 1:22 am    Post subject: Reply with quote

Worked with SIGHUP but not HUP like i'm used to using. *shrug*

Thanks for all the help, its greatly appreciated!

Shads
Back to top
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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