Author Topic: Clonezilla Restore Failure on New HD [SOLVED]  (Read 7714 times)

Offline bilyo

  • Sr. Member
  • ****
  • Posts: 268
Re: Clonezilla Restore Failure on New HD
« Reply #15 on: May 09, 2012, 09:48:34 AM »
OK. I was afraid we had hit a snag right off the bat. Here is fdisk readout:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3bb2cafd

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       12748   102398278+  83  Linux
/dev/sda2           12749       13258     4096575   82  Linux swap / Solaris
/dev/sda3           13259       30401   137700302+  83  Linux

Disk /dev/sdb: 1500.3 GB, 1500299395072 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003a97d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       95612   768003358+   7  HPFS/NTFS
/dev/sdb2           95613      182401   697132642+  83  Linux

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11597
  • ----IOFLU----
Re: Clonezilla Restore Failure on New HD
« Reply #16 on: May 09, 2012, 10:49:29 AM »
OK. I was afraid we had hit a snag right off the bat. Here is fdisk readout:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3bb2cafd

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       12748   102398278+  83  Linux
/dev/sda2           12749       13258     4096575   82  Linux swap / Solaris
/dev/sda3           13259       30401   137700302+  83  Linux

Disk /dev/sdb: 1500.3 GB, 1500299395072 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003a97d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       95612   768003358+   7  HPFS/NTFS
/dev/sdb2           95613      182401   697132642+  83  Linux

Very good.

To verify the mount points;

[root@localhost ~]# ls /mnt                        <Enter>

You should see the two directories here and there only. If they are not there, you will have rebooted the liveCD, and they will have to be created again, as before.

If that is as it should be, continue with;

[root@localhost ~]# mount /dev/sdb2 /mnt/there                       <Enter>

[root@localhost ~]# mkdir /mnt/there/root /mnt/there/home                           <Enter>

[root@localhost ~]# mount /dev/sda1 /mnt/here                       <Enter>

[root@localhost ~]# ls -l /mnt/here                          <Enter>

I'm assuming that /dev/sda1 is the installed / partition, and the home partition is /dev/sda3. The last command is to confirm, or disprove that assumption.

Post your results.

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline bilyo

  • Sr. Member
  • ****
  • Posts: 268
Re: Clonezilla Restore Failure on New HD
« Reply #17 on: May 09, 2012, 11:33:31 AM »
[root@localhost ~]# ls /mnt
here/  there/
[root@localhost ~]# mount /dev/sdb2 /mnt/there
[root@localhost ~]# mkdir /mnt/there/root /mnt/there/home
[root@localhost ~]# mount /dev/sda1 /mnt/here
[root@localhost ~]# ls -l /mnt/here
total 3664
drwxr-xr-x   2 root root     4096 2012-04-30 18:15 bin/
drwxr-xr-x   3 root root     4096 2012-05-09 11:27 boot/
-rw-------   1 root root  2996738 2012-05-02 21:28 dead.letter
drwxr-xr-x  24 root root   135168 2010-10-26 18:46 dev/
drwxr-xr-x 126 root root    12288 2012-05-09 12:10 etc/
drwxr-xr-x   2 root root     4096 2010-10-26 18:46 home/
drwxr-xr-x   2 root root     4096 2010-10-26 21:39 initrd/
drwxr-xr-x  17 root root    12288 2012-04-24 17:10 lib/
drwx------   2 root root    16384 2010-10-26 18:44 lost+found/
drwxrwxr-x   4 root guest    4096 2012-05-09 11:27 media/
drwxr-xr-x   6 root root     4096 2012-04-21 22:09 mnt/
-rw-r--r--   1 root root   465486 2012-04-14 15:44 Module.symvers
-rw-r--r--   1 root root    26143 2010-07-05 06:01 mylivecd-0.9.3-3pclos2010.i586.rpm
-rw-r--r--   1 root root        0 2010-11-30 18:02 null
drwxr-xr-x   9 root root     4096 2011-12-04 22:59 opt/
drwxr-xr-x   2 root root     4096 2010-10-26 18:46 proc/
drwxr-x---  41 root root     4096 2012-05-03 11:30 root/
drwxr-xr-x   2 root root    12288 2012-04-24 17:10 sbin/
drwxr-xr-x   3 root root     4096 2010-10-26 21:14 srv/
drwxr-xr-x   2 root root     4096 2010-02-22 06:36 swap/
drwxr-xr-x   2 root root     4096 2010-10-26 18:46 sys/
drwxrwxrwt  21 root root     4096 2012-05-09 12:10 tmp/
drwxrwxr-x  14 root root     4096 2009-11-19 08:22 usr/
drwxr-xr-x  17 root root     4096 2011-05-09 21:00 var/
[root@localhost ~]#

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11597
  • ----IOFLU----
