Friday, March 28, 2008, 3:59:56 PM, Edward Kerr wrote: > I cannot recall who actually gave me this idea, but it did not work! It > was the gentleman who was running Ubuntu from a USB stick on a Sony Vaio
It was me. > I am trying to mount my NAS at boot or log-in. > the command that works perfectly from the command line is: > sudo mount -t smbfs //192.168.1.18/data /mnt/mini -o > username=admin,password=admin,fmask=0777,dmask=0777 > (All one line) > How do I do this automatically? > Do I use FSTAB, but if so how? I would imagine you don't need to sudo, since the init scripts are run as root. You may also need to supply a full path to the mount command, since you can't guarantee what paths are setup in the boot environment. Finally you need to make sure your network is started (which if you're running it from the end of rc.local it should be, but who knows). Doing this from fstab would be a more elegant solution, but unless automount is intelligent enough to do this AFTER your network starts then you may still have an issue. I know most(all?) distros do mounts well before the network is brought up, but maybe it'll delay network based mount points until later. This all said, Google seems to offer some confidence that this technique should work. This in particular looks interesting.. http://ubuntuforums.org/showthread.php?t=103274 HTH. -- Best regards, Andy _______________________________________________ Peterboro mailing list [email protected] https://mailman.lug.org.uk/mailman/listinfo/peterboro
