Auto-mounting hard drive with /etc/fstab

Sen, 04/30/2012 - 09:48 -- bonny
hard disk

I've been trying to auto mount my hard drive from the Window's partition so that it would be mounted every time I start Ubuntu, and everything I've seen says use the /etc/fstab file, but mine looks nothing like they show in these tutorials. Can anyone point me in the right direction on how to do this?

Heres what my /etc/fstab looks like.

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
#
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=ae6e05b2-bfaf-41ac-9ca0-a3cc7138df3a / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=d6bf38b2-d806-4226-b53d-f6969c5e7ece none swap sw 0 0
/dev/sdb1 /media/sdb1 vfat defaults 0 0

Can you post the following outputs

$ sudo fdisk -l
$ sudo blkid
$ df

Contoh fstab :

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
#
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda3 during installation
UUID=a63db186-f692-4548-a830-934bdc4859ed / ext4 errors=remount-ro 0 1
# swap was on /dev/sda2 during installation
UUID=c4697850-b496-4fd2-a38f-ec524e063010 none swap sw 0 0
#
# mount network drive
//10.10.1.2/master\040data/ /home/bonny/fileserver cifs credentials=/home/bonny/.smbpwd,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
//10.10.1.2/user\040bonny/ /home/bonny/user\040bonny/ cifs credentials=/home/bonny/.smbpwd,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
//10.10.1.2/data01 /home/bonny/data01 cifs credentials=/home/bonny/.smbpwd,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
//10.10.1.2/data02 /home/bonny/data02 cifs credentials=/home/bonny/.smbpwd,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
# //10.10.1.85/multimedia /media/ventoz cifs guest,uid=1000,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
//10.10.4.4/it /home/bonny/it cifs credentials=/home/bonny/.smbpwd,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
//10.10.4.4/PublicFiles /home/bonny/publicfiles cifs guest,uid=1000,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
//10.10.4.4/repo /home/bonny/repository cifs credentials=/home/bonny/.smbpwd,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
# mount ntfs partition
/dev/sdb1 /media/Desain ntfs defaults,nls=utf8,umask=007,gid=46,file_mode=0777,dir_mode=0777 0 0
/dev/sdb2 /media/Gallery ntfs defaults,nls=utf8,umask=007,gid=46,file_mode=0777,dir_mode=0777 0 0

Tags: