Recent Changes

Friday, February 19

  1. page Migrating Lenovo X220 to larger SSD including recovery partition edited ... /dev/sda1 * 2048 3074047 3072000 1.5G 7 NTFS/exFAT /dev/sda2 …
    ...
    /dev/sda1 * 2048 3074047 3072000 1.5G 7 NTFS/exFAT
    /dev/sda2 3074048 288002047 28492800 135.9G 7 NTFS/exFAT
    /dev/sda3 288002048 312578047 312578047 2457600 11.7G
    Migration steps
    If you (still) have Windows on the X220, make a "Recovery Media". There is a dedicated Lenovo tool called "Create Recovery Media". Search for "recovery" on the Start menu in order to find it. Instruct the tool to use use an external USB drive. You can do this only once! In the creation process the USB drive gets formatted (to NTFS). The rescue media can then be accessed by pressing F12 during boot-up and selecting the USB drive as boot medium. You can still put your own files on the USB drive alongside the recovery data.
    Leave old SSD in machine, connect new SSD with USB-to-SATA-cable.
    ...
    Install image and open a terminal window
    Confirm with "lsblk" that old SSD is /dev/sda and new SSD is /dev/sdb.
    3. MakeMake an exact
    dd if=/dev/sda of=/dev/sdb bs=512 count=1
    4. Re-readRe-read partition table for /dev/sdb:/dev/sdb. You can reboot into Debian Live Install, or if its available, use
    partprobe
    or otherwise the following should work as well:
    partx -u /dev/sdb (?)
    On Debian/Ubuntu you can install partprobe with
    apt-get install parted
    5. As

    As
    a sanity
    ...
    both disks
    look
    look the same:
    code

    partx -s /dev/sda ; partx -s /dev/sdb
    6.# Copy over all partitions, for examplepartitions:
    dd if=/dev/sda1 of=/dev/sdb1 bs=1M & ddpid=$! ; kill -USR1 $ppid
    dd if=/dev/sda2 of=/dev/sdb2 bs=1M & ddpid=$! ; kill -USR1 $ppid
    (view changes)
    6:58 am
  2. page Migrating Lenovo X220 to larger SSD including recovery partition edited ... Put the ISO image on the USB stick: cp <file>.iso /dev/sdb Factory-shipped SSD's layo…
    ...
    Put the ISO image on the USB stick:
    cp <file>.iso /dev/sdb
    Factory-shipped SSD's layoutLayout of old SSD
    The SSD has 3 partitions: One for the Windows drivers, a C: partition for the Windows OS and user data, and a Q: recovery partition (labeled Lenovo_Recovery). From GNU/Linux's perspective the disk looks as follows:
    Device Boot Start Start End Sectors
    /dev/sda1 * 2048 3074047 3072000 1.5G 7 NTFS/exFAT
    /dev/sda2 3074048 3074048 288002047 28492800
    ...
    NTFS/exFAT
    /dev/sda3 288002048 288002048 312578047 2457600
    Migration steps
    If you (still) have Windows on the X220, make a "Recovery Media". There is a dedicated Lenovo tool called "Create Recovery Media". Search for "recovery" on the Start menu in order to find it. Instruct the tool to use use an external USB drive. You can do this only once! In the creation process the USB drive gets formatted (to NTFS). The rescue media can then be accessed by pressing F12 during boot-up and selecting the USB drive as boot medium. You can still put your own files on the USB drive alongside the recovery data.
    Leave old SSD in machine, connect new SSD with USB-to-SATA-cable.
    Boot (F12) into Debin Live Install image
    Confirm with "lsblk" that old SSD is /dev/sda and new SSD is /dev/sdb.
    3. Make an exact copy of the MBR and partition table:
    dd if=/dev/sda of=/dev/sdb bs=512 count=1
    4. Re-read partition table for /dev/sdb:
    partprobe
    or
    partx -u /dev/sdb (?)
    On Debian/Ubuntu you can install partprobe with
    apt-get install parted
    5. As a sanity check make sure the partition tables of both disks
    look the same:
    partx -s /dev/sda ; partx -s /dev/sdb
    6. Copy over all partitions, for example
    dd if=/dev/sda1 of=/dev/sdb1 bs=1M & ddpid=$! ; kill -USR1 $ppid
    dd if=/dev/sda2 of=/dev/sdb2 bs=1M & ddpid=$! ; kill -USR1 $ppid
    dd if=/dev/sda3 of=/dev/sdb3 bs=1M & ddpid=$! ; kill -USR1 $ppid
    7. Sanity check: Put the new SSD into the machine and make sure that
    you can boot
    - into Windows and
    - into the recovery partition (F11).
    8. Boot into the Debin Live Install image or Gparted live.
    Right-click on /dev/sda3 and select Resize/Move. In the dialog
    that pops up first move the right-pointing arrow to the very right
    and then move the left-pointing arrow to the very right. As a result
    the recovery partition is now at the very right of the layout and
    has a mimimum size (8.85 GiB). Keep the Align to MiB setting. Exit
    the dialog and execute the new layout with Edit -> Apply All
    Operations.
    9. Sanity check: Reboot into Windows. You may see a message along
    the lines of:
    Checking file system [...]
    [...]
    CHKDSK is verifying files ...
    After this Windows will come up.
    10. Sanity check: Reboot into recovery partition (F11).
    11. Boot into the Debin Live Install image or Gparted live.
    Right-click on /dev/sda2 and select Resize/Move. In the dialog that
    pops up move the right-pointing arrow to the very right to make this
    partion as big as possible. Keep the Align to MiB setting. Exit the
    dialog and execute the new layout with Edit -> Apply All Operations.
    12. You are done. Again boot into Windows and the recovery partition
    to make sure that everything is fine.

    (view changes)
    6:50 am
  3. page Migrating Lenovo X220 to larger SSD including recovery partition edited ... Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 …
    ...
    Device Boot Start End Sectors Size Id Type
    /dev/sda1 * 2048 3074047 3072000 1.5G 7 NTFS/exFAT
    UUID: b8544055e-01, Flags: boot
    /dev/sda2 3074048 288002047 28492800 135.9G 7 NTFS/exFAT
    UUID: b8544055e-01
    /dev/sda3 288002048 312578047 2457600 11.7G 7 NTFS/exFAT
    UUID: b8544055e-01
    Migration steps
    (view changes)
    6:31 am
  4. page Migrating Lenovo X220 to larger SSD including recovery partition edited ... Lenovo X220 with the old, factory-shipped SSD drive (Intel SSDSA2BW160G3L, 160GB, 2.5" x …
    ...
    Lenovo X220 with the old, factory-shipped SSD drive (Intel SSDSA2BW160G3L, 160GB, 2.5" x 7mm, SATA II)
    New SSD drive: Samsung SSD 850 PRO, MZ-7KE512BW, 512GB, SATA III
    n.b.: All X220s are supporting SATA III, I believe.
    USB-to-SATA-cable (it has 7+15 pins for power/data-connectors)
    Put a Debian Live Install (https://www.debian.org/CD/live/) image on a 2GB USB stick.
    ...
    Put the ISO image on the USB stick:
    cp <file>.iso /dev/sdb
    Factory-shipped SSD's layout
    The SSD has 3 partitions: One for the Windows drivers, a C: partition for the Windows OS and user data, and a Q: recovery partition (labeled Lenovo_Recovery). From GNU/Linux's perspective the disk looks as follows:
    Device Boot Start End Sectors Size Id Type
    /dev/sda1 * 2048 3074047 3072000 1.5G 7 NTFS/exFAT
    UUID: b8544055e-01, Flags: boot
    /dev/sda2 3074048 288002047 28492800 135.9G 7 NTFS/exFAT
    UUID: b8544055e-01
    /dev/sda3 288002048 312578047 2457600 11.7G 7 NTFS/exFAT
    UUID: b8544055e-01

    Migration steps
    (view changes)
    6:23 am
  5. page Migrating Lenovo X220 to larger SSD including recovery partition edited ... Preamble I will describe the steps that I did, trusting the you will be able to make suitable…
    ...
    Preamble
    I will describe the steps that I did, trusting the you will be able to make suitable changes to accommodate your own set-up and needs. Please understand that I won't be able to answer question because I don't really have the expertise. I did this once and hope I won't have to do this ever again...
    ...
    tried out the Samsung Data
    ...
    3.0 tool (http://www.samsung.com/global/business/semiconductor/minisite/SSD/global/html/support/downloads.html) that came
    ...
    the new SSD disk with a proper bootable Q: partition and then told the
    ...
    but instead toof leaving it
    ...
    wiped it out.out... So, again,
    ...
    use it.
    I only found one decent post related to the topic from Brad Erickson that got me started on the right track: http://eosrei.net/articles/2011/03/copy-functional-recovery-partition-new-hard-disk. You might find it useful as well.

    Set-up
    Lenovo X220 with the old, factory-shipped SSD drive (Intel SSDSA2BW160G3L, 160GB, 2.5" x 7mm, SATA II)
    (view changes)
    6:13 am
  6. page Migrating Lenovo X220 to larger SSD including recovery partition edited Migrating Lenovo X220 to larger SSD including recovery partition Goal ... with F11. Even …
    Migrating Lenovo X220 to larger SSD including recovery partition
    Goal
    ...
    with F11. Even
    Even
    if you
    ...
    its factory default state whenbefore selling it
    Preamble
    I will describe the steps that I did, trusting the you will be able to make suitable changes to accommodate your own set-up and needs. Please understand that I won't be able to answer question because I don't really have the expertise. I did this once and hope I won't have to do this ever again...
    After spending quite a bit of time looking around for information on the Internet on how to accomplish such a migration, I could not find any decent instructions. Many posts mention "free" commercial tools, but I am not particularly happy if I have to rely on software that is not open source. I tried out Samsung Data Migration 3.0 tool that came with the new SSD drive -- and it's definitely not up to the task! To be fair, the smallprint says cloning of recovery partitions is not supported. Because of this I prepared the new disk with a proper Q: partition and told the Samsung tool to not clone Q:, but instead to leaving it along it wiped it out. So, again, don't use it.
    Set-up
    Lenovo X220 with the old, factory-shipped SSD drive (Intel SSDSA2BW160G3L, 160GB, 2.5" x 7mm, SATA II)
    (view changes)
    1:24 am
  7. page Migrating Lenovo X220 to larger SSD including recovery partition edited Goal Migrating the factory SSD drive of a Lenovo X220 to a new, larger SSD drive keeping all pa…

    Goal
    Migrating the factory SSD drive of a Lenovo X220 to a new, larger SSD drive keeping all partitions intact, especially keeping the recovery partition (Lenovo_Recovery, drive letter Q:) functional so that it's possible to boot into it with F11. Even if you are a GNU/Linux user this has the benefit that you can restore the machine to its factory state when selling it off.
    Preamble

    I will describe the steps that I did, trusting the you will be able to make suitable changes to accommodate your own set-up and needs. Please understand that I won't be able to answer question because I don't really have the expertise. I did this once and hope I won't have to do this ever again...
    Goal: Migrating the factory SSD drive of a Lenovo X220 to a new, larger SSD drive keeping all partitions intact, especially keeping the recovery partition (Lenovo_Recovery, drive letter Q:) functional so that it's possible to boot into it with F11. Even if you are a GNU/Linux user this has the benefit that you can restore the machine to its factory state when selling it off.
    Set-up
    Lenovo X220 with the old, factory-shipped SSD drive (Intel SSDSA2BW160G3L, 160GB, 2.5" x 7mm, SATA II)
    ...
    cp <file>.iso /dev/sdb
    Migration steps

    (view changes)
    1:16 am

Thursday, February 18

  1. page Migrating Lenovo X220 to larger SSD including recovery partition edited I will describe the steps that I did, trusting the you will be able to make suitable changes to acc…
    I will describe the steps that I did, trusting the you will be able to make suitable changes to accommodate your own set-up and needs. Please understand that I won't be able to answer question because I don't really have the expertise. I did this once and hope I won't have to do this ever again...
    ...
    user this has the benefit
    Set-up
    Lenovo X220 with the old, factory-shipped SSD drive (Intel SSDSA2BW160G3L, 160GB, 2.5" x 7mm, SATA II)
    New SSD drive: Samsung SSD 850 PRO, MZ-7KE512BW, 512GB, SATA III
    USB-to-SATA-cable (it has 7+15 pins for power/data-connectors)
    ...
    2GB USB stick:stick.
    Get a "hybrid" ISO image at http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/
    Find your the device of the USB stick with
    ...
    └─sdb2 8:18 1 3.1M 0 part
    ...
    ...
    the USB stickstick:
    cp <file>.iso /dev/sdb
    Migration steps
    (view changes)
    11:14 am
  2. page Migrating Lenovo X220 to larger SSD including recovery partition edited ... Put a Debian Live Install (https://www.debian.org/CD/live/) image on a 2GB USB stick: Get a &…
    ...
    Put a Debian Live Install (https://www.debian.org/CD/live/) image on a 2GB USB stick:
    Get a "hybrid" ISO image at http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/
    ...
    your the namedevice of the
    ...
    stick with
    #lsblk

    # lsblk

    ...
    sdb 8:168:16 1 1.9G
    ├─sdb1 8:17 1 264M 0 part
    └─sdb2 8:18 1 3.1M 0 part
    ...
    Put the ISO image on the USB stick
    cp <file>.iso /dev/sdb
    *Migration steps*Migration steps
    (view changes)
    11:11 am
  3. page Migrating Lenovo X220 to larger SSD including recovery partition edited I will describe the steps that I did, trusting the you will be able to make suitable changes to acc…
    I will describe the steps that I did, trusting the you will be able to make suitable changes to accommodate your own set-up and needs. Please understand that I won't be able to answer question because I don't really have the expertise. I did this once and hope I won't have to do this ever again...
    *Goal:*Goal: Migrating the
    ...
    it off.
    *Set-up*

    Set-up

    Lenovo X220 with the old, factory-shipped SSD drive (Intel SSDSA2BW160G3L, 160GB, 2.5" x 7mm, SATA II)
    New SSD drive: Samsung SSD 850 PRO, MZ-7KE512BW, 512GB, SATA III
    USB-to-SATA-cable (it has 7+15 pins for power/data-connectors)
    DebianPut a Debian Live Install image: https://www.debian.org/CD/live/. To(https://www.debian.org/CD/live/) image on a 2GB USB stick:
    Get a "hybrid" ISO image at http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/
    Find your the name of the USB stick with
    #lsblk
    ...
    sdb 8:16 1 1.9G 0 disk
    ├─sdb1 8:17 1 264M 0 part
    └─sdb2 8:18 1 3.1M 0 part
    ...
    Put the ISO image on the USB stick
    cp <file>.iso /dev/sdb

    *Migration steps*
    (view changes)
    11:09 am

More