Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to create a /dev file?!
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
ronald_cn
n00b
n00b


Joined: 13 Jan 2003
Posts: 12
Location: China

PostPosted: Mon Jan 13, 2003 9:18 am    Post subject: how to create a /dev file?! Reply with quote

my cdrom is CD RW PIO 4 with IDE.but it can't be found at boot time.and how can i create it under dev directory?
i tried....see below
#mknod /dev/optcd0 b 17 0
#chmod 600 /dev/optcd0
#ln -s /dev/optcd0 /dev/cdrom
but the error message was
#mount /mnt/cdrom
-bash:/dev/cdrom is not a valid block device.
_________________
Secret is the public lie!
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Mon Jan 13, 2003 1:43 pm    Post subject: Reply with quote

Are you using devfs? If you are, you probably forgot to compile the proper hardware support for your disk.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
phunkphorce
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2002
Posts: 145

PostPosted: Mon Jan 13, 2003 1:48 pm    Post subject: Reply with quote

I guess that if it can't be detected at boot time, it won't exist for the system, so there is no point in creating any /dev entry because

a) Even if you succeeded in creating the /dev entry manually, if the cd is not detected, it is as it was not there.

b) If you're using devfs, /dev entries are generated automatically and next time you boot, the one you created would be gone.

I'd suggest that you have a look at your kernel config. Most likely you forgot to include some important module or you chose the wrong one for your cd-rom, and check as well the output of the dmesg command to see what's the error given by the kernel.
_________________
O God, Thou art in Heaven...
...please stay there!
Back to top
View user's profile Send private message
ronald_cn
n00b
n00b


Joined: 13 Jan 2003
Posts: 12
Location: China

PostPosted: Tue Jan 14, 2003 8:37 am    Post subject: thank you very much! Reply with quote

i have read the Gentoo FAQ,and compilied DEVs in the kernel.and my cdrom is working.it has another name "hdc",and then i
#ln -s /dev/hdc /dev/cdrom
#mount /mnt/cdrom
its work!
_________________
Secret is the public lie!
Back to top
View user's profile Send private message
ronald_cn
n00b
n00b


Joined: 13 Jan 2003
Posts: 12
Location: China

PostPosted: Tue Jan 14, 2003 8:47 am    Post subject: Reply with quote

hehe...thank you very much!!!!
_________________
Secret is the public lie!
Back to top
View user's profile Send private message
phunkphorce
Tux's lil' helper
Tux's lil' helper


Joined: 22 Nov 2002
Posts: 145

PostPosted: Wed Jan 15, 2003 9:11 am    Post subject: Reply with quote

ronald_cn wrote:
hehe...thank you very much!!!!

You're welcome 8)
_________________
O God, Thou art in Heaven...
...please stay there!
Back to top
View user's profile Send private message
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