Question & Answer
Question
How can I make my Windows fileshare mount permanent?
Answer
The smbmount command does not make the mount permanent. If the Linux workstation is rebooted, you will have to mount the share again. To make the mount persist each time you start the Linux workstation, you can put an entry in your /etc/fstab file. The following is an example of the file contents:
- LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/hdd4 /mnt/zip100.0 auto noauto,owner,kudzu 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
//servername/sharename /mountdirectory smbfs username=windowsuserename,password=windowspassword 0 0
The last line in the file is the line that will mount the Windows share. For each share that you want to mount, add a line similar to that in your /etc/fstab file. The username and password are only needed if the Windows share is set up to require them. If a username and password are not required, replace them with the word defaults.
Note: There is no space between the comma and the word, "password." If you put a space there, the configuration will not work.
[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":null,"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Historical Number
NZ321886
Was this topic helpful?
Document Information
Modified date:
17 October 2019
UID
swg21577901