Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto mount smb shares at boottime thru a pcmcia networkcard
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
faz
n00b
n00b


Joined: 02 Nov 2002
Posts: 73
Location: the Netherlands

PostPosted: Sat Nov 16, 2002 4:02 pm    Post subject: Howto mount smb shares at boottime thru a pcmcia networkcard Reply with quote

Hi,

I want to mount smb shares at boottime on my notebook. These shares are on my home-LAN. I've put them in fstab but that doesn't work because pcmcia startup occurs later in the boot.

Ideally the mount occurs conditionally, that is, it only tries to mount if it finds the host. That way, the mounts occur only when I boot the machine at home.

Even more ideally, it should try this to if my machine resumes from suspend. Imagine this: I come home from work -> I insert my wireless LAN card -> I open up my notebook -> it resumes from suspend -> it mounts the shares on my home-LAN.
Back to top
View user's profile Send private message
petu
Apprentice
Apprentice


Joined: 01 Sep 2002
Posts: 269
Location: Turku, Finland

PostPosted: Sat Nov 16, 2002 4:10 pm    Post subject: Reply with quote

An easy solution would be to put mount commands to /etc/conf.d/local.start
Code:

mount -t smbfs //hostname/share -o username=user,password=password /local/mount_point/

But this solution always tries to mount your home shares and if it can't access them it gives errors :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum