View previous topic :: View next topic |
Author |
Message |
ronald_cn n00b
Joined: 13 Jan 2003 Posts: 12 Location: China
|
Posted: Mon Jan 13, 2003 9:18 am Post subject: how to create a /dev file?! |
|
|
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 |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7731 Location: Underworld
|
Posted: Mon Jan 13, 2003 1:43 pm Post subject: |
|
|
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 |
|
|
phunkphorce Tux's lil' helper
Joined: 22 Nov 2002 Posts: 145
|
Posted: Mon Jan 13, 2003 1:48 pm Post subject: |
|
|
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 |
|
|
ronald_cn n00b
Joined: 13 Jan 2003 Posts: 12 Location: China
|
Posted: Tue Jan 14, 2003 8:37 am Post subject: thank you very much! |
|
|
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 |
|
|
ronald_cn n00b
Joined: 13 Jan 2003 Posts: 12 Location: China
|
Posted: Tue Jan 14, 2003 8:47 am Post subject: |
|
|
hehe...thank you very much!!!! _________________ Secret is the public lie! |
|
Back to top |
|
|
phunkphorce Tux's lil' helper
Joined: 22 Nov 2002 Posts: 145
|
Posted: Wed Jan 15, 2003 9:11 am Post subject: |
|
|
ronald_cn wrote: | hehe...thank you very much!!!! |
You're welcome _________________ O God, Thou art in Heaven...
...please stay there! |
|
Back to top |
|
|
|