Edit fstab to mount partition at startup

This example mounts the first partition of the first disk so it is available whenever you start your computer. Edgy does this by default but technique is useful for Dapper or Breezy or other distros.

  • First create a mount point for the drive sudo mkdir /media/hda1 note that you can mount the device anywhere and call it whatever you want. It may be a good idea to stick with the conventional locations of either /mnt/ or /media/. The hda1 part means hard drive "a" partition "1"
  • Open a terminal and back up the existing fstab file sudo cp /etc/fstab /etc/fstab.bak
  • Edit the fstab sudo kate /etc/fstab
  • next, add this line to the fstab file assuming your hda1 filesystem is ntfs: /dev/hda1 /media/hda1 ntfs defaults 0 0
  • In the terminal again, enter sudo mount -a to refresh the fstab.
  • Enter cd /media/hda1 then dir to test.