PING only creates image for first of selected partitions

Installation issues, feature requests, help, etc.

Moderators: Curtis8, A_Null

jpk27
Posts: 3
Joined: Mon Jul 04, 2011 10:08 am

PING only creates image for first of selected partitions

Postby jpk27 » Mon Jul 04, 2011 10:39 am

Hi all,

I'm having a problem using PING to create a disk image. I want to backup an internal hard disk with several partitions (sda) to an external USB disk (sdb), both formatted as ext3. I select all the partitions of sda to back-up, but images (sda, sda1, sda1.first_sectors) are only created for the first partition. Looking at the log file, the error seems to be:

Cmd: [(dd if=/dev/sda of=/tmp/aaa count=64 bs=512; mv -f /tmp/aaa "/mnt/dos/images/nmrspec500/sda") 2>&1]
mv: cannot move `/tmp/aaa' to `/mnt/dos/images/nmrspec500/sda': No such file or directory]

and later

Cmd: [(dd if=/dev/sda2 of=/tmp/aaa count=20 bs=512; mv -f /tmp/aaa "/mnt/dos/images/nmrspec500/sda2.first_sectors") 2>&1]
mv: cannot move `/tmp/aaa' to `/mnt/dos/images/nmrspec500/sda2.first_sectors': No such file or directory]

which is repeated for sda3, sda4, etc.

I think what's happening is that /dev/sdb1 (the backup disk) is being unmounted after (successfully) creating images for sda1, but is then not remounted (as /mnt/dos) before PING attempts to create the images for sda2. I attach the complete log file (not sure I have managed to attach successfully, doesn't seem to like any extensions... the relevant lines are also copied below).

Can anyone help me out? I'm using PING 3.01 (2011-02-23].

Thanks very much.

John
_____________________________________________

