LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-14-2006, 03:05 PM   #1
ebedosu
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Rep: Reputation: 0
Partimage: "Can't Read Block 0 from Image"


This error occurs on recovery at the point partimage tries to read the second file (.001) of the divided image file I made with Partimage.

I've seen this fix here: http: // pittman.ws/articles/howto/partimage . html

However, I don't know how to apply it to my case which does not involve a network. I simply saved the image of an old Win 98 PC to an external hard drive. Now, I have the original external hard drive and a second external hard drive that I'm trying to restore the image to via Partimage in Knoppix.

Can I concatenate the .000, .001, and .002 image files and run Partimage again, or can I use some workaround?

Thanks.
 
Old 07-14-2006, 03:23 PM   #2
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
From the error message, it sounds like the hard drive that contains the .001 file is corrupt. You might try simply copying this file to /dev/null. If you get an IO error again, you will also get it trying to cat the file. There may be a option to the dd program that ignores IO errors and copies what it can. You could try A) renaming the .001 file to something else; B) using dd to copy from this file to a new .001 file. Then cat it together, hopefully to a different hard drive, and see if you can mount the drive using a loopback device. You may be able to recover some of the contents if you are lucky.
 
Old 07-14-2006, 05:04 PM   #3
ebedosu
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
solution: how to translate this shell script

I want to try this solution but I'm new to shell and don't know how to translate this to fit my Ubuntu environment. I don't know when to keep things capitalized and when to leave the $ in and what needs to be substituted.

From the partimage.org forum:

Code:
# this bash-code expects the backup files as $BACKUPSET.000,
# $BACKUPSET.001, etc. Modify to match your environment.
toskip=0
{
  for partfile in $BACKUPSET.*; do
    zcat $pertfile | dd skip=$toskip 2>/dev/null
    toskip=1
  done;
} | partimage $RESTORE_OPTS restore $DEVICE stdin
 
Old 07-15-2006, 10:38 AM   #4
ebedosu
LQ Newbie
 
Registered: Jul 2006
Posts: 4

Original Poster
Rep: Reputation: 0
another solution confirmed

If you search the forums for partimage.org you'll find another solution was to press the scroll-lock key every .5 or 1GB or so.

After getting some help with the shell script, it still wasn't working, so I tried scroll-lock.

It required manual attention, but, damn, it worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting "Short read in buffer_copy" error with "dpkg" stalefries Linux - Software 6 03-24-2010 03:19 PM
Install locks up at "RAMDISK: Compressed image found at block 0 JackNimble Linux - Newbie 6 03-05-2009 02:19 PM
"block device /dev/sda2 is write-protected, mounting read-only" - fstab problem blanks77 Linux - Hardware 1 04-28-2006 06:09 PM
partimage - cannot read bitmap block 0 from image CollieJim Linux - General 0 12-21-2005 09:15 AM
..."short read while reading block 516" mohapi Fedora 7 10-22-2004 01:37 PM


All times are GMT -5. The time now is 07:34 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration