You are not logged in.

#1 2019-06-06 15:24:41

aryan-gupta
Member
Registered: 2019-03-09
Posts: 1

sync and umount hangs

I am currently trying to flash the ARM version of Arch linux onto a flashdrive using this tutorial: https://archlinuxarm.org/platforms/armv … /odroid-n2
I am able to format the USB drive, and mount it and extract the image into the mounted directory (using bsdtar). However when I try to unmount the drive or run sync. I get this error in dmesg

[ 1228.804820] INFO: task sync:3947 blocked for more than 122 seconds.
[ 1228.804825]       Not tainted 5.1.7-arch1-1-ARCH #1
[ 1228.804826] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1228.804830] sync            D    0  3947   3637 0x00000080
[ 1228.804836] Call Trace:
[ 1228.804855]  ? __schedule+0x30b/0x8b0
[ 1228.804862]  ? wb_queue_work+0x90/0x100
[ 1228.804868]  ? preempt_count_add+0x79/0xb0
[ 1228.804875]  ? default_file_splice_write+0x20/0x20
[ 1228.804880]  schedule+0x32/0x80
[ 1228.804886]  wb_wait_for_completion+0x59/0x90
[ 1228.804894]  ? wait_woken+0x80/0x80
[ 1228.804899]  sync_inodes_sb+0xd8/0x290
[ 1228.804908]  ? default_file_splice_write+0x20/0x20
[ 1228.804914]  iterate_supers+0x95/0xe0
[ 1228.804921]  ksys_sync+0x40/0xb0
[ 1228.804927]  __ia32_sys_sync+0xa/0x10
[ 1228.804934]  do_syscall_64+0x5b/0x180
[ 1228.804941]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 1228.804947] RIP: 0033:0x7f722fa23b8b
[ 1228.804960] Code: Bad RIP value.
[ 1228.804963] RSP: 002b:00007fffbc55c0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
[ 1228.804968] RAX: ffffffffffffffda RBX: 00007fffbc55c218 RCX: 00007f722fa23b8b
[ 1228.804970] RDX: 00007f722faf2e01 RSI: 0000000000000000 RDI: 00007f722fab7b90
[ 1228.804971] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
[ 1228.804973] R10: 000055c36d2e5010 R11: 0000000000000246 R12: 0000000000000000
[ 1228.804975] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 1351.684331] INFO: task sync:3947 blocked for more than 245 seconds.
[ 1351.684338]       Not tainted 5.1.7-arch1-1-ARCH #1
[ 1351.684340] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1351.684343] sync            D    0  3947   3637 0x00000080
[ 1351.684351] Call Trace:
[ 1351.684373]  ? __schedule+0x30b/0x8b0
[ 1351.684380]  ? wb_queue_work+0x90/0x100
[ 1351.684387]  ? preempt_count_add+0x79/0xb0
[ 1351.684395]  ? default_file_splice_write+0x20/0x20
[ 1351.684401]  schedule+0x32/0x80
[ 1351.684407]  wb_wait_for_completion+0x59/0x90
[ 1351.684416]  ? wait_woken+0x80/0x80
[ 1351.684422]  sync_inodes_sb+0xd8/0x290
[ 1351.684432]  ? default_file_splice_write+0x20/0x20
[ 1351.684440]  iterate_supers+0x95/0xe0
[ 1351.684447]  ksys_sync+0x40/0xb0
[ 1351.684455]  __ia32_sys_sync+0xa/0x10
[ 1351.684463]  do_syscall_64+0x5b/0x180
[ 1351.684470]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 1351.684477] RIP: 0033:0x7f722fa23b8b
[ 1351.684491] Code: Bad RIP value.
[ 1351.684494] RSP: 002b:00007fffbc55c0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
[ 1351.684499] RAX: ffffffffffffffda RBX: 00007fffbc55c218 RCX: 00007f722fa23b8b
[ 1351.684502] RDX: 00007f722faf2e01 RSI: 0000000000000000 RDI: 00007f722fab7b90
[ 1351.684504] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
[ 1351.684506] R10: 000055c36d2e5010 R11: 0000000000000246 R12: 0000000000000000
[ 1351.684508] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

This error repeats about 4 or 5 times then after 5 to 10 min it finally finishes and I can unmount the drive. Do you know why this happens? If I try to exit the terminal or kill the sync/umount command, it corrupts my flashdrive.
The flashdrive is formatted ext4
uname -a: Linux boson 5.1.7-arch1-1-ARCH #1 SMP PREEMPT Tue Jun 4 15:47:45 UTC 2019 x86_64 GNU/Linux
Any help would be appreciated. Thank you

Offline

#2 2019-06-06 15:38:11

seth
Member
Registered: 2012-09-03
Posts: 51,240

Re: sync and umount hangs

The drive is still writing. Probably not gonna happen if you extract the image, leave it alone for 15 minutes and then try to umount it?

Offline

Board footer

Powered by FluxBB