Page 1 of 1

"dd if=/dev/rdisk0s1s1" failed on Air2/iOS9.2

PostPosted: Mon May 29, 2017 1:14 pm
by septium
I'm trying to make a raw dump of "/" (/dev/rdisk0s1s1).

Code: Select all
mac$ iproxy 22200 22
mac$ ssh -p 22200 root@localhost dd if=/dev/rdisk0s1s1 bs=4096k | dd of=./rootfs.dmg

iPad2, iOS9.3.2, HomeDepot JB succeed: I can dump a mountable raw dmg.

But Air 2, iOS9.2, Pangu JB fails with the following error:

Code: Select all
dd: reading `/dev/rdisk0s1s1': Invalid argument
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000672 s, 0.0 kB/s

syslog:
Code: Select all
May 29 15:42:02 iPad92-od-1 kernel[0] <Notice>: disk0s1s1: alignment error.


What kind of protection I am facing with?

Re: "dd if=/dev/rdisk0s1s1" failed on Air2/iOS9.2

PostPosted: Mon May 29, 2017 1:26 pm
by septium
I've found an answer: block size matters. bs=1024k works like a charm.

Re: "dd if=/dev/rdisk0s1s1" failed on Air2/iOS9.2

PostPosted: Mon May 29, 2017 3:20 pm
by backendbilly
You may also find the following helpful

http://www.newosxbook.com/forum/viewtopic.php?f=7&t=16876

Billy

Re: "dd if=/dev/rdisk0s1s1" failed on Air2/iOS9.2

PostPosted: Mon May 29, 2017 5:45 pm
by septium
Thanks, Billy. The thread you've posted the link to is my own :) It's also about "dd if=/dev/rdisk0s1s1 ..." but concerning resulting image mountability.