Menu

Restore partion with image on same device

Help
Love_LInux
2007-08-15
2013-04-05
  • Love_LInux

    Love_LInux - 2007-08-15

    I have an image stored on sda7. I want to restore to sda3. When I do a restore, Clonezilla complains that a partition is mounted in sda and restoration cannot be done. I umount sda7 and try again. Same error.

    Any ideas?
    Thanks

     
    • Steven Shiau

      Steven Shiau - 2007-08-15

      Try to enter command line, and run
      1. sudo su -
      2. cat /proc/partitions
      3. cat /proc/mounts
      4. fdisk -l /dev/sda

      Please post the results of 2-4.

       
    • Love_LInux

      Love_LInux - 2007-08-15

      Error
      /dev/sda is busy! Some partition is mounted
      /dev/sda6 on /home/partimag type vfat (rw)
      You have to umount them first

      I figured out the problem.  I first tried ocs -k and that did not work. I then tried adding -k when the GUI came up with the default options. Not sure why, but that worked. Can anyone explain why?

       
    • Love_LInux

      Love_LInux - 2007-08-16

      2. cat /proc/partitions
      Major  Minor      #Blocks      Name
      8       0    117220824    sda
      8       1    30716248    sda1
      8    2    20482875    sda2
      8    3    20482875    sda3
      8    4    1        sda4
      8    5    2048256        sda5
      8    6    43487892    sda6
      7    0    67872        loop0

      4. fdisk -l /dev/sda
      Command fdisk not found

       
      • Steven Shiau

        Steven Shiau - 2007-08-16

        You forgot to run "sudo su -" to become root. So you did not show any messages about fdisk. Do that again before running fdisk.

         
    • Love_LInux

      Love_LInux - 2007-08-17

      I should have caught that error.  Error on my part with the sudo su -

      device        boot    Start    End    blocks        id    System
      /dev/sda1    *    1    3824    30716248+    7    HPFS/NTFS
      /dev/sda2        3825    6374    20482875    b    w95 fat32
      /dev/sda3        6375    8924    20482875    83    Linux
      /dev/sda4        8925    14593    45536242+    5    Extended
      /dev/sda5        14339    14593    2048256        82    Linux swap/Solaris
      /dev/sda6        8925    14338    43487892    b    W95 Fat32
      Partition table entries are not in disk order   

       
    • Steven Shiau

      Steven Shiau - 2007-08-17

      You should mount sda7 as /home/partimag, and umount sda3.
      The target partition can not be mounted.
      Remember to choose -k (do not run sfdisk, i.e. do not create partition table again).
      ///NOTE/// It's risky. Use it very carefully! Since sda7 and sda3 are all parts of sda. If you re-partition sda, your data might lose.
      It's better to save/put the image in difference disk or in the network-based directory.

       
    • Love_LInux

      Love_LInux - 2007-08-19

      I thought so.  Unfortunately, I have a laptop with a cd burner and 1 hard drive.  My desktop has a dvd burner.  I was hoping that I could use a different partition on the same harddrive. Image is over 1GB in size.  I should have paid the extra 10 for the dvd burner.  Linux has problems getting wifi working on this DELL. I have to install the DELL windows driver with a Linux wrapper to get it working.

      Thanks for the help.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.