Linux machines are aware in the case of security. This extra security may sometimes become a headache for simple linux users.
For example, if u have separate partitions or hard drives , every time you have to mount those when required.The time-saving solution is to mount such media permanently.
Firstly to tell Debian where to find the mount and where you want it mounted. Secondly, to create the folder within Debian’s recognised file structure to house the mounted media. After you perform this configuration, your backup folder on a secondary disk can be accessed from within your /home/user folder.
1. Open the fstab file that controls your mounts:
2.Find out the name of partition that you are planning to mount . It lists recognized partition tables:
3.At the bottom of the file, for each partition or drive you wish to mount forever, paste:
/dev/sdb1 /mnt/backup_drive ext3 users,noatime,auto,rw,nodev,exec,nosuid 0 0
• /dev/sdb1 – media to mount
• /mnt/backup_drive – location to mount to with a friendly name
• ext3 – filesystem
• users – allow all users, alternatively use user
• noatime – don’t waste resources recording last access time or, if you want this info, change to atime.
• auto – mount on boot
• rw – read write access
• nodev – prevents unauthorized device mounts
• exec – execute programmes from disk
• nosuid – do not allow set-user-identifier
4. Save the file.
5. Now create the folder location for the mount:
mkdir -p /mnt/backup_drive
6.Reboot your system to see the Debian automatically mounting the device @ boot time.