1 (edited by eiger3970 2013-07-10 05:17:42)

Topic: GParted gives error: Input/output error during write on /dev/sdc

Hi, first thanks to GParted, which is handy to use.

I am trying to use GParted to make my USB Flash Disk size increase from 105 MB to 32 GB which is the size it should be.

I connect the USB Flash drive to my Linux computer and the device is recognised.


$ sudo fdisk -l, gives the results:
Disk /dev/sdc: 31.9 GB, 31914983424 bytes
224 heads, 19 sectors/track, 14646 cylinders, total 62333952 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005c5cc
   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048      206847      102400    b  W95 FAT32


$ gparted:
Shows the following when I select the USB Flash drive under /dev/sdc (29.72 GiB)
Partition       File System     Mount Point                                   Size               Used             Unused         Flags
/dev/sdc1     fat16                  /media/linuxmint/ACA7-A4C0     100.00 MiB     63.81 MiB    36.19 MiB
unallocated                                                                                   29.62 GiB       ---                 ---


In GParted GUI I then right click my USB's unallocated > New >
Free space preceding (MiB): 0
New size (MiB): 30336
Free space following (MiB): 0
Align to: MiB
Create as: Primary Partition
File system: ext2
Label:
> Add > Apply All Operations > Apply.


GParted error says:
Libparted Bug Found! (as superuser)
Input/output error during write on /dev/sdc
I select Ignore.


GParted error then says:
Libparted Bug Found! (as superuser)
Error opening /dev/sdc: No such file or directory
I select Cancel.


GParted error then says:
(as superuser)
An error occurred while applying the operations
See the details for more information.
IMPORTANT
If you want support, you need to provide the saved details!
See http://gparted.org/save-details.htm for more information.


Here are GParted's saved details:
GParted 0.12.1 --enable-libparted-dmraid

Libparted 2.3
Create Primary Partition #1 (ext2, 29.62 GiB) on /dev/sdc  00:03:21    ( ERROR )
        
create empty partition  00:03:21    ( ERROR )
libparted messages    ( INFO )
        
Input/output error during write on /dev/sdc
Error opening /dev/sdc: No such file or directory

========================================


Any suggestions appreciated :-)

2

Re: GParted gives error: Input/output error during write on /dev/sdc

From the error message it sounds as if the connection to device /dev/sdc was lost at some point.

I suggest trying to ensure that the USB flash drive is securely plugged in.  Also it can help to unmount all partitions on the USB flash drive before editing the partition table.

You might consider using a newer version of GParted too.  The latest version is 0.16.1 and is included on GParted Live.