Hi
I have a frustrating problem with SMB shares and Kubuntu 7.04 Feisty Fawn.
I don't mind editing conf files and am familiar with permissions, so not totally new to Kubuntu but this is baffling me. I tend only to know what I have had to read up on, usually thanks to related problems.
I have network attached storage on 10.0.0.x (x=is static number for the IP). Two shares for it:
smb://10.0.0.x/HOUSEHOLD
No user name and password for above.
smb://10.0.0.x/DATA
User=letssayme
Password=letmein
(no not really those login values but good for the example)
For the sake of this post lets day my system login name is feisty.
I want to mount these at startup as:
/media/smbhousehold
/media/smbdata
Here is what I have tried and where I am stuck.
First what is installed? I searched for 'smb' with an installed filter in Adept Manager.
Then I created the directories in /media/ and created a file to store the login details and allowed root to read it only.
So now we have:
Obviously there is more contained in /media/ but that is all thats needed for this example.
So to check it works:
Wonderful, up comes the icon in Storage media folder, desktop. I can use it, have full read/write access. Bril.
So now off to fstab
Added these lines:
Next a full restart the of the system.
Now the problem.
On system startup there is a delay after logging in. The background doesn't show and after 30 seconds or so the desktop loads as normal. Going to Storage Media folder and it hangs for 30 seconds whilst the message on the status bar says 'Stalled'.
So I go into terminal to take a look at the /media folder. When I ls -la it it takes another 30 seconds or so but gives me:
Oo thats not good.
So where am I going wrong?
What have I tried already?
Ok well I can get the folders back by using the following combination but the smbumount can take a long time before completing:
Once back with me, the test mount command (above in post) works without problem.
So does:
But when the system is restarted, it doesn't. Can Kubuntu only handle local drives in fstab?
I have also tried different ownerships of the directories including:
root:feisty, feisty:root and once feisty:feisty
I think I tried 777 as permissions to no avail too.
I also tried:
as the line in fstab. All to no avail.
If I had to guess it would seem that Kubuntu tries to mount the entries in fstab before it has the necessary network support loaded. But thats only a newbie guess.
Can anyone help with the above problems? Can they please let me know if I've done something wrong and how to correct it.
Perhaps the best way is a startup script instead, to manually mount the shares?
If so how do I do one? Can anyone give me step by step. I don't even know how to turn a text file into a .sh script. So step by step is needed.
I have read around and, no, the 'msdfs proxy' bug in smb.conf is not related to this problem. I want to access shares not share anything on my box. The 'msdfs proxy' line the bug mentions is not present in my smb.conf.
Well, I'm sure I'm not the only one. Here's hoping someone can help. Thanks in advance.
Regards,
Matt
I have a frustrating problem with SMB shares and Kubuntu 7.04 Feisty Fawn.
I don't mind editing conf files and am familiar with permissions, so not totally new to Kubuntu but this is baffling me. I tend only to know what I have had to read up on, usually thanks to related problems.
I have network attached storage on 10.0.0.x (x=is static number for the IP). Two shares for it:
smb://10.0.0.x/HOUSEHOLD
No user name and password for above.
smb://10.0.0.x/DATA
User=letssayme
Password=letmein
(no not really those login values but good for the example)
For the sake of this post lets day my system login name is feisty.
I want to mount these at startup as:
/media/smbhousehold
/media/smbdata
Here is what I have tried and where I am stuck.
First what is installed? I searched for 'smb' with an installed filter in Adept Manager.
Code:
libsmbclient smbclient smbfs xsmbrowser
Code:
# cd /media # sudo mkdir smbdata # sudo mkdir smbhousehold # sudo touch .smbdatapasswd # sudo echo username=letssayme > .smbdatapasswd # sudo echo password=letmein >> .smbdatapasswd # sudo chmod 600 .smbdatapassword
Code:
# ls -la /media/ drwxr-xr-x 2 root root 4096 2007-05-21 10:35 smbdata -rw------- 2 root root 34 2007-05-21 10:35 .smbdatapasswd drwxr-xr-x 2 root root 4096 2007-05-21 10:35 smbhousehold
So to check it works:
Code:
sudo smbmount //10.0.0.x/DATA /media/smbdata -o username=letssayme,password=letmein,uid=1000,mask=000
So now off to fstab
Code:
# sudo pico -w /etc/fstab
Code:
//10.0.0.x/HOUSEHOLD /media/smbhousehold smbfs auto,uid=1000,umask=000,rw,users 0 0 //10.0.0.x/DATA /media/smbdata smbfs auto,credentials=/media/.smbdatapasswd,rw,users 0 0
Now the problem.
On system startup there is a delay after logging in. The background doesn't show and after 30 seconds or so the desktop loads as normal. Going to Storage Media folder and it hangs for 30 seconds whilst the message on the status bar says 'Stalled'.
So I go into terminal to take a look at the /media folder. When I ls -la it it takes another 30 seconds or so but gives me:
Code:
ls -la /media/ ?--------- ? ? ? ? ? smbdata -rw------- 1 root root 34 2007-05-19 14:18 .smbdatapasswd ?--------- ? ? ? ? ? smbhousehold
So where am I going wrong?
What have I tried already?
Ok well I can get the folders back by using the following combination but the smbumount can take a long time before completing:
Code:
# cd /media # sudo smbumount /media/smbdata # sudo smbumount /media/smbhousehold # sudo chmod 755 smbdata # sudo chmod 755 smbhousehold # sudo chown root:root smbdata # sudo chown root:root smbhousehold
So does:
Code:
# sudo mount -a
I have also tried different ownerships of the directories including:
root:feisty, feisty:root and once feisty:feisty
I think I tried 777 as permissions to no avail too.
I also tried:
Code:
//10.0.0.x/DATA /media/smbdata smbfs auto,credentials=/media/.smbdatapasswd,rw,users 0 0
If I had to guess it would seem that Kubuntu tries to mount the entries in fstab before it has the necessary network support loaded. But thats only a newbie guess.
Can anyone help with the above problems? Can they please let me know if I've done something wrong and how to correct it.
Perhaps the best way is a startup script instead, to manually mount the shares?
If so how do I do one? Can anyone give me step by step. I don't even know how to turn a text file into a .sh script. So step by step is needed.
I have read around and, no, the 'msdfs proxy' bug in smb.conf is not related to this problem. I want to access shares not share anything on my box. The 'msdfs proxy' line the bug mentions is not present in my smb.conf.
Well, I'm sure I'm not the only one. Here's hoping someone can help. Thanks in advance.
Regards,
Matt
Comment