# External SSD not writable

**URL:** https://dietpi.com/forum/t/external-ssd-not-writable/14298
**Category:** Troubleshooting
**Created:** [11 September 2022 16:26 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298 "2022-09-11T16:26:43Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![ParanoidNemo](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@ParanoidNemo](https://dietpi.com/forum/u/ParanoidNemo)
#### Post date: [11 September 2022 16:26 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/1 "2022-09-11T16:26:43Z")

</div>

Hi all,  
I’ve just installed dietpi on an old Raspberry Pi 1B and I’ve a little problem with my external SSD. Basically I’ve it mounted using dietpi mount utility in /mnt/data but I cannot write file inside of it. I’ve not modify anything inside fstab and it’s set to rw so I don’t know why doesn’t work. Here the entry

```auto
UUID=D08C-9B1F /mnt/data vfat noatime,lazytime,rw,nofail,noauto,x-systemd.automount

```

Any help? Thanks

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [11 September 2022 17:10 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/2 "2022-09-11T17:10:22Z")

</div>

Welcome to our community.

What app or user should write to the disk? Because it is formated using vfat, which is not a Linux file system format and limit the possibility of users that could write on it.

---

<div class="post-metadata">

### Author: ![ParanoidNemo](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@ParanoidNemo](https://dietpi.com/forum/u/ParanoidNemo)
#### Post date: [11 September 2022 17:45 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/3 "2022-09-11T17:45:54Z")

</div>

I would like to write on it with the default dietpi user and directly with aria2 (which I’ve to admit I didn’t understand if s it’s own user or not)

Thanks a lot

Small edit: I don’t mind formatting and using another filesystem if will make things easier/cleaner

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [11 September 2022 18:24 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/4 "2022-09-11T18:24:11Z")

</div>

I highly recommend to use ext4 file system format. This way you can setup appropriate file system permission to allow different users instead of root user only, like it is on vfat.

---

<div class="post-metadata">

### Author: ![ParanoidNemo](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@ParanoidNemo](https://dietpi.com/forum/u/ParanoidNemo)
#### Post date: [11 September 2022 19:06 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/5 "2022-09-11T19:06:03Z")

</div>

Ok so I’ll try to format in ext4 and see 😃

---

<div class="post-metadata">

### Author: ![ParanoidNemo](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@ParanoidNemo](https://dietpi.com/forum/u/ParanoidNemo)
#### Post date: [12 September 2022 10:28 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/6 "2022-09-12T10:28:22Z")

</div>

UPDATE: I’ve formatted it in ext4 and mounted using dietpi drive utility but still I cannot write on it as dietpi user or with aria2. I think I’m missing something?  
Fstab has the rw option so I cannot understand why only root can write on it

Edit: spelling

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [12 September 2022 11:14 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/7 "2022-09-12T11:14:47Z")

</div>

You still need to set correct permission for user and groups to allow access. A small guide on Linux file system permission can be found on [File Permissions in Linux / Unix: How to Read, Write & Change?](https://www.guru99.com/file-permissions.html)

Have a look on what is set currently

```auto
ls -la /mnt/data

```

---

<div class="post-metadata">

### Author: ![KamikazeePL](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/k/fbc32d/32.png) [@KamikazeePL](https://dietpi.com/forum/u/KamikazeePL)
#### Post date: [12 September 2022 19:47 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/8 "2022-09-12T19:47:19Z")

</div>

Try to change permissions `chmod 777 -Rv /mnt/data`

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [12 September 2022 20:13 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/9 "2022-09-12T20:13:17Z")

</div>

No don’t do this, **every** user can then read, write and execute **everything** on this drive.

You could use `chown` to make the dietpi user the owner of this drive.  
And then you can do `chmod 644 -R /mnt/data` which will give read and write to dietpi user and to every other user only read permissions. Or maybe 744, then the dietpi user can even execute stuff, if you need.

If you want to let other users write to this drive (e.g. as working directories for some software) then I would create another user group (named e.g. USB) and assign every needed user to this group and `chown` the drive to this group. If you install new software which brings new users, just add them to the group if needed.

---

<div class="post-metadata">

### Author: ![ParanoidNemo](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@ParanoidNemo](https://dietpi.com/forum/u/ParanoidNemo)
#### Post date: [13 September 2022 05:44 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/10 "2022-09-13T05:44:09Z")

</div>

Ye I’ve done just that…almost, I’ve chown the main folder to dietpi and now that user can write without problem. Only aria2 cannot write in it, but I don’t understand why due to the fact that aria2 seems to not have a user associated with it.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [13 September 2022 05:56 UTC](https://dietpi.com/forum/t/external-ssd-not-writable/14298/11 "2022-09-13T05:56:01Z")

</div>

Could you change group to dietpi as well and give write permission to the group
