Auto mount disk on startup (Ubuntu)
sudo fdisk -l (check disk)
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9c29f0a3
所用裝置 Boot Start End Blocks Id System
/dev/sda1 * 1 3552 28531408+ 83 Linux
/dev/sda2 3553 3946 3164805 82 Linux swap / Solaris
/dev/sda3 3947 19457 124582912 7 HPFS/NTFS
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd788d788
所用裝置 Boot Start End Blocks Id System
/dev/sdb1 1 19458 156288000 7 HPFS/NTFS
edit /etc/fstab , append red part
# /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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=88f5915d-7654-402e-b7de-9dbb75b27b53 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda2 during installation
UUID=6e67ce31-882f-4a5f-aec9-8d6f23fad16f none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sda3 /media/DataSource ntfs defaults 0 0
/dev/sdb1 /media/Images ntfs defaults 0 0