Setting up a secondary drive

Or you know, never bother kind strangers about this ever again since I’ll know what’s what. :man_shrugging:

1 Like
2 Likes
  • user - Permit any user to mount the filesystem. This automatically implies noexec, nosuid,nodev unless overridden.
  • nouser - Only permit root to mount the filesystem. This is also a default setting.
  • defaults - Use default settings. Equivalent to rw, suid, dev, exec, auto, nouser, async.

Your choice how you want it to be mounted and by whom.

:crossed_fingers:t5:

1 Like

I’d like to restrict reptiloids :dragon_face: to mount my drives… :thinking:

2 Likes

For example, for my home HDD I use the following entry in /etc/fstab:

UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /home ext4 defaults,noatime 0 2

The first three columns are obvious, it’s UUID, mountpoint, filesystem.

To find out the UUID of the drive I prefer lsblk -f instead of bklid (the readout is more clear to me, idk).

Regarding mountpoint, some people prefer to mount stuff in /mnt and then symlink it, but I just mount it directly where it needs to go. Works fine.

The filesystem I use on all of my drives is ext4, it’s good enough for me. :man_shrugging: If you are not sure which filesystem is on your drive, the same command as above, lsblk -f will let you know.

For normal drives I always use defaults,noatime as options, for dump I always use 0 and for pass (fsck order) always 2 (root drive should have 1, swap and efi 0, everything else 2).

That’s pretty much all one needs to do to add a secondary drive.

7 Likes

There is a straight forward easy method

2 Likes

It boots.

No longer shows up under devices, but the directory is there.

I assume it’s simply that.

1 Like

Sounds like it is working. Can you write data to it?

Does it show up in the output of mount or df -h

1 Like

Oh, yup. Precisely what I wanted. I guess I dragged it out pointlessly with my questions lol.

Thank you everyone! :slightly_smiling_face:


Can’t tag multiple replies as a solution so imma do Kresimirs since he did multiple edits to pretty much sum up the topic, in case anyone needs a reference in the future. But y’all were a big help!

6 Likes

To further explain how I did it. I opened Gparted, unmounted the drive, I formatted it to ext4, I remounted it and it was ready. Either I did something terribly wrong but it worked anyway or I did it right.

Do you use it to just store files/pictures ect… ?

I have a 500gig ssd not even being used, I’ve been wanting to set it up to use to store pictures on.

Yes, I use it for storage only.

1 Like

Thanks

1 Like

I used Gparted as well, still won’t let me copy/paste. I right click on a photo on my desktop & go to paste it and can’t select paste cause its greyed out.

Check in Gparted, is their a little lock icon next to the drive? If so unlock it with your root password and make sure its mounted.

click on the drive in your file manager and select mount (after the first parts)

You need to find out where it is mounted in the file system, that is it’s mount-point. Then you need to change the ownership of the mount-point from root to your user according to:

sudo chown $USER:$USER /path/to/mount/point.

1 Like

There a key next to sda1, its mounted in Gparted.

is sda1 your main partition for the OS? If so, don’t mess with that. Try also what @pebcak said, although I didn’t have to do it:
sudo chown $USER:$USER /path/to/mount/point .

I did a lsblk -f
/run/media/dad/xxxxxx-x