[CentOS] Re: CentOS 4 Stalling at boot time after mapping a remote samba drive.

John Summerfield debian at herakles.homelinux.org
Thu Mar 15 20:40:18 UTC 2007


Jason Ross wrote:
> 
> Scott Silva wrote:
> 
>>John Summerfield spake the following on 3/14/2007 5:51 PM:
>>  
>>
>>>Jason Ross wrote:
>>>    
>>>
>>>>John Summerfield wrote:
>>>>
>>>>      
>>>>
>>>>>Jason Ross wrote:
>>>>>
>>>>>        
>>>>>
>>>>>>\\10.0.0.11\users  /backup  smbfs  defaults  0  0
>>>>>>          
>>>>>>
>>>>>Change all your backslashes to two backslashes.
>>>>>
>>>>>Why smbfs and not cifs?
>>>>>
>>>>>
>>>>>        
>>>>>
>>>>There is a samba box that holds all the windows shares on it. It also
>>>>runs a backup on the samba shares.
>>>>The boss wanted the email server to be backed up to a folder on the
>>>>samba share.
>>>>      
>>>>
>>>Why smbfs and not cifs?
>>>
>>>    
>>>
>>If they are both linux servers, why not nfs?
>>
>>
>>  
>>
> I'd like too, I am relatively new to this company (8 mos) and the only other 
> tech has given up trying.
> Management's only contact with Linux is with samba. They are dead set on having 
> everything samba.
> I have a medium amount of experience with Linux administration so I cannot come 
> up with an explanation convincing enough for them.
> 
> PS: can I set the NFS to point to a sub folder in the samba share?
> Jason

The reason I asked Why smbfs and not cifs? is that the latter is newer.

Neither supports POSIX semantics, and I did have problems with Samba 
shares last time I accessed them regularly on Linux. On the basis of 
"once bitten, twice shy" I've not done so again for many years:-) Since 
Samba 1.x.

NFS sharing is 'the one true way' for Linux and Unix
Here are some configured shares:
[summer at bilby ~]$ ssh ns cat /etc/exports  | grep /var/local/mirrors | 
grep -v Linux
/var/local/mirrors/linux/tmp 192.168.0.0/16(rw,no_root_squash,async)
/var/local/mirrors 192.168.0.0/16(ro,no_root_squash,async)
[summer at bilby ~]$
Here is me accessing one:
[summer at bilby ~]$ ls /net/ns//var/local/mirrors
total 60
drwxr-xr-x   6 root  4096 Feb  4 07:19 Windows
drwxr-xr-x   3 root  4096 Apr 12  2006 drdos
drwxr-sr-x  22 root  4096 Dec 17 09:30 linux
drwx------   2 root 16384 Aug  3  2006 lost+found
drwxrwxrwt   2 root  4096 Feb 25 00:35 tmp
drwxr-xr-x   4 root  4096 Dec 31  2005 unix
[summer at bilby ~]$
There's how I configured the client to automatically mount when required:
[summer at bilby ~]$ grep net /etc/auto.master
/net    /etc/auto.net
[summer at bilby ~]$
Here's another way to configure nfs mounts:
[summer at bilby ~]$ grep nfs /etc/fstab
kookaburra.demo.lan:/var/local /var/local  nfs             auto
ns.demo.lan:/var/local/mirrors/linux/RHEL/ /mnt/nfs        nfs auto,ro
[summer at bilby ~]$

Beware linewrap.

This mounts a Windows share:
mount.cifs  \\\\coco\\profile /mnt/coco/ --verbose\
  -o \ 
user=administrator,password=bigfatsecret,ip=10.0.0.253,domain=class.lan


-- 

Cheers
John

-- spambait
1aaaaaaa at coco.merseine.nu  Z1aaaaaaa at coco.merseine.nu

Please do not reply off-list



More information about the CentOS mailing list