Last Updated: February 25, 2016
·
467
· ajeliuc

Automounting second disk on Ubuntu

Originally posted in my blog post http://ajeliuc.blogspot.com/2013/10/automounting-second-disk-on-ubuntu.html

Sometimes we need to add second hard drive on our Ubuntu. And do not want to mount it after each loading.

Open console Super+T and sudo -s

  • List your drives and find id of needed - fdisk -l
  • For example our is /dev/sdb1; cd /mnt && mkdir data && chmod 777 data
  • Edit fstab - vim /etc/fstab; Add new line /dev/sdb1 /mnt/data auto defaults 0 0
  • mount -a

Welldone.