LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-09-2009, 01:15 AM   #1
jean.eckard
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Clonezilla restore to smaller partition


Hello!
I'm trying to restore a Clonezilla partition image, but the problem is that between the moment I imaged it and now I sized down the partition a few Gb (from 230 to 215, let's say). But the actual size of the files in the image is hardly more than 20 Gb! Is there a resize solution based on clonezilla, or is my only possibility to resize the partition to what it was before, or maybe to restore it to a partition big enough on another HD, then resize it "as small" as possible and image it again and then finally restore it where it belong?
Incidently, what are alternatives to clonezilla, as I'm using an oldish version?
Thanks for you help!
 
Old 10-09-2009, 08:57 AM   #2
pierre2
Member
 
Registered: May 2009
Location: Perth, AU
Distribution: LinuxMint
Posts: 339
Blog Entries: 8

Rep: Reputation: 74
I'd be inclined to restore the image to the original sized partition,
& the shrink the partition back down to just what you wanted / needed.

As for using another method try using Gparted

http://gparted.sourceforge.net/larry/move/move.htm

shows one way of copying a drive.
 
Old 10-09-2009, 09:31 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,478
Blog Entries: 4

Rep: Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526
Hi,

I agree that you should restore the image of the original filesystem then shrink that filesystem to the desired size. Your clone as image was for the 'filesystem' on that partition.
 
Old 10-09-2009, 09:36 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Quote:
Originally Posted by jean.eckard View Post
Incidently, what are alternatives to clonezilla, as I'm using an oldish version?
Thanks for you help!
I would just use "dd" in a terminal.
 
Old 10-10-2009, 03:28 AM   #5
jean.eckard
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your suggestions! I'll see if I can restore the size of the partition to what it was before (or bigger); as my clone is an image and not a partition, is it possible to find what this original size exactly was?
Thanks for the Gparted suggestion, but this gives a partition copy where I'd prefer a file image; the point is that I don't want to use up 200Gb (size of the partition) when I can use only about 10Gb (size of the data)! Is it possible to resize the partition afterward or do I need to keep a perfect size match?

Now I still have to figure out a solution for the common and repeated "Grub loading / Error 2" problem I got from trying to restore my partition.... (that persisted after the usual mavoeuvre, hope everything isn't messed up!)

Above all I think I'll just buy a second hard drive to keep Linux and the MBR so it's safe!
 
Old 10-10-2009, 09:51 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,478
Blog Entries: 4

Rep: Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526
Hi,

Then just do a 'dd' as others have suggested.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clonezilla Live: Cloning to smaller HD Codegen Linux - Software 3 02-04-2010 06:32 PM
backupped XP with clonezilla. Can I restore on a different PC? salsero72 Linux - General 1 05-08-2009 08:04 AM
Clonezilla Bombs out on Restore - Any Ideas? dfishgrl Linux - Newbie 3 04-21-2009 10:09 PM
LXer: Back Up/Restore Hard Drives And Partitions With CloneZilla Live LXer Syndicated Linux News 0 11-30-2008 01:20 PM
Clonezilla cannot find image to restore from elebrity Linux - Software 0 11-20-2008 02:04 PM


All times are GMT -5. The time now is 07:00 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration