Re: [expert] devfs, hdc=ide-scsi (Mdk 8.1) and the symbolic link /dev/cdrom

2002-02-25 Thread Peter Møller Neergaard

On February 25, 2002, Larry Sword wrote:

LS> Delete the links in /etc/dev and redo the links pointing to the
LS> correct /dev/cdroms/

PMN> I don't have a directory or a file named /etc/dev.  Did you /dev?

LS> No!, I don't, I did have a brain fart.

OK.  

From what package should I get the /etc/dev directory that is missing
on my machine?  

Or should I create it by hand, and if so what links should I put into it.

LS> To remove a sylink: rm /dev/cdrom

Does not work!  

As I wrote in my previous mail

PMN>   peter:/dev > ls -la cdrom ; sudo rm cdrom ; ls -la cdrom
PMN>   lr-xr-xr-x1 root root   16 Feb 25 11:46 cdrom -> 
../cdroms/cdrom0
PMN>   lr-xr-xr-x1 root root   16 Feb 25 11:48 cdrom -> 
../cdroms/cdrom0

As you can see, I must have been successful on deleting the link (since
the time stamp have changed), but it is recreated as soon as I have
deleted.  

So until I figure out how to disable whatever process that recreates
link ln, rm, etc will not help me.

/Peter
-- 
http://www.linearity.org/turtle/contact.html
``When you have had all the experiences, met all the famous people,
made some money, toured the world and got all the acclaim you still
think--is that it? Some might be satisfied--but I wasn't'' -- G. Harrison



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] devfs, hdc=ide-scsi (Mdk 8.1) and the symbolic link /dev/cdrom

2002-02-25 Thread Larry Sword

Peter Møller Neergaard wrote:
> 
> On February 25, 2002, you wrote:
> 
> LS> Delete the links in /etc/dev and redo the links pointing to the
> LS> correct /dev/cdroms/
> 
> I don't have a directory or a file named /etc/dev.  Did you /dev?

No!, I don't, I did have a brain fart.

> 
> Anyways, it is impossible for me to delete the link:
> 
>   peter:/dev > ls -la cdrom ; sudo rm cdrom ; ls -la cdrom
>   lr-xr-xr-x1 root root   16 Feb 25 11:46 cdrom -> ../cdroms/cdrom0
>   lr-xr-xr-x1 root root   16 Feb 25 11:48 cdrom -> ../cdroms/cdrom0
> 
> and trying -f to ln does not help either:
> 
>   peter:/dev > sudo ln -s -f cdroms/cdrom3 cdrom
>   ln: creating symbolic link `cdrom' to `cdroms/cdrom3': File exists
> 
> So my assumption was that devfsd really insists on having the link due
> to a configuration option.

[lsword@sword /]$ ls -l /dev/cdrom*
lr-xr-xr-x1 root root   13 Feb 25 00:08 /dev/cdrom ->
cdroms/cdr
om0
lr-xr-xr-x1 root root   13 Feb 25 00:08 /dev/cdrom0 ->
cdroms/cd
rom0
lr-xr-xr-x1 root root   13 Feb 25 00:08 /dev/cdrom1 ->
cdroms/cd
rom1
/dev/cdroms:
total 0
lr-xr-xr-x1 root root   33 Dec 31  1969 cdrom0 ->
../ide/host0/b
us1/target1/lun0/cd
brw---1 lsword   cdrom 11,   0 Oct 19 13:48 cdrom1

To remove a sylink: rm /dev/cdrom

To make the symlink: ln -s /dev/cdroms/cdrom0 /dev/cdrom
(ln [OPTION]... TARGET [LINK_NAME])

Larry

--
Sword'sEdge
VoiceMail/Fax: (866) 841-9142 x9753



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] devfs, hdc=ide-scsi (Mdk 8.1) and the symbolic link /dev/cdrom

2002-02-25 Thread Peter Møller Neergaard

On February 25, 2002, you wrote:

LS> Delete the links in /etc/dev and redo the links pointing to the
LS> correct /dev/cdroms/

I don't have a directory or a file named /etc/dev.  Did you /dev?

Anyways, it is impossible for me to delete the link:

  peter:/dev > ls -la cdrom ; sudo rm cdrom ; ls -la cdrom
  lr-xr-xr-x1 root root   16 Feb 25 11:46 cdrom -> ../cdroms/cdrom0
  lr-xr-xr-x1 root root   16 Feb 25 11:48 cdrom -> ../cdroms/cdrom0

