Koozali.org: home of the SME Server

help - samba and cdrom problems

Tom Carroll

help - samba and cdrom problems
« on: March 01, 2002, 06:48:00 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

Jon Blakely

Re: help - samba and cdrom problems
« Reply #1 on: March 01, 2002, 01:51:05 PM »
Tom, there is an easier way. All you need to do re-establish the symlink from /etc/smb.conf to /etc/samba/smb.conf.

Delete /etc/samba/smb.conf

then

# ln -s /etc/smb.conf /etc/samba/smb.conf

and you should be away laughing.

Jon

Tom Carroll

Re: help - samba and cdrom problems
« Reply #2 on: March 01, 2002, 05:50:04 PM »
Jon Blakely wrote:
>
> Tom, there is an easier way. All you need to do re-establish
> the symlink from /etc/smb.conf to /etc/samba/smb.conf.
>
> Delete /etc/samba/smb.conf
>
> then
>
> # ln -s /etc/smb.conf /etc/samba/smb.conf
>
> and you should be away laughing.

You're right!  I'm now laughing at myself.  I didn't know the smb.conf under the /etc/samba directory was a symlink to the smb.conf under the /etc directory.

Thanks a million Jon!

Tom