Cloning a dual boot system from HDD to SSD

72

Solution 1

Since you are moving from a large HD to a smaller SSD, you will need to copy partitions rather than "clone" the original hard drive.

Regarding the use of Clonezilla and "the documentation for it quite frankly seems a bit like a foreign language", have you seen the following two references? Both indicate how to resize the HD partitions, and copy the reduced-size partitions to the smaller SSD.

How to Clone Hard Drive to Smaller Drive http://geekyprojects.com/storage/how-to-clone-hard-drive-to-smaller-drive/

Replacing A Disk With A Smaller One Using Clonezilla Live http://preview.tinyurl.com/cnjm6yg

For me, the "foreign language" came in the form of Clonezilla's interface. I have never seen so many error/warning messages and had to fight my way through multiple text-based menu screens. However, the good news is that, once you have prevailed with the setup procedures, Clonezilla actually works flawlessly.

Finally, be prepared to use a Windows Recovery Disk to reset the MBR (since Windows seems to object to partitions being moved around) and perhaps also Rescatux (http://www.supergrubdisk.org/rescatux/) to re-establish the GRUB menu after Windows "thinks" it is back in control.

Solution 2

You should use Clonezilla Live. It's sort of like the Linux equivalent of Norton Ghost. Just boot off the CD and make an image of the entire disk onto an external hard drive. It does not matter what O/S you are trying to backup or restore. It will take a "snapshot" of the entire disk and lay it back down onto the new disk. It is very useful for whole-disk recoveries when disks sizes may have changed.

Solution 3

  1. Make separate images of your partitions to an external usb disk using Clonezilla.
  2. Format your SSD disk and create at least one partition (ntfs).
  3. Copy the image of your windows partition on the SSD disk. Restart the computer.
  4. Install fresh ubuntu beside windows. Restart the computer.
  5. Copy the image of your ubuntu partition on the new ubuntu partition (overwrite it).
  6. Now you can resize or create new partitions with Gparted.
Share:
72

Related videos on Youtube

WardaLyn
Author by

WardaLyn

Updated on September 18, 2022

Comments

  • WardaLyn
    WardaLyn over 1 year

    I have a listview using CustomAdapter. first, i try to display my listvew with ArrayAdapter and all item seems good. but when i try to change them with custom adapter all item was gone. here is my arraylist

    public ArrayList<HashMap<String,String>> getAllAssignment() {
        ArrayList<HashMap<String,String>> daftarAssignment = new ArrayList<HashMap<String,String>>();
        Cursor cursor = database.rawQuery("select customer.name from assignment, customer where"+
        " assignment.customerid=customer.customerid and employeeid = '"+Globals.salesid+"'", null);
        cursor.moveToFirst();
        if (cursor.moveToFirst()) {
            do {
                map1 = new HashMap<String,String>(); 
                name=cursor.getString(cursor.getColumnIndex(DBHelper.NAME));
                map1.put("one",String.valueOf(daftarAssignment.size()));
                map1.put("two",name);
               daftarAssignment.add(map1);  
            } while (cursor.moveToNext());
        }
        cursor.close();
        return daftarAssignment;
      } 
    

    here is my adapter

    ListAssignment= dataSource.getAllAssignment();
    adapter = new CustomAdapter(ListAssignment.this, ListAssignment, R.layout.item_list,
                    new String[] {"two"},
                    new int[] {R.id.edtype});
    

    and my CustomAdapter()

    package ims.app.mobileorder;
    import java.util.ArrayList;
    import java.util.HashMap;
    import android.content.Context;
    import android.graphics.Color;
    import android.view.View;
    import android.view.ViewGroup;
    import android.widget.SimpleAdapter;
    
    public class CustomAdapter extends SimpleAdapter{
        private int[] colors = new int[] { Color.parseColor("#3BB9FF"), Color.parseColor("#306EFF") };  
        public CustomAdapter(Context context, ArrayList<HashMap<String,String>> mylist, int itemTo,  
                String[] from, int[] to) {  
        super(context, mylist, itemTo, from, to);
        }
        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
            View view = super.getView(position, convertView, parent);
            int colorPos = position % colors.length;
            view.setBackgroundColor(colors[colorPos]);
            return view;
        }
    
    }
    
    • SweetWisher ツ
      SweetWisher ツ about 10 years
      show your adapter code
    • Imtiyaz Khalani
      Imtiyaz Khalani about 10 years
      first try to print list size after calling getAllAssignment() method using Log class.
    • SweetWisher ツ
      SweetWisher ツ about 10 years
      Check getCount mush return data.size() / data.length
    • Tarun - Systematix
      Tarun - Systematix about 10 years
      Check the size of daftarAssignment.size(); and the show me how to call the CustomAdapter function. So i can provide the exact solution.
    • Piyush
      Piyush about 10 years
      where are you call this ArrayList<HashMap<String,String>> ListAssignment = getAllAssignment();?
    • Mark Buikema
      Mark Buikema about 10 years
      Can you show code of your CustomAdapter?
    • WardaLyn
      WardaLyn about 10 years
      @SweetWisherツ i've show my adapter
    • WardaLyn
      WardaLyn about 10 years
      @Imtiyaz i'll try your advice
    • WardaLyn
      WardaLyn about 10 years
      @PiyushGupta on my public class
    • WardaLyn
      WardaLyn about 10 years
      @Imtiyaz i've try to calling getAllAssignment() method using Log,all value is appear
  • WardaLyn
    WardaLyn about 10 years
    where should i get values from sqlite
  • MycrofD
    MycrofD over 7 years
    quick question: will simple cloning work for a dual boot system? making it a separate question might make it a target for the label duplicate.