Saturday, October 19, 2013

Automounting second disk on Ubuntu

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

P.S. You may also create your mount directory directly in the root (/) for convenience.

Welldone. 

No comments:

Post a Comment