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

Bo Berglund bo.berglund at gmail.com
Tue Jan 4 20:46:17 UTC 2022


On Tue, 4 Jan 2022 10:21:16 +0000, Colin Watson <cjwatson at ubuntu.com> wrote:

>> 1) What is this dir lost+found used for and is it neccessary?
>
>It's used by fsck.  You should leave it alone.

Too bad, I have deleted it already since such a dir is nowhere else to be seen.

>> 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.
>
I am going to use the disk for media storage, which clogs up my home dir too
much. So I have made the newly created drive on this disk be mounted via fstab
and then I have used rsync like this to copy the data from my home dir to the
new drive:

sudo rsync -aXS --progress /home/bosse/Videos /mnt/data/
This took care of any permissions issues AFAICT.

Then I renamed the original Videos dir and created a symlink /home/bosse/Videos
pointing to /mnt/data/ (i.e. it is now on the big new drive).

Everything seems to work as before so the next move is to remove the renamed
Videos dir altogether.

The plan then is to use GParted to shrink the system partition on the main drive
and then create a  new partition on sda to hold /home in the free space created.
This way the system is easier to manage and all of the user files will go to the
separate partition on the same drive, whereas videos reside on the big new disk.

But since I replaced the DVD drive on this laptop with a disk carrier for the
1TB data drive I cannot any longer boot to a DVD and use gparted from that...
Have to figure out how to solve this...


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list