2

When I followed the link Partitioning SD-Card, I get the following error message:

Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

fdisk: cannot open /dev/sdc: Read-only file system

I have given permissions for the media folder and the files inside it also. What can I do?

Jeremy Kerr
  • 26,769
  • 4
  • 48
  • 62
jenny
  • 145
  • 1
  • 5
  • 2
    Are you running fdisk as root? – Brian Sizemore Jun 19 '17 at 15:49
  • 1
    Is the drive formatted with an operating system? – NerdOfCode Jun 19 '17 at 15:51
  • 1
    Having permission to write to the filesystem on the SD card is not sufficient; you must use `sudo` or be `root` to partition a disk -- even a removable disk like an SD card. That's simply the way the permissions for partitioning work in Ubuntu. – Rod Smith Jun 20 '17 at 01:37
  • There are several things to check/do, when a memory card appears to be read-only. You can often fix the problem, but it happens that the card is damaged beyond repair. See this link for more details, https://ubuntuforums.org/showthread.php?t=2196858&p=13199297#post13199297 – sudodus Jun 20 '17 at 05:30

1 Answers1

1

It sounds like the write-protect switch on the SD card is set, so the device is read-only.

This is the little slider on the side without the missing corner. It may be marked "Lock" or "Write Protect" or something similar.

If this is the case, disable the write protect switch and try again.

Jeremy Kerr
  • 26,769
  • 4
  • 48
  • 62