1 (edited by tylerecouture 2019-05-30 22:24:18)

Topic: Operation not permitted during write on /dev/sdc

I'm running GParted in Ubuntu 16.04 as root:

root@mycomputer:~# gparted
Too few arguments.
======================
libparted : 3.2
======================
Operation not permitted during write on /dev/sdc

Not sure what to do!

GParted 0.25.0 --enable-libparted-dmraid --enable-online-resize

Libparted 3.2

Create Primary Partition #1 (ext4, 7.28 GiB) on /dev/sdc  00:00:03    ( ERROR )
        
create empty partition  00:00:03    ( ERROR )
libparted messages    ( INFO )
        
Operation not permitted during write on /dev/sdc

2

Re: Operation not permitted during write on /dev/sdc

So the kernel is saying approximately that it is not appropriate to write to /dev/sdc.  Looking at the kernel messages might provide a clue as to why that would be:

dmesg

Alternatively all I can suggest is to boot into the GParted Live CD (or other rescue CD with GParted application) and try from there instead.


Technical nodes:
"Operation not permitted" is EPERM.  EPERM is approximately "that is not an appropriate thing to do" [1].  "during write on" error occurs in 3 places in the linux.c file in libparted code when writing to the device [2].

[1] Difference between EACCES and EPERM
[2] linux.c v3.2 line 1990