[Solved] Secondary HDD Permissions Issue

So I have my second SSD that I formatted to ext4; however, when I now try to write files to it I don't have permissions to do so.

I tried running:
sudo chmod -R username:username /dev/sdb1

But that doesn't seem to do anything.

Running Ubuntu 14.10, formatted with gparted.

  1. The command is wrong. It should be chown -R user:group.
  2. You want to run it on contents of where the filesystem is mounted. Not on the device itself. Is it mounted? Does something resembling the device show up if you run mount or lsblk ?

You can run sudo mount /dev/sdb1 /mount_path to mount it if needed. Anything written to /mount_path should go on the new disk.

1 Like

The username:username did work, when I run "groups" in terminal I get " my username ... .... " and the rest of them. But you are correct in saying username:group , it just happens the group is the same on default Ubuntu install.

So I was trying to put my steam games on this secondary ssd. Even after running chown, steam was complaining that it was read only, even with chown. So I had to add the ssd to the fstab with the options "rw, users,exec,auto" and now it works!

Thanks for the help @mythicalcreature

Oh actually what I meant by wrong was that you had "chmod" instead of "chown" above. I occasionally mix those up too.

Glad things are working!