Restoring a big partition to a smaller partition with Clonezilla
up vote
5
down vote
favorite
Some time ago I created a backup of an EXT4 partition with Clonezilla. Now the HDD crashed and I lost some important data.
The size of the image of the partition is 50GB. I tried to restore this image to a 200GB HDD but it turned out that the size of the original partition was 500GB. Since I don't have a 500GB HDD for dumping available I figured out how to force Clonezilla to ignore it by passing -C
to partclone. But while recovering it stopped with the error target seek ERROR:Invalid argument
.
I could imagine that the data on the partition is fragmented so that the actual bitmap doesn't fit. Is there a workaround for this? I have a HDD with about 600GB available but I don't like touching the partition table or such. Ideally would be a way to restore it to a mountable image. (ISO or such)
partition backup data-recovery clonezilla
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
up vote
5
down vote
favorite
Some time ago I created a backup of an EXT4 partition with Clonezilla. Now the HDD crashed and I lost some important data.
The size of the image of the partition is 50GB. I tried to restore this image to a 200GB HDD but it turned out that the size of the original partition was 500GB. Since I don't have a 500GB HDD for dumping available I figured out how to force Clonezilla to ignore it by passing -C
to partclone. But while recovering it stopped with the error target seek ERROR:Invalid argument
.
I could imagine that the data on the partition is fragmented so that the actual bitmap doesn't fit. Is there a workaround for this? I have a HDD with about 600GB available but I don't like touching the partition table or such. Ideally would be a way to restore it to a mountable image. (ISO or such)
partition backup data-recovery clonezilla
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
up vote
5
down vote
favorite
up vote
5
down vote
favorite
Some time ago I created a backup of an EXT4 partition with Clonezilla. Now the HDD crashed and I lost some important data.
The size of the image of the partition is 50GB. I tried to restore this image to a 200GB HDD but it turned out that the size of the original partition was 500GB. Since I don't have a 500GB HDD for dumping available I figured out how to force Clonezilla to ignore it by passing -C
to partclone. But while recovering it stopped with the error target seek ERROR:Invalid argument
.
I could imagine that the data on the partition is fragmented so that the actual bitmap doesn't fit. Is there a workaround for this? I have a HDD with about 600GB available but I don't like touching the partition table or such. Ideally would be a way to restore it to a mountable image. (ISO or such)
partition backup data-recovery clonezilla
Some time ago I created a backup of an EXT4 partition with Clonezilla. Now the HDD crashed and I lost some important data.
The size of the image of the partition is 50GB. I tried to restore this image to a 200GB HDD but it turned out that the size of the original partition was 500GB. Since I don't have a 500GB HDD for dumping available I figured out how to force Clonezilla to ignore it by passing -C
to partclone. But while recovering it stopped with the error target seek ERROR:Invalid argument
.
I could imagine that the data on the partition is fragmented so that the actual bitmap doesn't fit. Is there a workaround for this? I have a HDD with about 600GB available but I don't like touching the partition table or such. Ideally would be a way to restore it to a mountable image. (ISO or such)
partition backup data-recovery clonezilla
partition backup data-recovery clonezilla
asked Mar 6 '14 at 7:40
Noir
1731211
1731211
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 days ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
up vote
0
down vote
The Clonezilla site expressly mentions that restoring to a smaller device is a documented limitation of the tool, but this page makes mention of a possibility of attempting such a recovery if one believes that the data to restore. This is probably the sort of thing you did. If that does not work, then:
PhotoRec does wonders, but for a large partition, is time consuming and the results can make a monumental task of picking through the output of the tool. I used SysRescueCD, which includes it. As this tool needs at least as much free space on the system as was stored on the overwritten drive, one has to have enough free space for the data (including any data that was deleted and not overwritten before the failure). SysRescueCD also has sshfs on it, so you can use storage on another system if you don't have a free drive.
PhotoRec can get some file extensions (pictures, mp3's, and so on) correct, but file names were completely lost otherwise. Nevertheless, it was possible to recover certain key files. I got back about as much data as the drive had on it. Sometimes, it is not worth a lot of effort to recover everything, but what kind of time it takes is dependent on how important something was that was lost.
I've done this thing multiple times. Once I had a drive that failed. I used what amounted to ddrescue to snag a copy of the drive, then proceeded to recover most of 40 GB of mp3s.
add a comment |
up vote
0
down vote
One of the possibilities could be to try to mount the backup image and just copy the files to your new drive having previously created a filesystem on the new drive. This post describes how you can prepare a clonezilla image for mounting. It looks like you are going to need a lot of space, though, to decompress the image.
add a comment |
up vote
0
down vote
I was looking for a solution to a similar issue and want to share my outcome with you, in fact I had a windows notebook with a single-partitioned 750GB disk which wasn't booting anymore because of bad sectors but I had only a 160GB spare disk available; considering I knew the total amount of data on the source disk was about 32GB I got myself a copy of Hdd Regenerator to "repair" the bad sectors of the 750GB disk then I imaged it with Clonezilla.
Under Clonezilla I loaded the image then checked the options "-ICDS" in the first options screen and "-k1" in the second... the software restored the data and then the screen showed an error of some sort that I can't remember right now but was involved with space available on the target disk.
So I rebooted the system and started with the local disk (the one that I restored the image on), choose to "Load the (Windows) startup repair" which took a few minutes then I rebooted the system again and, after some grinding, it loaded Windows flawlessly!
add a comment |
up vote
0
down vote
since you have the 600gb empty you can mount your current HD and copy its files to the 600gb !
or
you can make a new backup using dd+gzip and you will have chance to restore your hard drive without problems of loosing space.
if you want to do that from your current runing os :
mount your current hd (since it is an ext4 it can be mounted on different places).
sudo mkdir ~/bk/{0,1}
sudo mount /dev/SRC_HD ~/bk/0
sudo mount /dev/DST_HD ~/bk/1
sudo copy -arxp ~/bk/0/* ~/bk/1/
now you will make some changes if you want to boot with 600gb
use blkid
to get HDs UIDs
SRC_HDUUID="7ahzj19f-a2b2-4f24-bb01-4ca7bc9fed3a"
DST_HDUUID="7aaeb19f-a2b2-4f24-ffc1-4ca7bc9fed3a"
sudo grep "$SRC_HDUUID" /etc /boot -rl | while read f
do
sed -i "s/$SRC_HDUUID/$DST_HDUUID/g" $f
done
sudo umount -fl ~/bk/*
update the grub in your current os it
sudo update-grub
reboot into your fresh copy inside $DST_HD and then wipe your SRC_HD or any.
if you want to do that from a live os with gzip dd gunzip :
backup again your SRC_HD to a raw image
dd if=/dev/SRC_HD | gzip -c > /inside/your600/image.img
restore it from the raw image
gunzip -c /inside/your600/image.img | dd of=/dev/SRC_HD
but before restoring it it's good to wash your SRC_HD
washing a hard drive is creating a file inside th hard drive filled up with zero, and removing that file!
sudo dd if=/dev/zero of=/where/hardrive/mountd/zero
acoording to the hd size it will take some time and it will stop with a 'disk full' mesage !
sudo rm /where/hardrive/mountd/zero
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f118370%2frestoring-a-big-partition-to-a-smaller-partition-with-clonezilla%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The Clonezilla site expressly mentions that restoring to a smaller device is a documented limitation of the tool, but this page makes mention of a possibility of attempting such a recovery if one believes that the data to restore. This is probably the sort of thing you did. If that does not work, then:
PhotoRec does wonders, but for a large partition, is time consuming and the results can make a monumental task of picking through the output of the tool. I used SysRescueCD, which includes it. As this tool needs at least as much free space on the system as was stored on the overwritten drive, one has to have enough free space for the data (including any data that was deleted and not overwritten before the failure). SysRescueCD also has sshfs on it, so you can use storage on another system if you don't have a free drive.
PhotoRec can get some file extensions (pictures, mp3's, and so on) correct, but file names were completely lost otherwise. Nevertheless, it was possible to recover certain key files. I got back about as much data as the drive had on it. Sometimes, it is not worth a lot of effort to recover everything, but what kind of time it takes is dependent on how important something was that was lost.
I've done this thing multiple times. Once I had a drive that failed. I used what amounted to ddrescue to snag a copy of the drive, then proceeded to recover most of 40 GB of mp3s.
add a comment |
up vote
0
down vote
The Clonezilla site expressly mentions that restoring to a smaller device is a documented limitation of the tool, but this page makes mention of a possibility of attempting such a recovery if one believes that the data to restore. This is probably the sort of thing you did. If that does not work, then:
PhotoRec does wonders, but for a large partition, is time consuming and the results can make a monumental task of picking through the output of the tool. I used SysRescueCD, which includes it. As this tool needs at least as much free space on the system as was stored on the overwritten drive, one has to have enough free space for the data (including any data that was deleted and not overwritten before the failure). SysRescueCD also has sshfs on it, so you can use storage on another system if you don't have a free drive.
PhotoRec can get some file extensions (pictures, mp3's, and so on) correct, but file names were completely lost otherwise. Nevertheless, it was possible to recover certain key files. I got back about as much data as the drive had on it. Sometimes, it is not worth a lot of effort to recover everything, but what kind of time it takes is dependent on how important something was that was lost.
I've done this thing multiple times. Once I had a drive that failed. I used what amounted to ddrescue to snag a copy of the drive, then proceeded to recover most of 40 GB of mp3s.
add a comment |
up vote
0
down vote
up vote
0
down vote
The Clonezilla site expressly mentions that restoring to a smaller device is a documented limitation of the tool, but this page makes mention of a possibility of attempting such a recovery if one believes that the data to restore. This is probably the sort of thing you did. If that does not work, then:
PhotoRec does wonders, but for a large partition, is time consuming and the results can make a monumental task of picking through the output of the tool. I used SysRescueCD, which includes it. As this tool needs at least as much free space on the system as was stored on the overwritten drive, one has to have enough free space for the data (including any data that was deleted and not overwritten before the failure). SysRescueCD also has sshfs on it, so you can use storage on another system if you don't have a free drive.
PhotoRec can get some file extensions (pictures, mp3's, and so on) correct, but file names were completely lost otherwise. Nevertheless, it was possible to recover certain key files. I got back about as much data as the drive had on it. Sometimes, it is not worth a lot of effort to recover everything, but what kind of time it takes is dependent on how important something was that was lost.
I've done this thing multiple times. Once I had a drive that failed. I used what amounted to ddrescue to snag a copy of the drive, then proceeded to recover most of 40 GB of mp3s.
The Clonezilla site expressly mentions that restoring to a smaller device is a documented limitation of the tool, but this page makes mention of a possibility of attempting such a recovery if one believes that the data to restore. This is probably the sort of thing you did. If that does not work, then:
PhotoRec does wonders, but for a large partition, is time consuming and the results can make a monumental task of picking through the output of the tool. I used SysRescueCD, which includes it. As this tool needs at least as much free space on the system as was stored on the overwritten drive, one has to have enough free space for the data (including any data that was deleted and not overwritten before the failure). SysRescueCD also has sshfs on it, so you can use storage on another system if you don't have a free drive.
PhotoRec can get some file extensions (pictures, mp3's, and so on) correct, but file names were completely lost otherwise. Nevertheless, it was possible to recover certain key files. I got back about as much data as the drive had on it. Sometimes, it is not worth a lot of effort to recover everything, but what kind of time it takes is dependent on how important something was that was lost.
I've done this thing multiple times. Once I had a drive that failed. I used what amounted to ddrescue to snag a copy of the drive, then proceeded to recover most of 40 GB of mp3s.
answered May 16 '14 at 19:50
kbulgrien
256214
256214
add a comment |
add a comment |
up vote
0
down vote
One of the possibilities could be to try to mount the backup image and just copy the files to your new drive having previously created a filesystem on the new drive. This post describes how you can prepare a clonezilla image for mounting. It looks like you are going to need a lot of space, though, to decompress the image.
add a comment |
up vote
0
down vote
One of the possibilities could be to try to mount the backup image and just copy the files to your new drive having previously created a filesystem on the new drive. This post describes how you can prepare a clonezilla image for mounting. It looks like you are going to need a lot of space, though, to decompress the image.
add a comment |
up vote
0
down vote
up vote
0
down vote
One of the possibilities could be to try to mount the backup image and just copy the files to your new drive having previously created a filesystem on the new drive. This post describes how you can prepare a clonezilla image for mounting. It looks like you are going to need a lot of space, though, to decompress the image.
One of the possibilities could be to try to mount the backup image and just copy the files to your new drive having previously created a filesystem on the new drive. This post describes how you can prepare a clonezilla image for mounting. It looks like you are going to need a lot of space, though, to decompress the image.
answered Aug 9 '14 at 9:34
bodgix
1
1
add a comment |
add a comment |
up vote
0
down vote
I was looking for a solution to a similar issue and want to share my outcome with you, in fact I had a windows notebook with a single-partitioned 750GB disk which wasn't booting anymore because of bad sectors but I had only a 160GB spare disk available; considering I knew the total amount of data on the source disk was about 32GB I got myself a copy of Hdd Regenerator to "repair" the bad sectors of the 750GB disk then I imaged it with Clonezilla.
Under Clonezilla I loaded the image then checked the options "-ICDS" in the first options screen and "-k1" in the second... the software restored the data and then the screen showed an error of some sort that I can't remember right now but was involved with space available on the target disk.
So I rebooted the system and started with the local disk (the one that I restored the image on), choose to "Load the (Windows) startup repair" which took a few minutes then I rebooted the system again and, after some grinding, it loaded Windows flawlessly!
add a comment |
up vote
0
down vote
I was looking for a solution to a similar issue and want to share my outcome with you, in fact I had a windows notebook with a single-partitioned 750GB disk which wasn't booting anymore because of bad sectors but I had only a 160GB spare disk available; considering I knew the total amount of data on the source disk was about 32GB I got myself a copy of Hdd Regenerator to "repair" the bad sectors of the 750GB disk then I imaged it with Clonezilla.
Under Clonezilla I loaded the image then checked the options "-ICDS" in the first options screen and "-k1" in the second... the software restored the data and then the screen showed an error of some sort that I can't remember right now but was involved with space available on the target disk.
So I rebooted the system and started with the local disk (the one that I restored the image on), choose to "Load the (Windows) startup repair" which took a few minutes then I rebooted the system again and, after some grinding, it loaded Windows flawlessly!
add a comment |
up vote
0
down vote
up vote
0
down vote
I was looking for a solution to a similar issue and want to share my outcome with you, in fact I had a windows notebook with a single-partitioned 750GB disk which wasn't booting anymore because of bad sectors but I had only a 160GB spare disk available; considering I knew the total amount of data on the source disk was about 32GB I got myself a copy of Hdd Regenerator to "repair" the bad sectors of the 750GB disk then I imaged it with Clonezilla.
Under Clonezilla I loaded the image then checked the options "-ICDS" in the first options screen and "-k1" in the second... the software restored the data and then the screen showed an error of some sort that I can't remember right now but was involved with space available on the target disk.
So I rebooted the system and started with the local disk (the one that I restored the image on), choose to "Load the (Windows) startup repair" which took a few minutes then I rebooted the system again and, after some grinding, it loaded Windows flawlessly!
I was looking for a solution to a similar issue and want to share my outcome with you, in fact I had a windows notebook with a single-partitioned 750GB disk which wasn't booting anymore because of bad sectors but I had only a 160GB spare disk available; considering I knew the total amount of data on the source disk was about 32GB I got myself a copy of Hdd Regenerator to "repair" the bad sectors of the 750GB disk then I imaged it with Clonezilla.
Under Clonezilla I loaded the image then checked the options "-ICDS" in the first options screen and "-k1" in the second... the software restored the data and then the screen showed an error of some sort that I can't remember right now but was involved with space available on the target disk.
So I rebooted the system and started with the local disk (the one that I restored the image on), choose to "Load the (Windows) startup repair" which took a few minutes then I rebooted the system again and, after some grinding, it loaded Windows flawlessly!
edited Nov 15 '15 at 18:36
slm♦
246k66506672
246k66506672
answered Nov 15 '15 at 17:31
Mario
1
1
add a comment |
add a comment |
up vote
0
down vote
since you have the 600gb empty you can mount your current HD and copy its files to the 600gb !
or
you can make a new backup using dd+gzip and you will have chance to restore your hard drive without problems of loosing space.
if you want to do that from your current runing os :
mount your current hd (since it is an ext4 it can be mounted on different places).
sudo mkdir ~/bk/{0,1}
sudo mount /dev/SRC_HD ~/bk/0
sudo mount /dev/DST_HD ~/bk/1
sudo copy -arxp ~/bk/0/* ~/bk/1/
now you will make some changes if you want to boot with 600gb
use blkid
to get HDs UIDs
SRC_HDUUID="7ahzj19f-a2b2-4f24-bb01-4ca7bc9fed3a"
DST_HDUUID="7aaeb19f-a2b2-4f24-ffc1-4ca7bc9fed3a"
sudo grep "$SRC_HDUUID" /etc /boot -rl | while read f
do
sed -i "s/$SRC_HDUUID/$DST_HDUUID/g" $f
done
sudo umount -fl ~/bk/*
update the grub in your current os it
sudo update-grub
reboot into your fresh copy inside $DST_HD and then wipe your SRC_HD or any.
if you want to do that from a live os with gzip dd gunzip :
backup again your SRC_HD to a raw image
dd if=/dev/SRC_HD | gzip -c > /inside/your600/image.img
restore it from the raw image
gunzip -c /inside/your600/image.img | dd of=/dev/SRC_HD
but before restoring it it's good to wash your SRC_HD
washing a hard drive is creating a file inside th hard drive filled up with zero, and removing that file!
sudo dd if=/dev/zero of=/where/hardrive/mountd/zero
acoording to the hd size it will take some time and it will stop with a 'disk full' mesage !
sudo rm /where/hardrive/mountd/zero
add a comment |
up vote
0
down vote
since you have the 600gb empty you can mount your current HD and copy its files to the 600gb !
or
you can make a new backup using dd+gzip and you will have chance to restore your hard drive without problems of loosing space.
if you want to do that from your current runing os :
mount your current hd (since it is an ext4 it can be mounted on different places).
sudo mkdir ~/bk/{0,1}
sudo mount /dev/SRC_HD ~/bk/0
sudo mount /dev/DST_HD ~/bk/1
sudo copy -arxp ~/bk/0/* ~/bk/1/
now you will make some changes if you want to boot with 600gb
use blkid
to get HDs UIDs
SRC_HDUUID="7ahzj19f-a2b2-4f24-bb01-4ca7bc9fed3a"
DST_HDUUID="7aaeb19f-a2b2-4f24-ffc1-4ca7bc9fed3a"
sudo grep "$SRC_HDUUID" /etc /boot -rl | while read f
do
sed -i "s/$SRC_HDUUID/$DST_HDUUID/g" $f
done
sudo umount -fl ~/bk/*
update the grub in your current os it
sudo update-grub
reboot into your fresh copy inside $DST_HD and then wipe your SRC_HD or any.
if you want to do that from a live os with gzip dd gunzip :
backup again your SRC_HD to a raw image
dd if=/dev/SRC_HD | gzip -c > /inside/your600/image.img
restore it from the raw image
gunzip -c /inside/your600/image.img | dd of=/dev/SRC_HD
but before restoring it it's good to wash your SRC_HD
washing a hard drive is creating a file inside th hard drive filled up with zero, and removing that file!
sudo dd if=/dev/zero of=/where/hardrive/mountd/zero
acoording to the hd size it will take some time and it will stop with a 'disk full' mesage !
sudo rm /where/hardrive/mountd/zero
add a comment |
up vote
0
down vote
up vote
0
down vote
since you have the 600gb empty you can mount your current HD and copy its files to the 600gb !
or
you can make a new backup using dd+gzip and you will have chance to restore your hard drive without problems of loosing space.
if you want to do that from your current runing os :
mount your current hd (since it is an ext4 it can be mounted on different places).
sudo mkdir ~/bk/{0,1}
sudo mount /dev/SRC_HD ~/bk/0
sudo mount /dev/DST_HD ~/bk/1
sudo copy -arxp ~/bk/0/* ~/bk/1/
now you will make some changes if you want to boot with 600gb
use blkid
to get HDs UIDs
SRC_HDUUID="7ahzj19f-a2b2-4f24-bb01-4ca7bc9fed3a"
DST_HDUUID="7aaeb19f-a2b2-4f24-ffc1-4ca7bc9fed3a"
sudo grep "$SRC_HDUUID" /etc /boot -rl | while read f
do
sed -i "s/$SRC_HDUUID/$DST_HDUUID/g" $f
done
sudo umount -fl ~/bk/*
update the grub in your current os it
sudo update-grub
reboot into your fresh copy inside $DST_HD and then wipe your SRC_HD or any.
if you want to do that from a live os with gzip dd gunzip :
backup again your SRC_HD to a raw image
dd if=/dev/SRC_HD | gzip -c > /inside/your600/image.img
restore it from the raw image
gunzip -c /inside/your600/image.img | dd of=/dev/SRC_HD
but before restoring it it's good to wash your SRC_HD
washing a hard drive is creating a file inside th hard drive filled up with zero, and removing that file!
sudo dd if=/dev/zero of=/where/hardrive/mountd/zero
acoording to the hd size it will take some time and it will stop with a 'disk full' mesage !
sudo rm /where/hardrive/mountd/zero
since you have the 600gb empty you can mount your current HD and copy its files to the 600gb !
or
you can make a new backup using dd+gzip and you will have chance to restore your hard drive without problems of loosing space.
if you want to do that from your current runing os :
mount your current hd (since it is an ext4 it can be mounted on different places).
sudo mkdir ~/bk/{0,1}
sudo mount /dev/SRC_HD ~/bk/0
sudo mount /dev/DST_HD ~/bk/1
sudo copy -arxp ~/bk/0/* ~/bk/1/
now you will make some changes if you want to boot with 600gb
use blkid
to get HDs UIDs
SRC_HDUUID="7ahzj19f-a2b2-4f24-bb01-4ca7bc9fed3a"
DST_HDUUID="7aaeb19f-a2b2-4f24-ffc1-4ca7bc9fed3a"
sudo grep "$SRC_HDUUID" /etc /boot -rl | while read f
do
sed -i "s/$SRC_HDUUID/$DST_HDUUID/g" $f
done
sudo umount -fl ~/bk/*
update the grub in your current os it
sudo update-grub
reboot into your fresh copy inside $DST_HD and then wipe your SRC_HD or any.
if you want to do that from a live os with gzip dd gunzip :
backup again your SRC_HD to a raw image
dd if=/dev/SRC_HD | gzip -c > /inside/your600/image.img
restore it from the raw image
gunzip -c /inside/your600/image.img | dd of=/dev/SRC_HD
but before restoring it it's good to wash your SRC_HD
washing a hard drive is creating a file inside th hard drive filled up with zero, and removing that file!
sudo dd if=/dev/zero of=/where/hardrive/mountd/zero
acoording to the hd size it will take some time and it will stop with a 'disk full' mesage !
sudo rm /where/hardrive/mountd/zero
edited Feb 4 '16 at 13:33
answered Feb 4 '16 at 13:20
Jonas
873515
873515
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f118370%2frestoring-a-big-partition-to-a-smaller-partition-with-clonezilla%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown