Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 2 [3] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: mounting windows shares< Next Oldest | Next Newest >
dreamcarrior Offline





Group: Members
Posts: 17
Joined: Nov. 2005
Posted: Nov. 29 2005,19:27 QUOTE

I figured myself. I tried to load the network mount automatically during each startup using daemon on top of /mnt/hda3/mnt. This means that I would have to mount /dev/hda3 before I could mount the network mounts. Since I was using daemon, and the daemon did not check the mount point, I ended up with mounting nothing.

So I mount the network shares with LinNeighborhood, and export the mountscript. Then I modified the mountscript so that the mountpoints will be restored before network mounting.

The mountscript looks like the following,

#! /bin/sh

# SMB mount script
# created by LinNeighborhood

mkdir /home/dsl/mnt
mkdir /home/dsl/mnt/MODELINGCENTER
mkdir /home/dsl/mnt/RELAXATION
mkdir /home/dsl/mnt/MODELINGCENTER/Data160G
mkdir /home/dsl/mnt/MODELINGCENTER/Data80G
mkdir /home/dsl/mnt/RELAXATION/F
mkdir /home/dsl/mnt/RELAXATION/Incoming

smbmount //MODELINGCENTER/Data160G /home/dsl/mnt/MODELINGCENTER/Data160G/ -o username=username%password,fmask=666,dmask=777,uid=1001,gid=50,ip=192.168.0.102,debug=0,workgroup=WORKGROUP
smbmount //MODELINGCENTER/Data80G /home/dsl/mnt/MODELINGCENTER/Data80G/ -o username=username%password,fmask=666,dmask=777,uid=1001,gid=50,ip=192.168.0.102,debug=0,workgroup=WORKGROUP
smbmount //RELAXATION/F /home/dsl/mnt/RELAXATION/F/ -o username=username%password,fmask=666,dmask=777,uid=1001,gid=50,ip=192.168.0.100,debug=0,workgroup=WORKGROUP
smbmount //RELAXATION/Incoming /home/dsl/mnt/RELAXATION/Incoming/ -o username=username%password,fmask=666,dmask=777,uid=1001,gid=50,ip=192.168.0.100,debug=0,workgroup=WORKGROUP

Then I add the mountscript in /opt/bootlocal.sh to mount the network share during boot.


--------------
1.. Dell 700m
1.8GHz, 2GB RAM, 100GB HD, Fedora 4, Gnome
2. P-4 3.06 GHz, 3GB RAM, ATA160GB HD, SATA 500/500 GB RAID1, Fedora 6, Gnome
Back to top
Profile PM YIM 
10 replies since Oct. 27 2005,23:12 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 2 [3] >/
reply to topic new topic new poll
Quick Reply: mounting windows shares

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code