Problem configuring a new 1TB drive on Ubuntu 20.04.3 using fstab

Colin Watson cjwatson at ubuntu.com
Tue Jan 4 10:21:16 UTC 2022


On Tue, Jan 04, 2022 at 08:21:15AM +0100, Bo Berglund wrote:
> 1) What is this dir lost+found used for and is it neccessary?

It's used by fsck.  You should leave it alone.

> 2) In order to write files to this new disk I must use sudo, how can I allow a
> regular user (me) to also create files and dirs here?
> Do I have to sudo create a directory first and chmod it to 777?

Don't chmod 777.  More usually you'd either create a subdirectory that's
owned by your normal non-root user, or just chown /mnt/data to your
normal non-root user, depending on how you plan to use the filesystem in
question.

-- 
Colin Watson (he/him)                              [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list