Fedora Linux Support Community & Resources Center
  #1  
Old 10th January 2017, 02:55 AM
liderbug Offline
Registered User
 
Join Date: Feb 2005
Posts: 242
linuxfedorafirefox
dd never terminates

FC22 up to date
dd --version
dd (coreutils) 8.23
sdf is a microSD

When I run: dd if=file.img of=/dev/sdf
I can "kill USR1 [pid] and watch it run but when everything is written it just hangs. Doesn't end, just sits there.
I ran dd if=xxx | pv | dd of=/dev.... 2 hours later "if=" is gone, "pv" is gone, "of=" is still running. After I kill the process and run "fdisk -l /dev/sdf" the output is fine.
Any thoughs?
Thanks
__________________
1 hexa core amd 1090T, 4 GB RAM, 3.1.1-1.fc16.x86_64
hardinfo blowfish = 2.07

Last edited by liderbug; 10th January 2017 at 03:02 AM.
Reply With Quote
  #2  
Old 10th January 2017, 09:26 AM
flyingdutchman Online
Registered User
 
Join Date: Jan 2015
Location: Al Ain, UAE
Posts: 696
linuxfedorafirefox
Re: dd never terminates

It sounds like a bs problem. That is 'block size' not the other use of bs...
__________________
--
Have fun!
http://www.aeronetworks.ca
Reply With Quote
  #3  
Old 10th January 2017, 02:06 PM
liderbug Offline
Registered User
 
Join Date: Feb 2005
Posts: 242
linuxchrome
Re: dd never terminates

dd if=opi_android_gapps.img of=/dev/sdf bs=4M
__________________
1 hexa core amd 1090T, 4 GB RAM, 3.1.1-1.fc16.x86_64
hardinfo blowfish = 2.07
Reply With Quote
  #4  
Old 10th January 2017, 05:20 PM
flyingdutchman Online
Registered User
 
Join Date: Jan 2015
Location: Al Ain, UAE
Posts: 696
macosfirefox
Re: dd never terminates

The block size seems too big to me. I did some tests years ago and found that a bs=100k was fastest. So maybe try a smaller size and see what happens.
__________________
--
Have fun!
http://www.aeronetworks.ca
Reply With Quote
  #5  
Old 10th January 2017, 07:28 PM
liderbug Offline
Registered User
 
Join Date: Feb 2005
Posts: 242
linuxfirefox
Re: dd never terminates

# dd if=and7rpi2016-08-25.img bs=100K | pv | dd of=/dev/sdf bs=100K
77619+1 records in.91MiB/s] [ <=> ]
77619+1 records out
7948206080 bytes (7.9 GB) copied, 1059.24 s, 7.5 MB/s
7.4GiB 0:17:39 [7.16MiB/s] [ <=> ]

and never goes back to prompt.
# ps -ef | egrep "dd|pv"

root 14416 14344 1 10:58 pts/4 00:00:15 dd of=/dev/sdf bs=100K
----------------------------------
and in the dd window: ctrl C nothing ctrl CCCCCCCCCCCCCCC ctrl z czczczcz
nothing. Remove SD card ... nothing. Unplug the All-In_One box

Stopped dd if=and7rpi2016-08-25.img bs=100K | pv | dd of=/dev/sdf bs=100K
and I've got my prompt back. with a stopped job "of="

100K, 4M seemed to take the sames time.
__________________
1 hexa core amd 1090T, 4 GB RAM, 3.1.1-1.fc16.x86_64
hardinfo blowfish = 2.07
Reply With Quote
  #6  
Old 12th January 2017, 05:48 PM
TruboXL Offline
Registered User
 
Join Date: Apr 2016
Location: Kota Tinggi, Johor, Malaysia
Age: 21
Posts: 156
windows_98_nt_2000firefox
Re: dd never terminates

maybe add status=progress just to see what exactly is happening?

damn creepy some devices led blink like nuts while terminal show nothing...
__________________
Laptop Specs
https://forums.fedoraforum.org/showpost.php?p=1760122&postcount=528

Website
https://github.com/truboxl
Reply With Quote
  #7  
Old 14th January 2017, 08:03 AM
djl47 Offline
Registered User
 
Join Date: Jun 2014
Location: California
Posts: 337
linuxfedorafirefox
Re: dd never terminates

What happens if you enter a sync command after the ps -ef command?
__________________
HP ZBook 17 G2 i7 32GB Toshiba 512GB SSD Fedora 26 (Tesseract)
HP ZBook 17 G2 i7 16GB Corsair Force LX 256GB SSD Fedora 26 (Antares)
Reply With Quote
Reply

Tags
terminates

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pgadmin3 terminates immediately merkava Programming & Packaging 2 30th August 2010 09:24 PM
VNC Server terminates all when Viewer Closes Zabby Servers & Networking 0 16th February 2007 12:28 PM
Check For Fedora Installation, installation terminates Unlimited Installation, Upgrades and Live Media 5 17th July 2005 10:37 PM
VPN connects then terminates with fc3 vifa84 Servers & Networking 0 5th July 2005 01:52 AM


Current GMT-time: 14:25 (Tuesday, 26-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat