mount samba from linux

Do you have a linux box or you have booted of a live cd and you want to mount a samba share here is the command(s) for it.

#smbmount //ipaddress/share /mnt/moountfolder -o username=username,password=password


#mount -t cifs -o username=username,password=password //ipaddress/share /mnt/mountfolder

Any of the two methods above should work. You can use the name of machine instead of ip address if you want, and no space between username and password else you will get an error.