Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Tom Carroll on March 01, 2002, 06:40:40 AM

Title: help - samba and cdrom problems
Post by: Tom Carroll on March 01, 2002, 06:40:40 AM
I accidently messed up my samba configuration (I think).

I was trying to expand my smb.conf file and accidently pointed the expand-template to the /etc/samba/smb.conf file.  The /etc/samba.smb.conf file is now empty except for the default mitel template header.

I thought I would check the sme disk but I can't access my CD-ROM.  I tried mount /mnt/cdrom but I keep getting an error - mount : /dev/cdrom already mounted or /mnt/cdrom busy

I tried to do an umount but it tells me it is not mounted.

After making this stupid mistake, I cannot get to my server from any of my windows clients.

I appreciate any help!

Tom
Title: Re: help - samba and cdrom problems
Post by: Jeroen on March 01, 2002, 03:47:18 PM
hmmm....isn't /etc/smb.conf the samba config file?  You could of course try to rebuild it again.
Title: Re: help - samba and cdrom problems
Post by: Tom Carroll on March 01, 2002, 09:51:16 PM
Jeroen wrote:
>
> hmmm....isn't /etc/smb.conf the samba config file?  You could
> of course try to rebuild it again.

That would not work.  What happened (according to another response in the experienced user forum) was that I told the expand-template to rebuild the /etc/samba/smb.conf which inadvertinly removed the symbolic link to the /etc/smb.conf.

I removed the /etc/samba/smb.conf file and created a symbolic link to the /etc/smb.conf file and everything works correctly again.

Thanks for the pointer though!

Tom
Title: Re: help - samba and cdrom problems
Post by: Robert Boerner on March 02, 2002, 12:05:32 AM
The CD-ROM problem is a known issue. Check out this from FAQ...

Why can't I mount my CDROM?
mkinitrd does not treat ide-scsi as a "special" SCSI module, so it forces it to be loaded in the initial ramdisk image, and it also doesn't respect the specification in /etc/modules.conf that ide-cd must be loaded before ide-scsi is.

There are several options you have to workaround this problem:

rmmod ide-scsi after bootup. CD drive will often be available via /dev/cdrom. The ide-scsi module will be loaded as required if /dev/st0 is accessed - but the ide-cd module will be loaded before it.
reconfigure lilo so that the init ramdisk is not loaded
create a new init ramdisk which loads ide-cd before it loads ide-scsi
make a new /dev/cdrom symlink which points to /dev/scd0