Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, i'm fairly certain that adding entries into fstab won't work (looking over my system, i think the reason is that my wireless network card doesn't startup until after everything else, so fstab cannot connect properly).
Yes, of course... Why have you not mentioned the wireless card before?
Quote:
As for creating this link, how do I do it? I am using Mandrake 10.2 with Gnome desktop. Having searched for gskuexec on the internet, and typing it in command terminal, I have found nothing on it. If you could please guide me through the process of creating this link it would be much appreciated.
I use kde... Try creating a desktop shortcut and looking at the options, or look through the menus for something named 'Run as different user'.
Well, the easiest way I have found to create a desktop shortcut is to right-click on the desktop and then go "create launcher". But looking through the options, I don't see how to do what i need to do. Here's a screenshot:
I just glanced through this thread, and may have missed you getting the shares automounted via fstab, but I don't think I saw anyone actually show you a working fstab entry. So, for what it's worth, here's one from my fstab
Originally posted by PTrenholme I just glanced through this thread, and may have missed you getting the shares automounted via fstab, but I don't think I saw anyone actually show you a working fstab entry.
The one I posted works, thankyouverymuch, I changed the domain(active directory) and password for obvious security reasons, but otherwise that fstab entry WORKS. I use multiple mappings with that exact syntax and it works absolutely flawlessly.
First of all, thanks for the responses. Second of all, I'm fairly certain now that adding entries into fstab won't work because the wireless network card start up AFTER the samba network shares have (attempted to) be mounted. This leaves me with only the option to create a script to mount the shares. As a note, I was using the names (rather than numbers) for "gid" and "uid". Oh and stefan_nicolau, in the "advanced" tab there is only stuff on extra languages and language packs (which doesn't really help me ) I was hearing from someone about something called "shell scripts" - would these do the trick?
Originally posted by Michael Johnson There is a /etc/rc.local script. This is the last script to execute on startup. If you add the mount commands in there it should all work.
Yep, already tried that a while back. I tried putting:
mount -t smbfs //omoikane/phobos /phobos in it, and that doesn't do anything.
mount -t cifs //192.168.0.010/phobos /phobos in it, and that doesn't do anything.
//omoikane/phobos /phobos smbfs auto,user 0 0
None of these commands have worked. The first two commands definately work when they are entered as root in the console. Which of those commands SHOULD, theoretically, work?
The first two commands are the affectively same. The first needs to be able to translate the name to an IP address, which it does because it is working. If you are using a DHCP server to alocate IP addresses the first is preferred as it will follow the allocations. The second is better if you are useing fixed IP addresses as there a time saving in not looking up the address.
I noticed your /etc/fstab line reads
//omoikane/phobos /phobos smbfs auto,user 0 0
This should mount it automatcally. Have using noauto instead of auto and then adding the commands to /etc/rc.local
Thanks for the help guys, however nothing I have tried seems to work, so I think it's time to call it quits. It is unfortunate that I did not manage to get it to work, however I think I can live without it auto-mounting. Once again, thank you ver much for the help.
Don't give up. It's been so long I forgot about a step (a significant one). I'm really sorry about that.
Create a quick script similar to the following in /etc/init.d (I named mine mountsamba)
Code:
#! /bin/sh
# mountsamba
### BEGIN INIT INFO
# Provides: mountsamba
# Required-Start: smb #this tells insserve how to order the script
# X-UnitedLinux-Should-Start:
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: mounting drives kim defined in fstab
### END INIT INFO
echo -n "Mounting /mnt/public . . ."
mount /mnt/public
echo "Mounted."
echo -n "Mounting /mnt/linuxweb . . ."
mount /mnt/linuxweb
echo "Mounted."
echo -n "Mounting /mnt/software. . ."
mount /mnt/software
echo "Mounted."
chmod mountsamba with a+rx (or you can use the numerical)
now go to /etc/init.d and run this command:
Code:
insserv mountsamba
NOW when you reboot it will mount automagically. I'm really sorry I forgot about this step. My machine was Just Working(tm) and when I had to reconfigure a few things today I noticed that script I'd created
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.