1 (edited by Dassu 2016-01-11 12:29:41)

Topic: [SOLVED] GParted stuck in moving to the right

GParted live CD version: 0.24.0-2-amd64
GParted version: 0.24.0-dprl1

Partition table:
Partition     File System           Label                   Size                 Unused         Flags
/dev/sda1     NTFS         "System Reserved"    100.00 MiB      24.64   MiB       Boot
/dev/sda2     NTFS                                          39.12   MiB      256.56 MiB       
/dev/sda3     NTFS                                          406.93 GiB      22.14   GiB
<Unallocated>                                                19.62    GiB

I'm trying to move 400GB NTFS partition to the right with GParted in order to be able to increase the size of the C partition. The operation started fine and the progress was indicated. Soon maybe after an hour it got stuck at: 13.98 GB. So far I have waited for 24 hours for it to change.  iotop reports  100% usage but DISK READ/WRITE is always zero even with "-a" argument. top reports 100% CPU usage by kworker. It looks as if it is working on something but there is no way of seeing any progress.

GUI image:
http://oi63.tinypic.com/24ln9eb.jpg

iotop output:

Total DISK READ :       0.00 B/s | Total DISK WRITE :       0.00 B/s
Actual DISK READ:       0.00 B/s | Actual DISK WRITE:       0.00 B/s
  TID  PRIO  USER     DISK READ  DISK WRITE  SWAPIN     IO>    COMMAND                                                                           
 1690 be/4 root        0.00 B/s    0.00 B/s  0.00 % 99.30 % gpartedbin

top output:

top - 17:31:55 up 23:20,  6 users,  load average: 2.06, 2.03, 2.05
Tasks: 128 total,   2 running, 126 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.3 us, 25.1 sy,  0.0 ni, 49.7 id, 24.9 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  4013548 total,    74072 free,   106376 used,  3833100 buff/cache
KiB Swap:        0 total,        0 free,        0 used.  3665888 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                             
  101 root      20   0       0      0      0 R 100.0  0.0   1385:20 kworker/u8:3                                                                                        
 1397 root      20   0  166564  36260  10608 S   1.3  0.9   0:37.22 Xorg                                                                                                
 1451 user      20   0  118088  10516   8756 S   0.3  0.3   0:10.20 fluxbox                                                                                             
 1695 user      20   0  213956  20204  15936 S   0.3  0.5   0:07.72 lxterminal                                                                                          
    1 root      20   0   39320   5448   3948 S   0.0  0.1   0:03.64 systemd                                                                                             
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd                                                                                            
    3 root      20   0       0      0      0 S   0.0  0.0   0:00.26 ksoftirqd/0                                                                                         
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H                                                                                        
    6 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kworker/u8:0                                                                                        
    7 root      20   0       0      0      0 S   0.0  0.0   0:16.44 rcu_sched                                                                                           
    8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh                                                                                              
    9 root      rt   0       0      0      0 S   0.0  0.0   0:00.01 migration/0                                                                                         
   10 root      rt   0       0      0      0 S   0.0  0.0   0:00.08 watchdog/0                                                                                          
   11 root      rt   0       0      0      0 S   0.0  0.0   0:00.09 watchdog/1                                                                                          
   12 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/1                                                                                         
   13 root      20   0       0      0      0 S   0.0  0.0   0:00.04 ksoftirqd/1                                                                                         
   14 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0                                                                                         
   15 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H                                                                                        
   16 root      rt   0       0      0      0 S   0.0  0.0   0:00.02 watchdog/2                                                                                          
   17 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/2                                                                                         
   18 root      20   0       0      0      0 S   0.0  0.0   0:00.03 ksoftirqd/2                                                                                         
   20 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/2:0H                                                                                        
   21 root      rt   0       0      0      0 S   0.0  0.0   0:00.07 watchdog/3                                                                                          
   22 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/3                                                                                         
   23 root      20   0       0      0      0 S   0.0  0.0   0:00.06 ksoftirqd/3                                                                                         
   25 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/3:0H                                                                                        
   26 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 khelper                                                                                             
   27 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kdevtmpfs                                                                                           
   28 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 netns                                                                                               
   29 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 perf                                                                                                
   30 root      20   0       0      0      0 S   0.0  0.0   0:00.00 khungtaskd                                                                                          
   31 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 writeback                                                                                           
   33 root      25   5       0      0      0 S   0.0  0.0   0:00.00 ksmd                                                                                                
   34 root      39  19       0      0      0 S   0.0  0.0   0:00.00 khugepaged                                                                                          
   35 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 crypto                                                                                              
   36 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kintegrityd                                                                                         
   37 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 bioset                                                                                              

Should I continue waiting? If it is stuck what data recovery options do I have? All of the important stuff is backed up but there are still some files I wish to keep.

Edit:
I ran iostat and It has started to look like Gparted has truly hang. kB_read and kB_wrtn are both static. kB_read/s and kB_wrtn/s are altering between +-0.1 kB/s. 14012796 kB seems to be awfully close to 13.98 GB.

Linux 4.2.0-1-amd64 (debian)     01/10/2016     _x86_64_    (4 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.12    0.00   24.79   25.05    0.00   50.04

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               1.61       181.68       158.12   16100973   14012796
sdb               0.04         1.43         0.00     126462          0
loop0             0.01         0.93         0.00      82350          0

2

Re: [SOLVED] GParted stuck in moving to the right

Analysis:

  • If it's not moved in 24 hours, it's not going to.

  • The kworker process is an internal Linux kernel process.

  • It appears that GParted is waiting for the kernel to read or write the data in sda3 but the kernel hasn't responded in 24 hours.

  • You appear to be moving sda3 to the right ~19 GiB (426.55 - 406.93 = 19.62).  So far the copy has moved ~ 14 GiB.  As it's moving to the right it will have started at the end.  Then it hasn't actually got to overwriting the original file system yet, as part of the move.

Recommended actions:

  1. Cancel the operation (May not respond because of hang).

  2. Close GParted app and shutdown GParted Live CD.

  3. Ensure you have a backup of all data you care about.

  4. Boot GParted Live CD.  May see ~19 GiB of unallocated space at the end of the partition sda3.

  5. Resize sda3 partition back down to 406.93 GiB.

  6. Retry move operation again.

Thanks,
Mike

3 (edited by Dassu 2016-01-11 02:38:24)

Re: [SOLVED] GParted stuck in moving to the right

Thank you for your quick reply Mike! The solution was presented in clear and compact manner. 

I decided to force cancel the process. As you suspected GParted wouldn't cancel normally so I did a shutdown while it was still running. I booted into Windows and it appears that the sda3 is intact. I'm now proceeding to backup anything I care about.

4

Re: [SOLVED] GParted stuck in moving to the right

I just completed the process successfully by doing following steps.

  1. Booted into GParted

  2. It seemed as if sda3 had filled the previously unallocated space.

  3. GParted told me sda3 had unallocated space so ran a fix it recommended

  4. I resized and moved sda3 to the right. The step took around 8 hours. During this process iotop reported around 15 MB/s DISK WRITE.

  5. I resized sda1 (C) to fill the remaining space.

  6. Booted into Windows. Windows ran CHKDSK which probably had nothing to do with the GParted.

  7. Boot was successful and  both partitions work as suspected.

Thanks once again.

5

Re: [SOLVED] GParted stuck in moving to the right

Thanks Dassu for reporting back with the steps you used to solve the problem.  Also thanks for editing the initial post to prefix SOLVED in the title.  This can help others searching for answers to similar problems.