Hello to all I mistakenly removed a device, cdrom , from my /dev directory while attempting to remove a soft link. I need to replace cdrom. Could someone point me at a how to or something, and/or explain how this is done? I tried a mkdev -help but I received an unknown command reply. Probably not using the right syntax. I also probably need to know about parameters. Thanks, Bob S.
On Tuesday 04 December 2001 08:32, Bob Stia wrote:
I mistakenly removed a device, cdrom , from my /dev directory while attempting to remove a soft link. I need to replace cdrom.
but /dev/cdrom is just a symlink to the actual device... you just need to find out which device it was pointing to... probably /dev/hdb or /dev/hdc (depends on how many HDs you got...) as soon as you're sure about the device, just create a symlink /dev/cdrom to it... Johannes -- SuSE 7.0 - Linux 2.2.16 - KDE 2.2.1 from rpms - QT 2.3.0 - OpenSSL 0.9.6b
On Tuesday 04 December 2001 05:06 am, you wrote:
On Tuesday 04 December 2001 08:32, Bob Stia wrote:
I mistakenly removed a device, cdrom , from my /dev directory while attempting to remove a soft link. I need to replace cdrom.
but /dev/cdrom is just a symlink to the actual device... you just need to find out which device it was pointing to... probably /dev/hdb or /dev/hdc (depends on how many HDs you got...)
as soon as you're sure about the device, just create a symlink /dev/cdrom to it...
Johannes, OK.... Did as you suggested and I have the cdrom back by making the link "ln /dev/hdd /dev/cdrom" Good.. Thank You so much for that. I now have that back and can access it......But, when I did the rm I did a "rm /dev/cdrom /dev/scd1" which also removed scd1. Now, since scd1 is not an actual physical piece of hardware, how do I restore scd1??? Bob S.
On Wednesday 05 December 2001 08:11, Bob Stia wrote: <snip>
But, when I did the rm I did a "rm /dev/cdrom /dev/scd1" which also removed scd1. Now, since scd1 is not an actual physical piece of hardware, how do I restore scd1???
do a "ls -l /dev/scd*" and you should get sth like this: brw-r----- 1 root disk 11, 0 Jul 29 2000 /dev/scd0 brw-r----- 1 root disk 11, 1 Jul 29 2000 /dev/scd1 brw-r----- 1 root disk 11, 10 Jul 29 2000 /dev/scd10 brw-r----- 1 root disk 11, 11 Jul 29 2000 /dev/scd11 brw-r----- 1 root disk 11, 12 Jul 29 2000 /dev/scd12 usw... ...well, your scd1 will be missing, of course... check if the major/minor numbers are the same on your machine... in my case, I would use a "mknod /dev/scd1 b 11 1" to create scd1. Just make sure to use the right major number and the missing minor number... Johannes
On Wednesday 05 December 2001 05:13 am, you wrote:
On Wednesday 05 December 2001 08:11, Bob Stia wrote: <snip>
But, when I did the rm I did a "rm /dev/cdrom /dev/scd1" which also removed scd1. Now, since scd1 is not an actual physical piece of hardware, how do I restore scd1???
do a "ls -l /dev/scd*" and you should get sth like this: <snip> in my case, I would use a "mknod /dev/scd1 b 11 1" to create scd1. Just make sure to use the right major number and the missing minor number...
Johannes, That did it for me. Thank you very much. Well appreciated for your time and effort. Wish I had the knowledge that most of you on this list have. Thanks again, Bob S.
On Wednesday 05 December 2001 20:22, Bob Stia wrote: <snip>
That did it for me. Thank you very much. Well appreciated for your time and effort. Wish I had the knowledge that most of you on this list have.
Usually I'm the one wishing that... ;) ...glad I could help... Johannes
participants (2)
-
Bob Stia
-
Johannes Liedtke