Re: Clonezilla Restore Failure on New HD
« Reply #18 on: May 09, 2012, 12:26:32 PM »
[root@localhost ~]# ls /mnt
here/  there/
[root@localhost ~]# mount /dev/sdb2 /mnt/there
[root@localhost ~]# mkdir /mnt/there/root /mnt/there/home
[root@localhost ~]# mount /dev/sda1 /mnt/here
[root@localhost ~]# ls -l /mnt/here
total 3664
drwxr-xr-x   2 root root     4096 2012-04-30 18:15 bin/
drwxr-xr-x   3 root root     4096 2012-05-09 11:27 boot/
-rw-------   1 root root  2996738 2012-05-02 21:28 dead.letter
drwxr-xr-x  24 root root   135168 2010-10-26 18:46 dev/
drwxr-xr-x 126 root root    12288 2012-05-09 12:10 etc/
drwxr-xr-x   2 root root     4096 2010-10-26 18:46 home/
drwxr-xr-x   2 root root     4096 2010-10-26 21:39 initrd/
drwxr-xr-x  17 root root    12288 2012-04-24 17:10 lib/
drwx------   2 root root    16384 2010-10-26 18:44 lost+found/
drwxrwxr-x   4 root guest    4096 2012-05-09 11:27 media/
drwxr-xr-x   6 root root     4096 2012-04-21 22:09 mnt/
-rw-r--r--   1 root root   465486 2012-04-14 15:44 Module.symvers
-rw-r--r--   1 root root    26143 2010-07-05 06:01 mylivecd-0.9.3-3pclos2010.i586.rpm
-rw-r--r--   1 root root        0 2010-11-30 18:02 null
drwxr-xr-x   9 root root     4096 2011-12-04 22:59 opt/
drwxr-xr-x   2 root root     4096 2010-10-26 18:46 proc/
drwxr-x---  41 root root     4096 2012-05-03 11:30 root/
drwxr-xr-x   2 root root    12288 2012-04-24 17:10 sbin/
drwxr-xr-x   3 root root     4096 2010-10-26 21:14 srv/
drwxr-xr-x   2 root root     4096 2010-02-22 06:36 swap/
drwxr-xr-x   2 root root     4096 2010-10-26 18:46 sys/
drwxrwxrwt  21 root root     4096 2012-05-09 12:10 tmp/
drwxrwxr-x  14 root root     4096 2009-11-19 08:22 usr/
drwxr-xr-x  17 root root     4096 2011-05-09 21:00 var/
[root@localhost ~]#


Looks just like a / partition to me. ;D

Now comes the fun part;

[root@localhost ~]# rsync -av /mnt/here/ /mnt/there/root                    <Enter>

Note the trailing / at the end of /mnt/here/ as this is needed to copy only the contents of the directory, and not the directory itself. In this case, the content of the directory is everything on the entire /dev/sda1 partition, and it's being copied into the root directory you created on the /dev/sdb2 partition

You should see a lot of text scrolling up the screen. These are the files being copied. If the scrolling stops, and seems to be hung, it is because a very large file is being copied, like an .iso image, or .vdi image, if you have VirtualBox installed and have created some VMs. When you are returned to the prompt, the copy process has completed, and we can continue, with the home partition.

Post your results.
« Last Edit: May 09, 2012, 12:30:08 PM by Old-Polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline bilyo

  • Sr. Member
  • ****
  • Posts: 268