2592 rc.ping 18:56:49> * A local image was asked. Checking [/dev/sdb1] FS...
2592 rc.ping 18:56:49> Filesystem ID found: [83]
2592 rc.ping 18:56:49> * Creating dir [/mnt/dos/images/nmrspec500]
2592 rc.ping 18:56:49> * Backuping bios
2592 rc.ping 18:56:49> Cmd: [(cmospwd -w "/mnt/dos/images/nmrspec500/bios") 2>&1]
2592 rc.ping 18:56:49> Output: [CmosPwd - BIOS Cracker 5.0, October 2007, Copyright 1996-2007
GRENIER Christophe, grenier@cgsecurity.org
http://www.cgsecurity.org/]
2592 rc.ping 18:56:49> * Keep the drive(s) partition(s) list
2592 rc.ping 18:56:49> => File "/mnt/dos/images/nmrspec500/HDD_Look.txt"
2592 rc.ping 18:56:49> * Backuping partition [/dev/sda1]
2592 rc.ping 18:56:49> * Backuping first sectors of [/dev/sda1]'s device
2592 rc.ping 18:56:49> HDD: [sda]
2592 rc.ping 18:56:49> Cmd: [(dd if=/dev/sda of=/tmp/aaa count=64 bs=512; mv -f /tmp/aaa "/mnt/dos/images/nmrspec500/sda") 2>&1]
2592 rc.ping 18:56:49> Output: [64+0 records in
64+0 records out
32768 bytes (33 kB) copied, 0.00102537 seconds, 32.0 MB/s]
2592 rc.ping 18:56:49> * Now storing the [/dev/sda1] partition
2592 rc.ping 18:56:49> Checking [/dev/sda1] for pagefile.sys and hiberfil.sys to remove
2592 rc.ping 18:56:49> [/dev/sda1]'s type: [83]
2592 rc.ping 18:56:49> Umount> Umounting [/mnt/win]
2592 rc.ping 18:56:49> Is_Mounted> Is part [/mnt/win] mounted ?
2592 rc.ping 18:56:49> Is_Mounted> No
2592 rc.ping 18:56:49> Umount> Not mounted.
2592 rc.ping 18:56:49> Mount> Trying to umount [/mnt/win]
2592 rc.ping 18:56:49> Umount> Umounting [/mnt/win]
2592 rc.ping 18:56:49> Is_Mounted> Is part [/mnt/win] mounted ?
2592 rc.ping 18:56:49> Is_Mounted> No
2592 rc.ping 18:56:49> Umount> Not mounted.
2592 rc.ping 18:56:49> Mount> Trying to mount [/dev/sda1] on [/mnt/win]
2592 rc.ping 18:56:49> Mount> Cmd: [(mount /dev/sda1 /mnt/win) 2>&1]
2592 rc.ping 18:56:49> Mount> Output: []
2592 rc.ping 18:56:49> Is_Mounted> Is part [sda1] mounted ?
2592 rc.ping 18:56:49> Is_Mounted> Yes
2592 rc.ping 18:56:49> Is_Mounted> Is part [sda1] mounted ?
2592 rc.ping 18:56:49> Is_Mounted> Yes
2592 rc.ping 18:56:49> No [pagefile.sys] to delete
2592 rc.ping 18:56:49> No [hiberfil.sys] to delete
2592 rc.ping 18:56:49> Umount> Umounting [/mnt/win]
2592 rc.ping 18:56:49> Is_Mounted> Is part [/mnt/win] mounted ?
2592 rc.ping 18:56:49> Is_Mounted> Yes
2592 rc.ping 18:56:49> Umount> Cmd: [(umount /mnt/win) 2>&1]
2592 rc.ping 18:56:49> Umount> Output: []
2592 rc.ping 18:56:49> * Minimizing the filesystem of [/dev/sda1]
2592 rc.ping 18:56:49> Not wanted.
2592 rc.ping 18:56:49> * Storing first sectors of part [/dev/sda1]
2592 rc.ping 18:56:49> Cmd: [(dd if=/dev/sda1 of=/tmp/aaa count=20 bs=512; mv -f /tmp/aaa "/mnt/dos/images/nmrspec500/sda1.first_sectors") 2>&1]
2592 rc.ping 18:56:49> Output: [20+0 records in
20+0 records out
10240 bytes (10 kB) copied, 0.000669779 seconds, 15.3 MB/s]
2592 rc.ping 18:56:49> dd has recorded [10240] octets
2592 rc.ping 18:56:49> * Storing the part [/dev/sda1] itself
2592 rc.ping 18:56:49> No Update, but an image creation for part [/dev/sda1]
2592 rc.ping 18:56:49> Umount> Umounting [/mnt/dos]
2592 rc.ping 18:56:49> Is_Mounted> Is part [/mnt/dos] mounted ?
2592 rc.ping 18:56:49> Is_Mounted> Yes
2592 rc.ping 18:56:49> Umount> Cmd: [(umount /mnt/dos) 2>&1]
2592 rc.ping 18:56:49> Umount> Output: []
2592 rc.ping 18:56:49> Mount> Trying to umount [/mnt/dos]
2592 rc.ping 18:56:49> Umount> Umounting [/mnt/dos]
2592 rc.ping 18:56:49> Is_Mounted> Is part [/mnt/dos] mounted ?
2592 rc.ping 18:56:49> Is_Mounted> No
2592 rc.ping 18:56:49> Umount> Not mounted.
2592 rc.ping 18:56:49> Mount> Trying to mount [/dev/sdb1] on [/mnt/dos]
2592 rc.ping 18:56:49> Mount> Cmd: [(mount /dev/sdb1 /mnt/dos) 2>&1]
2592 rc.ping 18:56:50> Mount> Output: []
2592 rc.ping 18:56:50> Is_Mounted> Is part [sdb1] mounted ?
2592 rc.ping 18:56:50> Is_Mounted> Yes
2592 rc.ping 18:56:50> Is_Mounted> Is part [sdb1] mounted ?
2592 rc.ping 18:56:50> Is_Mounted> Yes
2592 rc.ping 18:56:50> Cmd: [partimage -f3 -z0 -b -c -d -V630 -o save /dev/sda1 "/mnt/dos/images/nmrspec500/sda1"; sleep 2; reset]
2592 rc.ping 18:56:59> Output: (...) [
============= TIME and CPU infos ================
[Main] main.cpp->main#785: Total time:........... 7sec
[Main] main.cpp->main#788: User time:............ 0sec (main= 0sec, child= 0sec)
[Main] main.cpp->main#791: System time:.......... 0sec (main= 0sec, child= 0sec)
[Main] main.cpp->main#792: CPU used:.............0 %
[Main] main.cpp->main#793: Beginning:............ 1309546610 = Fri Jul 1 18:56:50 2011
[Main] main.cpp->main#794: Start copy:........... 1309546610 = Fri Jul 1 18:56:50 2011
[Main] main.cpp->main#795: End:.................. 1309546617 = Fri Jul 1 18:56:57 2011
[Main] main.cpp->main#796:
============= TIME and CPU infos ================


[Main] main.cpp->main#809: End of operation: SUCCESS
[Main] main.cpp->main#862: option FINISH_QUIT
]
2592 rc.ping 18:56:59> Will we store details about each included file ?
2592 rc.ping 18:56:59> Yes!
2592 rc.ping 18:56:59> Mount> Trying to umount [/mnt/dos]
2592 rc.ping 18:56:59> Umount> Umounting [/mnt/dos]
2592 rc.ping 18:56:59> Is_Mounted> Is part [/mnt/dos] mounted ?
2592 rc.ping 18:56:59> Is_Mounted> Yes
2592 rc.ping 18:56:59> Umount> Cmd: [(umount /mnt/dos) 2>&1]
2592 rc.ping 18:56:59> Umount> Output: []
2592 rc.ping 18:56:59> Mount> Trying to mount [/dev/sda1] on [/mnt/dos]
2592 rc.ping 18:56:59> Mount> Cmd: [(mount /dev/sda1 /mnt/dos) 2>&1]
2592 rc.ping 18:56:59> Mount> Output: []
2592 rc.ping 18:56:59> Is_Mounted> Is part [sda1] mounted ?
2592 rc.ping 18:56:59> Is_Mounted> Yes
2592 rc.ping 18:56:59> Is_Mounted> Is part [sda1] mounted ?
2592 rc.ping 18:56:59> Is_Mounted> Yes
2592 rc.ping 18:57:02> Umount> Umounting [/mnt/dos]
2592 rc.ping 18:57:02> Is_Mounted> Is part [/mnt/dos] mounted ?
2592 rc.ping 18:57:02> Is_Mounted> Yes
2592 rc.ping 18:57:02> Umount> Cmd: [(umount /mnt/dos) 2>&1]
2592 rc.ping 18:57:02> Umount> Output: []
2592 rc.ping 18:57:02> * Backuping partition [/dev/sda2]
2592 rc.ping 18:57:02> * Backuping first sectors of [/dev/sda2]'s device
2592 rc.ping 18:57:02> HDD: [sda]
2592 rc.ping 18:57:02> Cmd: [(dd if=/dev/sda of=/tmp/aaa count=64 bs=512; mv -f /tmp/aaa "/mnt/dos/images/nmrspec500/sda") 2>&1]
2592 rc.ping 18:57:02> Output: [64+0 records in
64+0 records out
32768 bytes (33 kB) copied, 0.00420071 seconds, 7.8 MB/s
mv: cannot move `/tmp/aaa' to `/mnt/dos/images/nmrspec500/sda': No such file or directory]
2592 rc.ping 18:57:02> * Now storing the [/dev/sda2] partition
2592 rc.ping 18:57:02> Checking [/dev/sda2] for pagefile.sys and hiberfil.sys to remove
2592 rc.ping 18:57:02> [/dev/sda2]'s type: [83]
2592 rc.ping 18:57:02> Umount> Umounting [/mnt/win]
2592 rc.ping 18:57:02> Is_Mounted> Is part [/mnt/win] mounted ?
2592 rc.ping 18:57:02> Is_Mounted> No
2592 rc.ping 18:57:02> Umount> Not mounted.
2592 rc.ping 18:57:02> Mount> Trying to umount [/mnt/win]
2592 rc.ping 18:57:02> Umount> Umounting [/mnt/win]
2592 rc.ping 18:57:02> Is_Mounted> Is part [/mnt/win] mounted ?
2592 rc.ping 18:57:02> Is_Mounted> No
2592 rc.ping 18:57:02> Umount> Not mounted.
2592 rc.ping 18:57:02> Mount> Trying to mount [/dev/sda2] on [/mnt/win]
2592 rc.ping 18:57:02> Mount> Cmd: [(mount /dev/sda2 /mnt/win) 2>&1]
2592 rc.ping 18:57:02> Mount> Output: []
2592 rc.ping 18:57:02> Is_Mounted> Is part [sda2] mounted ?
2592 rc.ping 18:57:02> Is_Mounted> Yes
2592 rc.ping 18:57:02> Is_Mounted> Is part [sda2] mounted ?
2592 rc.ping 18:57:02> Is_Mounted> Yes
2592 rc.ping 18:57:02> No [pagefile.sys] to delete
2592 rc.ping 18:57:02> No [hiberfil.sys] to delete
2592 rc.ping 18:57:02> Umount> Umounting [/mnt/win]
2592 rc.ping 18:57:02> Is_Mounted> Is part [/mnt/win] mounted ?
2592 rc.ping 18:57:02> Is_Mounted> Yes
2592 rc.ping 18:57:02> Umount> Cmd: [(umount /mnt/win) 2>&1]
2592 rc.ping 18:57:02> Umount> Output: []
2592 rc.ping 18:57:02> * Minimizing the filesystem of [/dev/sda2]
2592 rc.ping 18:57:02> Not wanted.
2592 rc.ping 18:57:02> * Storing first sectors of part [/dev/sda2]
2592 rc.ping 18:57:02> Cmd: [(dd if=/dev/sda2 of=/tmp/aaa count=20 bs=512; mv -f /tmp/aaa "/mnt/dos/images/nmrspec500/sda2.first_sectors") 2>&1]
2592 rc.ping 18:57:02> Output: [20+0 records in
20+0 records out
10240 bytes (10 kB) copied, 0.00064581 seconds, 15.9 MB/s
mv: cannot move `/tmp/aaa' to `/mnt/dos/images/nmrspec500/sda2.first_sectors': No such file or directory]
2592 rc.ping 18:57:02> dd has recorded [] octets
2592 rc.ping 18:57:02> This is less than asked; no more data to record on this part, next
2592 rc.ping 18:57:02> * Backuping partition [/dev/sda3]

User avatar
A_Null
Posts: 162
Joined: Fri Jan 12, 2007 4:35 pm
Location: Central Florida

Re: PING only creates image for first of selected partitions

Postby A_Null » Mon Jul 04, 2011 7:58 pm

Partimage often barfs if there is a disk error, and it does not get reported back, it just makes the backup fail. Try a good disk diagnostic, maybe Seatools from Seagate and make sure the drive is error-free.
Image

jpk27
Posts: 3
Joined: Mon Jul 04, 2011 10:08 am

Re: PING only creates image for first of selected partitions

Postby jpk27 » Tue Jul 05, 2011 5:57 pm

Hey,

Thanks for the suggestion, but I don't think the disk is the problem. Looking at the log, it's a simple mv command that fails, which is because the back-up is not mounted at this point... something is getting messed up with the unmounting/mounting of the back-up disk, but there are no error messages from mount/umount, so it looks like a bug somewhere.

Cheers
John

jpk27
Posts: 3
Joined: Mon Jul 04, 2011 10:08 am

Re: PING only creates image for first of selected partitions

Postby jpk27 » Mon Jul 11, 2011 8:20 pm

Hmm, not so many replies!

Would be interesting to know if any of the people who've looked at this post are having the same problem... please post if you are!

Thanks!


Return to “PING / General Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest