To mount your second harddrive's (hdb) third partition (number 3) to an existing directory /media/hdb3
, detecting the filesystem automatically if possible (auto) and setting it to be auto-mounted during boot (auto), read-write (rw), let normal users unmount it (users) and maybe even let anybody read and write to it (umask=022), you would write this line to your fstab:
/dev/hdb3 /media/hdb3 auto auto,rw,users,umask=022 0 0
Edit the above example to suit your needs (correct device file, mountpoint and options -- if you know the filesystem, like vfat
, you can specify it instead of the first auto
(third column). Remember that without installing special tools (and maybe even then) you cannot write to an NTFS partition (some additional software may enable you to do so, but generally it doesn't work well).
And remember to be root when editing fstab.
EDIT: Using umask=022 to let anybody access the mount point is generally a bad idea, I would only use it for usb sticks or such stuff, but they're usually auto-mounted anyway with new distributions so if ou can, don't use 022. Instead you could umask some specific user account (or use group instead) to let only that user (or group, if done that way) access the mount point.