Have you ever wondered how to mount shares permanently in Debian? That’s a question I see often on forums. In fact it’s simple once you have understood the role and syntax of the famous “/etc/fstab” file.
First, get an idea of your disks and partitions:
root@myDebian:/home/toto# df -h -T
This command provides the list of your partitions and their size, for instance
/dev/sdb2 ext4 38G 18G 18G 50% /
tmpfs tmpfs 5,9G 0 5,9G 0% /lib/init/rw
udev tmpfs 5,9G 252K 5,9G 1% /dev
tmpfs tmpfs 5,9G 0 5,9G 0% /dev/shm
/dev/sdc4 fuseblk 924G 770G 155G 84% /media/DATA
/dev/sde1 vfat 7,7G 23M 7,7G 1% /media/NIKON D90
/dev/sdb1 fuseblk 71G 59G 13G 83% /media/SSD
IF you want to mount a partition permanently, you have to edit the /etc/fstab file. The following tutorial will help you a lot.
In my case, I added:
/dev/sdc4 /media/DATA auto auto,user,noexec,rw 0 0