| [tlinux-users:05813]
|
How can I restore /dev entries? |
Thu, 22 Jul 2004 |
I
installed RH9 on a laptop, and by mistake
removed the following files
/dev/scd0
/dev/cdrom -> /dev/scd0
Now I can't use my CD Drive.
What is the best way to get these /dev entries
back, with little or no problem? |
| [tlinux-users:05814] |
|
Thu, 22
Jul 2004 |
| You
can do the following thing:
mknod /dev/scd0 b 11 0
ln -s /dev/scd0 /dev/cdrom
This will restore your system ;)
|
| [tlinux-users:05815] |
(from the original
poster) |
Thu, 22
Jul 2004 |
|
I restored ;-) the system!
thanx....
|
| [tlinux-users:05816] |
|
Thu, 22
Jul 2004 |
|
(post from another ML user)
i had some problems with the /dev also,
i managed to fix it.
where can i find the device names and
the major and minor numbers for a
certain device?
|
| [tlinux-users:05817] |
|
Thu, 22
Jul 2004 |
|
You can find in the kernel source: /usr/src/linux/Documentation/devices.txt
|
| [tlinux-users:05818] |
|
Thu, 22
Jul 2004 |
|
if you make: ls -l /dev/scd* you'll get:
brw-r----- 1 root disk 11, 0 1994-07-18
18:06 /dev/scd0
brw-r----- 1 root disk 11, 1 1994-07-18
18:06 /dev/scd1
brw-r----- 1 root disk 11, 10 1999-04-13
06:24 /dev/scd10
brw-r----- 1 root disk 11, 11 1999-04-13
06:24 /dev/scd11
...
brw-r----- 1 root disk 11, 8 1999-04-13
06:24 /dev/scd8
brw-r----- 1 root disk 11, 9 1999-04-13
06:24 /dev/scd9
As you can see the major is the first
number rear the group name,
and the minor is the second (minor also
is the same as the number of the
device, as you can see).
|
| [tlinux-users:05829] |
|
Sat, 24
Jul 2004 |
|
thanx. :)
|
|
|