Re: Clonezilla Restore Failure on New HD
« Reply #19 on: May 09, 2012, 01:53:35 PM »
Here is the resulting statement (I assume you don't want the entire list  :) ):

sent 40908027717 bytes  received 2564923 bytes  21213685.58 bytes/sec
total size is 40893480303  speedup is 1.00

Can I safely assume that the internet connection is not going to screw this up?

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11597
  • ----IOFLU----
Re: Clonezilla Restore Failure on New HD
« Reply #20 on: May 09, 2012, 02:20:51 PM »
Here is the resulting statement (I assume you don't want the entire list  :) ):

sent 40908027717 bytes  received 2564923 bytes  21213685.58 bytes/sec
total size is 40893480303  speedup is 1.00

Can I safely assume that the internet connection is not going to screw this up?

It's not going to affect it at all. That's just a report on the transfer of data between disks. What you reported is quite sufficient.

Next we need to unmount that partition and mount the other one;

[root@localhost ~]# umount /mnt/here                           <Enter>

[root@localhost ~]# mount /dev/sda3 /mnt/here                          <Enter>

If you want to verify the mount;

[root@localhost ~]# ls -l /mnt/here                        <Enter>

You should see the normal user's directories and maybe a mysql directory. Next we do the copying again;

[root@localhost ~]# rsync -av /mnt/here/ /mnt/there/home                    <Enter>

Again you'll see the scrolling text, but this time it will be your personal data being copied to the home directory on /dev/sdb2.

Post your results.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline bilyo

  • Sr. Member
  • ****
  • Posts: 268
Re: Clonezilla Restore Failure on New HD
« Reply #21 on: May 09, 2012, 04:30:05 PM »
While waiting for your last reply, I guess it was a mistake to close the laptop and leave. When I returned, it would not wake back up and PCLOS "disconnected". I assumed that all I would have to do over is the initial "umount -a" and "mount" and then pick up where  we left off.  However, when I do "ls /mnt" I no longer see the directories here and there. Do I need to go through all the steps again?  No big deal. I know how to type. Just wondering. Using the file browser and looking in root on sdb2, I think I am seeing all the directories and files we transferred. But, I don't see the directory "there".

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11597
  • ----IOFLU----
Re: Clonezilla Restore Failure on New HD
« Reply #22 on: May 09, 2012, 05:20:12 PM »
While waiting for your last reply, I guess it was a mistake to close the laptop and leave. When I returned, it would not wake back up and PCLOS "disconnected". I assumed that all I would have to do over is the initial "umount -a" and "mount" and then pick up where  we left off.  However, when I do "ls /mnt" I no longer see the directories here and there. Do I need to go through all the steps again?  No big deal. I know how to type. Just wondering. Using the file browser and looking in root on sdb2, I think I am seeing all the directories and files we transferred. But, I don't see the directory "there".

You won't find that, the two directories /mnt/here and /mnt/there only existed in memory when using a liveCD. You should see the directories root and home on the /dev/sdb2 partition. If you shut down before doing the second rsync command, the home directory should still be empty.

You now need to reboot to the liveCD and redo the first three commands from Reply #12, then pick up from Reply #20, at:

[root@localhost ~]# mount /dev/sda3 /mnt/here                          <Enter>

Hey! Stuff happens!  ;D ;D

I've had to shut down when doing something like this myself. Restarting is just a few repeated commands, to be right back where you were.
;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline bilyo

  • Sr. Member
  • ****
  • Posts: 268
Re: Clonezilla Restore Failure on New HD
« Reply #23 on: May 10, 2012, 11:30:35 AM »
Here is results from rsync -av /mnt/here/ /mnt/there/home:

       (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
[root@localhost ~]# mount


/dev/root on / type rootfs (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
[root@localhost ~]# mkdir -p /mnt/here /mnt/there
[root@localhost ~]# ls /mnt
here/  there/
[root@localhost ~]# mount /dev/sda3 /mnt/here
[root@localhost ~]# ls -l /mnt/here
total 28
drwx------ 78 guest guest  4096 2012-05-10 11:44 bill/
drwx------ 35   501   503  4096 2012-02-19 12:40 kevin/
drwx------  2 root  root  16384 2010-10-26 18:45 lost+found/
drwx------  3 root  root   4096 2010-07-04 06:58 mysql/
[root@localhost ~]# rsync -av /mnt/here/ /mnt/there/home
sending incremental file list
created directory /mnt/there/home
./
.Trash-0/
.Trash-0/expunged/
.Trash-0/files/
.Trash-0/files/mondo110218-1.iso
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: write failed on "/mnt/there/home/.Trash-0/files/mondo110218-1.iso": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(302) [receiver=3.0.7]
rsync: connection unexpectedly closed (42 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]
[root@localhost ~]#

oops! ??

Sorry first couple of commands from reply #12 scrolled off the top.

I don't know how I could be out of space.  And, I don't know why the mondo110218-1.iso is there.  I emptied all trash before starting this.

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11597
  • ----IOFLU----
Re: Clonezilla Restore Failure on New HD
« Reply #24 on: May 10, 2012, 01:02:25 PM »
Here is results from rsync -av /mnt/here/ /mnt/there/home:

       (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
[root@localhost ~]# mount


/dev/root on / type rootfs (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
[root@localhost ~]# mkdir -p /mnt/here /mnt/there
[root@localhost ~]# ls /mnt
here/  there/
[root@localhost ~]# mount /dev/sda3 /mnt/here
[root@localhost ~]# ls -l /mnt/here
total 28
drwx------ 78 guest guest  4096 2012-05-10 11:44 bill/
drwx------ 35   501   503  4096 2012-02-19 12:40 kevin/
drwx------  2 root  root  16384 2010-10-26 18:45 lost+found/
drwx------  3 root  root   4096 2010-07-04 06:58 mysql/
[root@localhost ~]# rsync -av /mnt/here/ /mnt/there/home
sending incremental file list
created directory /mnt/there/home
./
.Trash-0/
.Trash-0/expunged/
.Trash-0/files/
.Trash-0/files/mondo110218-1.iso
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: write failed on "/mnt/there/home/.Trash-0/files/mondo110218-1.iso": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(302) [receiver=3.0.7]
rsync: connection unexpectedly closed (42 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]
[root@localhost ~]#

oops! ??

Sorry first couple of commands from reply #12 scrolled off the top.

I don't know how I could be out of space.  And, I don't know why the mondo110218-1.iso is there.  I emptied all trash before starting this.

Without making any changes, try;

[root@localhost ~]# df -h                                    <Enter>

Post your results.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline bilyo

  • Sr. Member
  • ****
  • Posts: 268
Re: Clonezilla Restore Failure on New HD
« Reply #25 on: May 10, 2012, 01:43:50 PM »
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/root             1.5G   42M  1.4G   3% /
/dev/sda3             130G   15G  115G  12% /mnt/here

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11597
  • ----IOFLU----
Re: Clonezilla Restore Failure on New HD
« Reply #26 on: May 10, 2012, 03:41:36 PM »
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/root             1.5G   42M  1.4G   3% /
/dev/sda3             130G   15G  115G  12% /mnt/here


I see the problem. You did not mount /dev/sdb2 on /mnt/there. What you did was fill the /mnt/there directory (existing only in memory) and simply exceeded the amount of memory allotted to that directory.
« Last Edit: May 10, 2012, 03:43:50 PM by Old-Polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline bilyo

  • Sr. Member
  • ****
  • Posts: 268
Re: Clonezilla Restore Failure on New HD
« Reply #27 on: May 10, 2012, 04:23:04 PM »
OK. Since I am going to put the contents of /mnt/here onto /mnt/there/home does it matter if /mnt/there is full? If it doesn't matter, then I need to:  mount /dev/sdb2  /mnt/there
and then: rsync -av /mnt/here/ /mnt/there/home
??
 

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11597
  • ----IOFLU----
Re: Clonezilla Restore Failure on New HD
« Reply #28 on: May 10, 2012, 04:31:04 PM »
OK. Since I am going to put the contents of /mnt/here onto /mnt/there/home does it matter if /mnt/there is full? If it doesn't matter, then I need to:  mount /dev/sdb2  /mnt/there
and then: rsync -av /mnt/here/ /mnt/there/home
??
 

In theory that would work. The amount of memory locked up means it isn't available to run the machine, so depending on your total RAM, may or may not be a problem. Rebooting will solve that, but would also necessitate recreating /mnt/here and /mnt/there, and mounting both partitions again, so probably worth trying first, and rebooting if a RAM shortage problem occurs. The nice thing about rsync is that it keeps a running check on what's been copied, so if a large copy job is interrupted, for any reason, the next time rsync is launched, it will pick up where it left off, rather than start anew.

Before mounting /dev/sdb2, you could try;

[root@localhost ~]# rm -rf /mnt/there/home/*                     <Enter>

...then;

[root@localhost ~]# rmdir /mnt/there/home                     <Enter>

...then;

[root@localhost ~]# mount /dev/sdb2 /mnt/there                   <Enter>

That should clear the stuff held in memory, thereby releasing it for use.
« Last Edit: May 10, 2012, 04:37:00 PM by Old-Polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline bilyo

  • Sr. Member
  • ****
  • Posts: 268
Re: Clonezilla Restore Failure on New HD
« Reply #29 on: May 10, 2012, 05:19:08 PM »
sent 14934999515 bytes  received 2192486 bytes  7798064.21 bytes/sec
total size is 14926001496  speedup is 1.00

It appears to have worked just fine. It's amazing what you can do when you speak the language properly.