LinuxQuestions.org
Review your favorite Linux distribution.
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
  Search this Thread
Old 09-02-2009, 08:26 AM   #1
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 346

Rep: Reputation: 31
imageparted - force restore


This is odd and I am wondering if there is a force restore option you can pass somehow. We have a bunch of small ebox machines that run a custom Damn Small Linux distribution with a bunch of custom apps. Well they use a tiny 512MN 44pin Embed hard disk and I have been using the linux self bootable 'system restore cd' with a USB device to simple move the image of the distro over, restart and done.

For some reason when I mount the USB device, run imageparted, select that image I am getting the following;
The partition is too small to be restored;
Original Partition Size: 512451072
Destination Partition Size: 509935104

Now these embed disks are all the same, so I am not sure on the problem, but imageparted is all basic menu based, so is there a way to either;
1. command line restore the image with a force or something, most of the space is blank which is why once i can get a running version of the box I can use clonezilla as I am happy with that app more, but don't have any more local machines running as they are all mailed out to customers!

or 2. Extract the .000 image somehow as I can get a clean DSL install working on that box, then simply overwrite the / partition which might work.


Thanks.
 
Old 09-30-2009, 12:38 PM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: San Bernardino, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 260

Rep: Reputation: 52
Well,

I am unfamiliar with imageparted, though I know parted and gparted pretty well. BUT, as far as getting the image out and shrunken, you might want to try using dd to extract the image to a partition/file structure, then copy the files to a proper-sized partition and dd that back into an image file.

HTH.

(NOTE: You might have to reset the bootloader after you copy it to the smaller partition.)

Last edited by ShadowCat8; 09-30-2009 at 12:49 PM. Reason: Added a note
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force a Delete Flab0y352 Linux - Newbie 7 05-31-2016 10:42 AM
Restore MySQL Dump File But I want it to restore with different names? helptonewbie Linux - Newbie 5 07-08-2009 05:09 AM
mksysb restore - Wrong OS level for restore pobman AIX 0 12-10-2008 09:32 PM
How to restore files using the restore command ? SKYNAT Linux - Newbie 2 12-28-2007 10:26 PM
Want to force use of squidgaurd buttshill Linux - Networking 0 10-13-2003 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:38 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration