• How to mount vfat filesystem read/write?

    From Chris Green@21:1/5 to All on Tue Jun 10 18:30:01 2025
    I have an SD card which is vfat formatted. There's a file on it that
    I want to remove but when automounted it is read only. How can I get
    it to mount with write permission?

    This is on debian 12.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Ritter@21:1/5 to Chris Green on Tue Jun 10 19:10:01 2025
    Chris Green wrote:
    I have an SD card which is vfat formatted. There's a file on it that
    I want to remove but when automounted it is read only. How can I get
    it to mount with write permission?

    This is on debian 12.

    First, check to see if the SD card has a readonly switch. (Many
    SD cards do; microSD do not.)

    Second, try:

    (assuming that the card is mounted at /mnt/media/foobar)

    sudo mount -o remount,rw /mnt/media/foobar

    -dsr-

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to Dan Ritter on Wed Jun 11 08:30:02 2025
    Dan Ritter <dsr@randomstring.org> wrote:
    Chris Green wrote:
    I have an SD card which is vfat formatted. There's a file on it that
    I want to remove but when automounted it is read only. How can I get
    it to mount with write permission?

    This is on debian 12.

    First, check to see if the SD card has a readonly switch. (Many
    SD cards do; microSD do not.)

    Second, try:

    (assuming that the card is mounted at /mnt/media/foobar)

    sudo mount -o remount,rw /mnt/media/foobar

    Thank you, worked perfectly, I've now removed the file. It's an SD
    card from a camera and the one damaged file was stopping a program
    to copy files from there to my laptop. The camera had thrown a wobbly
    while taking a picture and left the duff file.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)