and trying -f to ln does not help either:  

  peter:/dev > sudo ln -s -f cdroms/cdrom3 cdrom
  ln: creating symbolic link `cdrom' to `cdroms/cdrom3': File exists

So my assumption was that devfsd really insists on having the link due
to a configuration option.

/Peter
-- 
http://www.linearity.org/turtle/contact.html
``When you have had all the experiences, met all the famous people,
made some money, toured the world and got all the acclaim you still
think--is that it? Some might be satisfied--but I wasn't'' -- G. Harrison



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] devfs, hdc=ide-scsi (Mdk 8.1) and the symbolic link /dev/cdrom

2002-02-25 Thread Larry Sword

Peter Møller Neergaard wrote:
> 
> I have recently upgraded from 7.2 to 8.1 (better later than never).
> This has caused me problem with the handling of my CDROM drive and
> CD-writer on my computer; I have both, the CDROM is /dev/hdc and the
> CD-writer /dev/hdd.  I prefer to have both drives being emulated SCSI
> using ide-scsi.  I therefore have
> 
> hdc=ide-scsi hdd=ide-scsi
> 
> among my load options to the kernel.
> 
> This creates the SCSI devices just fine.  However, the symbolic link
> /dev/cdrom gets wrong; it points to the non-existing
> /dev/cdroms/cdrom0 rather than /dev/cdroms/cdrom1 or
> /dev/cdroms/cdrom3.
> 
> It appears that this link is maintained by devfsd.  However, do I
> tell it to link it to the correct file?
> 
> /Peter

Delete the links in /etc/dev and redo the links pointing to the correct
/dev/cdroms/

I always use mc to cd to the correct dir and make the links. You could
just do the links via a command line:  
ln [OPTION]... TARGET [LINK_NAME]
ln [OPTION]... TARGET... DIRECTORY
ln [OPTION]... --target-directory=DIRECTORY TARGET...

Ref: man ln

Larry
-- 
Sword'sEdge
VoiceMail/Fax: (866) 841-9142 x9753



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] devfs, hdc=ide-scsi (Mdk 8.1) and the symbolic link /dev/cdrom

2002-02-24 Thread Hoyt

On Monday 25 February 2002 01:44 am, you wrote:
pmi fi;e> I have recently upgraded from 7.2 to 8.1 (better later than never).
> This has caused me problem with the handling of my CDROM drive and
> CD-writer on my computer; I have both, the CDROM is /dev/hdc and the
> CD-writer /dev/hdd.  I prefer to have both drives being emulated SCSI
> using ide-scsi.  I therefore have
>
>   hdc=ide-scsi hdd=ide-scsi
>
> among my load options to the kernel.
>
> This creates the SCSI devices just fine.  However, the symbolic link
> /dev/cdrom gets wrong; it points to the non-existing
> /dev/cdroms/cdrom0 rather than /dev/cdroms/cdrom1 or
> /dev/cdroms/cdrom3.
>
> It appears that this link is maintained by devfsd.  However, do I
> tell it to link it to the correct file?
>
> /Peter


try turning off devfs by adding

devfs=nomount

to the append line in lilo.conf

-- 
Hoyt

http://www.maximumhoyt.com



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[expert] devfs, hdc=ide-scsi (Mdk 8.1) and the symbolic link /dev/cdrom

2002-02-24 Thread Peter Møller Neergaard

I have recently upgraded from 7.2 to 8.1 (better later than never).
This has caused me problem with the handling of my CDROM drive and
CD-writer on my computer; I have both, the CDROM is /dev/hdc and the
CD-writer /dev/hdd.  I prefer to have both drives being emulated SCSI
using ide-scsi.  I therefore have 
   
hdc=ide-scsi hdd=ide-scsi

among my load options to the kernel.

This creates the SCSI devices just fine.  However, the symbolic link
/dev/cdrom gets wrong; it points to the non-existing
/dev/cdroms/cdrom0 rather than /dev/cdroms/cdrom1 or
/dev/cdroms/cdrom3.

It appears that this link is maintained by devfsd.  However, do I
tell it to link it to the correct file?

/Peter
-- 
http://www.linearity.org/turtle/contact.html
``When you have had all the experiences, met all the famous people,
made some money, toured the world and got all the acclaim you still
think--is that it? Some might be satisfied--but I wasn't'' -- G. Harrison



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com