Automatically mounting a hard disk partition at boot

Get the Blockid of the hard disks

[email protected]:~$ sudo blkid
[sudo] password for droidzone:
/dev/sda1: LABEL="Windows7" UUID="10909D8B909D77C4" TYPE="ntfs"
/dev/sda2: UUID="f3606d11-5fbc-4d31-846a-cc812e4cd53f" TYPE="ext4"
/dev/sda5: UUID="4cc50c11-af2a-4352-8dfa-c967deed997a" TYPE="swap"
/dev/sr1: LABEL="UDF Volume" TYPE="udf"
/dev/sdb1: LABEL="WindowsXP" UUID="E6BCC858BCC82541" TYPE="ntfs"
/dev/sdb2: LABEL="Windows8" UUID="94C0680DC067F440" TYPE="ntfs"
/dev/sdb5: LABEL="STORAGE" UUID="642C-370E" TYPE="vfat"
/dev/sdb6: LABEL="userdata" UUID="3ad6396d-9ab2-4435-a850-e03501810734" TYPE="ext4"
/dev/sdb7: LABEL="gentoo" UUID="f8960404-f785-464e-9c43-06777c679153" TYPE="ext4"
/dev/sdb8: UUID="ca39c78d-85ee-4db1-8589-45beb6cc62e8" TYPE="swap" [/code]

Create the mount point for the disk

sudo mkdir -p /hdd/windows7[/code]

Edit /etc/fstab as root

kdesudo kate /etc/fstab[/code]

# /etc/fstab: static file system information.
#
# Use 'blkid' 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 nodev,noexec,nosuid 0 0
# / was on /dev/sda2 during installation
UUID=f3606d11-5fbc-4d31-846a-cc812e4cd53f / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=4cc50c11-af2a-4352-8dfa-c967deed997a none swap sw 0 0
# swap was on /dev/sdb8 during installation
UUID=ca39c78d-85ee-4db1-8589-45beb6cc62e8 none swap sw 0 0
UUID=10909D8B909D77C4 /hdd/windows7 auto user,rw,auto,exec,nobootwait 0 0[/code]

The line added is:

UUID=10909D8B909D77C4 /hdd/windows7 auto user,rw,auto,exec,nobootwait 0 0[/code]