08-13-2008
Complete dump from start to the end
Hi all... I was accidentally wipe off my iphone and lost all the data in it
. So I tried to use dd to create an image from iphone and ssh to the Mac by using:
dd if=/dev/disk | ssh user@MacIP of='image.img'
Then I mount this image on Mac/Windows and run recovery software because most of the recovery software only work on physical drive.
However, the image file only contains the current existing file(about 400mb), but not the complete 4G of space in the iphone harddrive.
So is there anyway to dump the complete drive from the start to the end of the hard drive?
I have found that there is a count parameter for dd, and will this work?
dd if=/dev/disk count=blocksize | ssh user@MacIP of='image.img'
where blocksize is the quote from quota -v.
Or is there any other way I can do to have the same result?
Thanks a lot.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a situation... I have a script it checks for a file in a folder which comes to the folder every day at specified time...2am to 4 am, once the file is in the polder my process starts...but the problem is the files being placed are huge and it is even taking half an hour for the file... (3 Replies)
Discussion started by: mgirinath
3 Replies
2. Shell Programming and Scripting
Hello All,
Below mentioned is my log file.
I want to make a script which ask for start time and then end time and then search particular word between those lines.
Like
start time:2
end time: 4
and then search all values starting from cell 84 between this time.
Please Help
... (2 Replies)
Discussion started by: wakhan
2 Replies
3. Shell Programming and Scripting
I need help with perl code. I have a data file with lots of data
example: data.txt file
START
DATA1 sjdfh kjhdf
DATA2 sdkjfhk jds dshfgdf
... Around 20 - 30 lines
END
LDDDD awdkjasd a sdkahgdk jasdh
SOME CRAP
Some EMPTY lines etc
START
DATA1 sjdfh kjhdf
DATA2 sdkjfhk jds... (2 Replies)
Discussion started by: chakrapani
2 Replies
4. Programming
I have an array of distances and a len, for example
len = 323
dist =
I want to calculate the start and end index values around each distance in the array with a length of len from it. Values in dist are stored in ascending order. (4 Replies)
Discussion started by: kristinu
4 Replies
5. Shell Programming and Scripting
I have a need to calculate when British Summer Time starts and ends. After messing around, the following seems to work in Bash.
echo `date +%Y`-03-`cal 3 \`date +%Y\` | grep -oE "^]{2}" | tail
-1`T01:00:00Zand
echo `date +%Y`-03-`cal 10 \`date +%Y\` | grep -oE "^]{2}" | tail ... (10 Replies)
Discussion started by: esb4me
10 Replies
6. UNIX for Dummies Questions & Answers
Hi All ,
I am newbie to linux shell scripting , below are the contents of my log file ,
i want the lines between a begin pattern and a end pattern
for an instance , my begin Pattern is "Transaction Begins for Usr"
and end pattern is "Transaction Ends for Usr" into another file
Sample file... (1 Reply)
Discussion started by: SARAVANANE
1 Replies
7. Shell Programming and Scripting
Hi,
I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color (closing bracket). PS: The line after the closing bracket for color could be anything (currently 'more').... (1 Reply)
Discussion started by: Dabheeruz
1 Replies
8. UNIX for Advanced & Expert Users
Hello;
For maintenance reasons, I have to clone an old dell server and an old dell station Fedora Core 1 to make a backup of the previous machines (the new machines are exactly the same as the original).
For the server, I have had no problems, it works.
For the station, just at the end of... (3 Replies)
Discussion started by: SolarMax
3 Replies
9. Shell Programming and Scripting
Hello
I'm using cygwin and wouldlike extract information from an xml file according specific values, but don't know how.
Let's say in a file content looks like this:
<tab>
SURNAME=Mustermann
NAME=Max
CUSTOMER SINCE= 18.01.2000
ADDRESS=Birmingham
... (2 Replies)
Discussion started by: witchblade
2 Replies
10. UNIX for Beginners Questions & Answers
Below are my custom period start and end dates based on a calender, these dates are placed in a file, for each period i need to split into three weeks for each period row, example is given below.
Could you please help out to achieve solution through shell script..
File content:
... (2 Replies)
Discussion started by: nani2019
2 Replies
LEARN ABOUT DEBIAN
ssh-copy-id
SSH-COPY-ID(1) General Commands Manual SSH-COPY-ID(1)
NAME
ssh-copy-id - install your public key in a remote machine's authorized_keys
SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine
DESCRIPTION
ssh-copy-id is a script that uses ssh to log into a remote machine and append the indicated identity file to that machine's ~/.ssh/autho-
rized_keys file.
If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your
ssh-agent. Otherwise, if this:
ssh-add -L
provides any output, it uses that in preference to the identity file.
If the -i option is used, or the ssh-add produced no output, then it uses the contents of the identity file. Once it has one or more fin-
gerprints (by whatever means) it uses ssh to append them to ~/.ssh/authorized_keys on the remote machine (creating the file, and directory,
if necessary.)
NOTES
This program does not modify the permissions of any pre-existing files or directories. Therefore, if the remote sshd has StrictModes set in
its configuration, then the user's home, ~/.ssh folder, and ~/.ssh/authorized_keys file may need to have group writability disabled manu-
ally, e.g. via
chmod go-w ~ ~/.ssh ~/.ssh/authorized_keys
on the remote machine.
SEE ALSO
ssh(1), ssh-agent(1), sshd(8)
OpenSSH 14 November 1999 SSH-COPY-ID(1)