I’m a new user to LINUX and I’m having trouble working out how to set it so that my extra hard drives mount themselves automatically at startup. Does anyone know how to do this easily without too much code?
Filesystems to be mounted at startup are listed in fstab.
However, that is only really useful for filesystems that are always available, not external hard drives. Best solution for those is probably to mount them on use.
You could do a bit of bash scripting to accomplish what you require.
Get the bash script to check on boot up if there are any additional devices plugged into your PC, ie. /dev/sdbX etc.
If there are then mount them appropriately to /mnt/mountHere
fstab
Filesystems to be mounted at startup are listed in fstab.
However, that is only really useful for filesystems that are always available, not external hard drives. Best solution for those is probably to mount them on use.
Bash Scripting
You could do a bit of bash scripting to accomplish what you require.
Get the bash script to check on boot up if there are any additional devices plugged into your PC, ie. /dev/sdbX etc.
If there are then mount them appropriately to /mnt/mountHere