Reply
Thread Tools Search this Thread
Posts: 828 | Thanked: 1,134 times | Joined on May 2010
#1
I'm working on a backup-utility for the N900. This utility is a bootloader-script, and so is able to mount the rootfs as readonly.

I have the script running, but I'm having trouble getting feedback from DD:
Code:
			dd of=/dev/mtd5 if=/tmp/mnt/sdp1/backup-rootfs.img bs=4096 2> /tmp/ddinfo & pid=$!
			while [ -n "$(ps -e | grep $pid)" ] 
			do
			kill -USR1 $pid
			$T2S -s 2 -H left -y 20 -T 0 -t "$(cat /tmp/ddinfo)"
			sleep 5
			done
The thing works, but it doesn't output statistics during the process.
I'm guessing something to do with delayed write or somesuch.

What -should- happen is that every 5 seconds, we send a signal to DD, get statistics which are then displayed via T2S/text2screen.

Can anyone help me?
 
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 10:35 PM.