Showing posts with label fstab. Show all posts
Showing posts with label fstab. Show all posts

Ubuntu: auto mount samba network shares on boot via smbfs & fstab



Increasingly all of my data is stored on a network server which allows me to access it from multiple devices/platforms and to reduce local storage for each device. Having migrated recently from Windows XP to Ubuntu 11.10 for my main desktop workstation I want to automatically mount my network based data currently hosted as a Windows share on a samba server when my Ubuntu system boots up. Here's how...

Using fstab to mount your devices/drives at boot (HP Microserver build)


All files accessible in a *nix system are arranged in one big tree, the file hierarchy, rooted at /. These files can be spread out over several devices. The mount command serves to attach the file system found on some device to the big file tree. 

The configuration file /etc/fstab contains the necessary information to automate the process of mounting partitions. In a nutshell, mounting is the process where a raw (physical) partition is prepared for access and assigned a location on the file system tree (or mount point). Here's how to manually set up fstab to automatically mount your devices and partitions at boot: