I am trying to:mount my 2TB external USB hard drive as my home directory at /home/peterensure that the home directory is owned by me (not root)do all this automatically at bootupCurrently:my drive is formatted to ext4my drive is emptyI am running debian 7I can reformat to another filesystem type if necessary, but I want to use the full 2TB on the drive.The following fstab line mounts the drive incorrectly owned by root:UUID=xxxx /home/peter ext4 nodev,nosuid 0 2How can I mount the drive so that it is owned by peter (that's my login user on the PC)?
fstab mount drive as my /home
permissions;mount;fstab
the solution was simply to chown the home directory after the mount took place:$ chown peter:peter /home/peterwhile using the following fstab settings:UUID=xxxx /home/peter ext4 defaults 0 2this hadn't worked before with other fstab settings, but now /home/peter remains owned by peter each time i restart (previously root kept taking ownership of this directory on restart).