Re: [expert] Setting up autofs

2000-08-01 Thread Sarang Lakare

Alexander Skwar wrote:
 
 On Thu, Jul 27, 2000 at 04:39:13AM -0400, Sarang Lakare wrote:
  ya, I know its a link.. mine is an IDE burner.. so its simulated as SCSI..
  (i guess its still simulated).. my /dev/cdrom is scd0 and /dev/cdrom1 is
  /dev/scd0 and /dev/cdrom.old is /dev/hdc
 
  I tried mounting all three and all give the same answer :(
 
 Hmm, have you tried mounting not the links, but rather the devices they
 point at (so, instead of /dev/cdrom /dev/scd0?)

ya i tried.. but same output :(

 
 
  do I "need" to have an entry in fstab??
 
 No, it's just there to help you, or to make things easier.
 
 Try ``mount -t iso9660 /dev/scd0 /some-dir'' and make sure, that /some-dir
 exists.

ya it does.. 

thanks!

-sarang

 
 Alexander Skwar
 --
 Homepage:   http://www.digitalprojects.com
 Sichere Mail?   Mail an [EMAIL PROTECTED] fuer GnuPG Keys
 ICQ:7328191




Re: [expert] Setting up autofs

2000-08-01 Thread Alexander Skwar

On Thu, Jul 27, 2000 at 05:23:51AM -0400, Sarang Lakare wrote:
 Alexander Skwar wrote:
  Try ``mount -t iso9660 /dev/scd0 /some-dir'' and make sure, that /some-dir
  exists.
 
 ya it does.. 

Okay, so what did you write in your /etc/auto.* files?  Pleas post 'em.

Alexander Skwar
-- 
Homepage:   http://www.digitalprojects.com
Sichere Mail?   Mail an [EMAIL PROTECTED] fuer GnuPG Keys
ICQ:7328191




Re: [expert] Setting up autofs

2000-07-31 Thread Alexander Skwar

On Thu, Jul 27, 2000 at 10:18:54AM -0400, John Aldrich wrote:
 Not on my system. I've looked. Under (Sorry) RedHat 6.2, I'm using a
 SCSI CDRW, from which I installed linux. Looking in /dev using ls -al
 there is NO link to /dev/scd0 or anything like that. Plus my cd
 mounts as /dev/cdrom from /etc/fstab.

Really?  That's somewhat hard to believe, so I would be happiest if you
could please post the output of this line:

ls -lasi /dev | grep `ls -lasi /dev/cdrom | awk '{ print $1 }'`
ls -lasi /dev/cdrom

I'd be really interested in the output!

Alexander Skwar
-- 
Homepage:   http://www.digitalprojects.com
Sichere Mail?   Mail an [EMAIL PROTECTED] fuer GnuPG Keys
ICQ:7328191




Re: [expert] Setting up autofs

2000-07-28 Thread Sarang Lakare

 
 /sbin/modprobe ide-scsi
 

thanks a lot! this worked!!! I wonder how it got disabled?? 

-sarang




Re: [expert] Setting up autofs

2000-07-27 Thread Sarang Lakare

 That's the only shortcoming of autofs.  You don't know which directories
 maybe mounted with autofs, without looking at /etc/auto.*.

but thats fine as long as you get /mnt/cdrom when u access it.

 To access your cdrom, you'll have to type cd /amnt/cdrom (no tab!).  It will

I tried.. it still dosnt' work.. infact i think the problem is somewhere
else.. when i say "autofs status", it dosn't show me any active mount
points.. is that the case? ot it shows something only on mounting?

anyway, now my problem is that autofs dosn't work.. nor does normal mount
work! when i say "mount -t iso9660 /dev/cdrom /mnt/cdrom", it says kernel
cannot recognize /dev/cdrom as a valid character device.. any help?


-sarang




Re: [expert] Setting up autofs

2000-07-27 Thread Anton Graham

Submitted 27-Jul-00 by Sarang Lakare:
 anyway, now my problem is that autofs dosn't work.. nor does normal mount
 work! when i say "mount -t iso9660 /dev/cdrom /mnt/cdrom", it says kernel
 cannot recognize /dev/cdrom as a valid character device.. any help?
 
Let me guess, /dev/cdrom is a burner?  When you disabled supermount,
you also disabled the automatic loading of the ide-scsi module.

-- 
   _
 _|_|_
  ( )   *Anton Graham
  /v\  / [EMAIL PROTECTED]
/(   )X
 (m_m)   GPG ID: 18F78541
Penguin Powered!




Re: [expert] Setting up autofs

2000-07-27 Thread Sarang Lakare

Anton Graham wrote:
 
 Submitted 27-Jul-00 by Sarang Lakare:
  anyway, now my problem is that autofs dosn't work.. nor does normal mount
  work! when i say "mount -t iso9660 /dev/cdrom /mnt/cdrom", it says kernel
  cannot recognize /dev/cdrom as a valid character device.. any help?
 
 Let me guess, /dev/cdrom is a burner?  When you disabled supermount,
 you also disabled the automatic loading of the ide-scsi module.

I didn't disable supermount.. all i did was commented out entries from
fstab.. and ya, after that i have rebooted once and kudzu came up saying
can't find my CD-RW.. and I guess i havn't tried mounting ever since.. 

what should i do? 

thanks
sarang

 
 --
_
  _|_|_
   ( )   *Anton Graham
   /v\  / [EMAIL PROTECTED]
 /(   )X
  (m_m)   GPG ID: 18F78541
 Penguin Powered!




Re: [expert] Setting up autofs

2000-07-27 Thread Alexander Skwar

On Thu, Jul 27, 2000 at 12:38:33AM -0400, Sarang Lakare wrote:
 anyway, now my problem is that autofs dosn't work.. nor does normal mount
 work! when i say "mount -t iso9660 /dev/cdrom /mnt/cdrom", it says kernel
 cannot recognize /dev/cdrom as a valid character device.. any help?

/dev/cdrom is always a link.  Do you have SCSI or IDE?  If you have SCSI, it
should be a link to /dev/scd0, /dev/scd0 being a _b_lock special device with
major 11 and minor 0.

If you use IDE, it should be a link to /dev/hd[bcd], whereever you attached
the cdrom.  These are again _b_lock special devices, and hdb is major 3
minor 64, hdc is 22, 0 and hdd is 22, 64.

Alexander Skwar
-- 
Homepage:   http://www.digitalprojects.com
Sichere Mail?   Mail an [EMAIL PROTECTED] fuer GnuPG Keys
ICQ:7328191




Re: [expert] Setting up autofs

2000-07-27 Thread John Aldrich

On Thu, 27 Jul 2000, you wrote:
 On Thu, Jul 27, 2000 at 12:38:33AM -0400, Sarang Lakare wrote:
  anyway, now my problem is that autofs dosn't work.. nor does normal mount
  work! when i say "mount -t iso9660 /dev/cdrom /mnt/cdrom", it says kernel
  cannot recognize /dev/cdrom as a valid character device.. any help?
 
 /dev/cdrom is always a link.  Do you have SCSI or IDE?  If you have SCSI, it
 should be a link to /dev/scd0, /dev/scd0 being a _b_lock special device with
 major 11 and minor 0.
 
Not on my system. I've looked. Under (Sorry) RedHat 6.2, I'm using a
SCSI CDRW, from which I installed linux. Looking in /dev using ls -al
there is NO link to /dev/scd0 or anything like that. Plus my cd
mounts as /dev/cdrom from /etc/fstab.
John




Re: [expert] Setting up autofs

2000-07-27 Thread Anton Graham

Submitted 27-Jul-00 by Sarang Lakare:
 I didn't disable supermount.. all i did was commented out entries from
 fstab..

Same thing, the supermount module doesn't load. Supermount was used as
a kind of "trigger" for loading the module.

 and ya, after that i have rebooted once and kudzu came up saying
 can't find my CD-RW..

Right.  Without the module loaded, the device is invisible to the
system.

 and I guess i havn't tried mounting ever since.. 
 
 what should i do? 
 
This doesn't solve kudzu compaining, but if you add:

/sbin/modprobe ide-scsi

to the end of /etc/rc.d/rc.local, you will get access to the burner
back.  If you're not planning on changing any hardware in the system,
it might be wise to disable (not remove) kudzu so that it does not
continue to warn about this.

-- 
   _
 _|_|_
  ( )   *Anton Graham
  /v\  / [EMAIL PROTECTED]
/(   )X
 (m_m)   GPG ID: 18F78541
Penguin Powered!




Re: [expert] Setting up autofs

2000-07-27 Thread Sarang Lakare


 Okay, so what did you write in your /etc/auto.* files?  Pleas post 'em.

~  cat /etc/auto.master
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
#/misc  /etc/auto.misc
/amnt   /etc/auto.amnt
~  cat /etc/auto.amnt 
# $Id: auto.misc,v 1.2 1997/10/06 21:52:04 hpa Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

#kernel -ro ftp.kernel.org:/pub/linux
#boot   -fstype=ext2:/dev/hda1
#removable  -fstype=ext2:/dev/hdd
cdrom   -fstype=iso9660,ro  /dev/cdrom
floppy  -fstype=auto/dev/fd0
~  


I think the problem is different coz I can't even mount using "mount"
command!

 
 Alexander Skwar
 --
 Homepage:   http://www.digitalprojects.com
 Sichere Mail?   Mail an [EMAIL PROTECTED] fuer GnuPG Keys
 ICQ:7328191




Re: [expert] Setting up autofs

2000-07-27 Thread Brian T. Schellenberger


Are you quite certain?  The fact that fstab has it doesn't say anything
about it being a link.

Please paste in the results from

ls -l /dev/cdrom

for us.

John Aldrich wrote:
 
 On Thu, 27 Jul 2000, you wrote:
  On Thu, Jul 27, 2000 at 12:38:33AM -0400, Sarang Lakare wrote:
   anyway, now my problem is that autofs dosn't work.. nor does normal mount
   work! when i say "mount -t iso9660 /dev/cdrom /mnt/cdrom", it says kernel
   cannot recognize /dev/cdrom as a valid character device.. any help?
 
  /dev/cdrom is always a link.  Do you have SCSI or IDE?  If you have SCSI, it
  should be a link to /dev/scd0, /dev/scd0 being a _b_lock special device with
  major 11 and minor 0.
 
 Not on my system. I've looked. Under (Sorry) RedHat 6.2, I'm using a
 SCSI CDRW, from which I installed linux. Looking in /dev using ls -al
 there is NO link to /dev/scd0 or anything like that. Plus my cd
 mounts as /dev/cdrom from /etc/fstab.
 John

-- 
"Brian, the man from babble-on"  [EMAIL PROTECTED]
Brian T. Schellenberger  http://www.babbleon.org
Support http://www.eff.org.  Support decss defendents.
Support http://www.programming-freedom.org.  Boycott amazon.com.




Re: [expert] Setting up autofs

2000-07-26 Thread Alexander Skwar

On Tue, Jul 25, 2000 at 11:15:31PM -0400, Sarang Lakare wrote:
 Then I tried to access a cd by saying ls /amnt/tab and I can't see any
 cdrom directory.. Is it created automatically or am I suppose to create it
 beforehand.

That's the only shortcoming of autofs.  You don't know which directories
maybe mounted with autofs, without looking at /etc/auto.*.

To access your cdrom, you'll have to type cd /amnt/cdrom (no tab!).  It will
then mount automagically, and the directory will also be created.  You might
get the idea that it might be wise to create symlinks pointing to that
automount dir, like ln -vs /amnt/cdrom /cdrom.  Don't do that though!  If
you list the contents of your / dir (ls -la /), this will try to mount
/amnt/cdrom, and if there's no CD in the CD-Rom, you will have to wait for
the timeout of autofs before you can go on.

 Infact, I tried creatign /amnt/cdrom and /amnt/floppy and then starting
 autofs.. but same results.. I can't see contents in /amnt/cdrom

This won't work.

To unmount your file systems before they are automatically unmounted, you
have to send the signal USR1 to all automount processes:

/usr/bin/killall -USR1 automount

Since it may be that only root can do that, I installed sudo and added this
line to /etc/sudoers:

ALL ALL=NOPASSWD:/usr/bin/killall -USR1 automount

Now every user can type

sudo /usr/bin/killall -USR1 automount

And because that's a little bit much to type, I created a small script,
called /usr/local/scripts/demount (put it somewhere in the path).  The
contents:

#!/bin/sh
sudo /usr/bin/killall -USR1 automount


Alexander Skwar
-- 
Homepage:   http://www.digitalprojects.com
Sichere Mail?   Mail an [EMAIL PROTECTED] fuer GnuPG Keys
ICQ:7328191




[fwd] Re: [expert] Setting up autofs (from: ASkwar@DigitalProjects.com)

2000-07-26 Thread Alexander Skwar

The mailing list software really get's on nerves.  I sent this mail
yesterday to capital E, and it hasn't shown up.  At least for me.
When will Dennis be back?

- Forwarded message from Alexander Skwar [EMAIL PROTECTED] -

From: Alexander Skwar [EMAIL PROTECTED]
Date: Wed, 26 Jul 2000 14:00:47 +0200
Subject: Re: [expert] Setting up autofs
To: [EMAIL PROTECTED]
User-Agent: Mutt/1.2.4i

On Tue, Jul 25, 2000 at 11:15:31PM -0400, Sarang Lakare wrote:
 Then I tried to access a cd by saying ls /amnt/tab and I can't see any
 cdrom directory.. Is it created automatically or am I suppose to create it
 beforehand.

That's the only shortcoming of autofs.  You don't know which directories
maybe mounted with autofs, without looking at /etc/auto.*.

To access your cdrom, you'll have to type cd /amnt/cdrom (no tab!).  It will
then mount automagically, and the directory will also be created.  You might
get the idea that it might be wise to create symlinks pointing to that
automount dir, like ln -vs /amnt/cdrom /cdrom.  Don't do that though!  If
you list the contents of your / dir (ls -la /), this will try to mount
/amnt/cdrom, and if there's no CD in the CD-Rom, you will have to wait for
the timeout of autofs before you can go on.

 Infact, I tried creatign /amnt/cdrom and /amnt/floppy and then starting
 autofs.. but same results.. I can't see contents in /amnt/cdrom

This won't work.

To unmount your file systems before they are automatically unmounted, you
have to send the signal USR1 to all automount processes:

/usr/bin/killall -USR1 automount

Since it may be that only root can do that, I installed sudo and added this
line to /etc/sudoers:

ALL ALL=NOPASSWD:/usr/bin/killall -USR1 automount

Now every user can type

sudo /usr/bin/killall -USR1 automount

And because that's a little bit much to type, I created a small script,
called /usr/local/scripts/demount (put it somewhere in the path).  The
contents:

#!/bin/sh
sudo /usr/bin/killall -USR1 automount


Alexander Skwar
-- 
Homepage:   http://www.digitalprojects.com
Sichere Mail?   Mail an [EMAIL PROTECTED] fuer GnuPG Keys
ICQ:7328191

- End forwarded message -

Alexander Skwar
-- 
Homepage:   http://www.digitalprojects.com
Sichere Mail?   Mail an [EMAIL PROTECTED] fuer GnuPG Keys
ICQ:7328191