macsat.com OpenWrt and ASUS WL Forum
March 12, 2010, 03:00:32 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: mounting mgb100 network drive on boot in linux  (Read 936 times)
0 Members and 1 Guest are viewing this topic.
baldrickturnip
Newbie
*
Offline Offline

Posts: 11


View Profile
« on: June 25, 2009, 06:50:19 AM »

I am running a MGB100 with    Version Number:S4.00c3080110

it sits on my network fine an gets accessed by windows machines no problem

I have just set up a linux machine ( P3 450 , 128meg , 40gig - mini ubuntu install via net with ssh , x11vnc , icewm , pcman and qbitorrent )

now I would like the linux box to mount the MGB100 as a network drive on boot so I can move files to/from it with pcman

so far in /etc/fstab  I have tried these combinations with no success

//10.2.2.20/                    /mnt/mgb100 smbfs  username=admin,password=password 0 0
//10.2.2.20/c                  /mnt/mgb100 smbfs  username=admin,password=password 0 0
//10.2.2.20/Storage         /mnt/mgb100 smbfs  username=admin,password=password 0 0

//10.2.2.20/                   /mnt/mgb100 ext3fs  username=admin,password=password 0 0
//10.2.2.20/c                  /mnt/mgb100 ext3fs  username=admin,password=password 0 0
//10.2.2.20/Storage         /mnt/mgb100 ext3fs  username=admin,password=password 0 0


anyone with ideas is appreciated
Logged
baldrickturnip
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #1 on: June 26, 2009, 08:06:45 AM »

also tried

10.2.2.20:/Storage  /media/nfs ext2fs  username=admin,password=password 0 0

and still no joy Sad
Logged
baldrickturnip
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #2 on: July 01, 2009, 10:32:24 AM »

I installed smb4k which allowed me to see the MGB100 along with other shares on my network , but I have not managed to mount it yet.

I have placed that problem on the backburner at the moment while I am playing with a wrt54GL , openwrt and a sd/mmc mod. Cheesy
Logged
Ernst
Full Member
***
Offline Offline

Posts: 112



View Profile
« Reply #3 on: July 01, 2009, 12:43:34 PM »

Try:

mkdir /MGB100

mount -t cifs "//IP-OF-MGB100/SHARE-ON-MGB100" /MGB100 -o
"unc=\\\\IP-OF-MGB100\\SHARE-ON-MGB100",ip=IP-OF-MGB100,user=USER-ON-MGB100,pass=PASSWORD-OF-THAT-USER,dom=workgroup

(last command all on one line)

Replace IP-OF-MGB100, SHARE-ON-MGB100, USER-ON-MGB100 and PASSWORD-OF-THAT-USER with the appropriate values.

Works fine for me.

(Requires cifs.ko to be compiled into kernel or loaded with insmod; but most linux distros will have it compiled in.)

Ernst
Logged
baldrickturnip
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #4 on: July 05, 2009, 06:44:51 AM »

thanks Ernst

created a dir in the user home dir with mkdir MGB100
sudo mount -t cifs "//10.2.2.20/Storage" ~/MGB100 -o user=admin,pass=password,dom=workgroup

that works fine

putting mount -t cifs "//10.2.2.20/Storage"  /home/user/MGB100 -o user=admin,pass=passowrd,dom=workgroup

into /etc/fstab does not.

will keep having a play and see - am happy that with your help I have progressed forward.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.363 seconds with 25 queries.