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/hda1note 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 -ato refresh the fstab. - Enter
cd /media/hda1thendirto test.
- meta4r's blog
- Login or register to post comments

Recent comments
6 weeks 20 hours ago
7 weeks 5 days ago
17 weeks 3 days ago
17 weeks 5 days ago
19 weeks 2 days ago
30 weeks 16 hours ago
31 weeks 6 days ago
32 weeks 1 day ago
34 weeks 6 days ago
37 weeks 1 day ago