Recent Changes

Friday, February 19

  1. page Migrating Lenovo X220 to larger SSD including recovery partition edited Migrating Lenovo X220 to larger SSD including recovery partition Goal

    Migrating Lenovo X220 to larger SSD including recovery partition
    Goal
    (view changes)
    9:24 am
  2. page Migrating Lenovo X220 to larger SSD including recovery partition edited ... dd if=/dev/sda3 of=/dev/sdb3 bs=1M The copying takes around 3 hours and I had transfer speeds…
    ...
    dd if=/dev/sda3 of=/dev/sdb3 bs=1M
    The copying takes around 3 hours and I had transfer speeds of about 30MB/s.
    ...
    the machine -- it's straightforward, but if you are unsure consult the "X220 Hardware Maintenance Manual" -- and make
    into Windows and
    into the recovery partition (F11).
    (view changes)
    8:09 am
  3. page Migrating Lenovo X220 to larger SSD including recovery partition edited ... You see (from left to right) /dev/sda1 directly followed by /dev/sda2, then a "hole"…
    ...
    You see (from left to right) /dev/sda1 directly followed by /dev/sda2, then a "hole" with unallocated sectors, then /dev/sda3, and finally another "hole".
    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.
    *SanitySanity check: Reboot
    Checking file system [...]
    [...]
    ...
    After this -- keep your fingers crossed -- Windows will come up.
    Sanity check: Reboot into recovery partition (F11).
    *BootBoot again into
    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 partition as big as possible. Keep the "Align to MiB" setting. Exit the dialog and execute the new layout with Edit -> Apply All Operations.
    You are done. Again boot into Windows and the recovery partition to make sure that everything is fine.
    (view changes)
    7:42 am
  4. page Migrating Lenovo X220 to larger SSD including recovery partition edited ... partx -u /dev/sdb As a sanity check make sure the partition tables of both disks look the sam…
    ...
    partx -u /dev/sdb
    As a sanity check make sure the partition tables of both disks look the same:
    code
    partx -s /dev/sda ; partx -s /dev/sdb
    * CopyCopy over all
    dd if=/dev/sda1 of=/dev/sdb1 bs=1M
    dd if=/dev/sda2 of=/dev/sdb2 bs=1M
    dd if=/dev/sda3 of=/dev/sdb3 bs=1M
    The copying takes around 3 hours and I had transfer speeds of about 30MB/s.
    * SanitySanity check: Put
    ...
    can boot
    ** into

    into
    Windows and
    ** into

    into
    the recovery partition (F11).
    * Boot

    Boot
    into the
    ...
    live (http://gparted.org/livecd.php).
    ** You

    You
    see (from
    ...
    another "hole".
    ** Right-click

    Right-click
    on /dev/sda3
    *Sanity check: Reboot into Windows. You may see a message along the lines of
    Checking file system [...]
    ...
    CHKDSK is verifying files ...
    [...]
    code
    After this -- keep your fingers crossed -- Windows will come up.
    Sanity check: Reboot into recovery partition (F11).
    (view changes)
    7:39 am
  5. page Migrating Lenovo X220 to larger SSD including recovery partition edited ... Layout of old SSD The SSD has 3 partitions: One for the Windows drivers, a C: partition for t…
    ...
    Layout 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:
    ...
    Boot Start End End Sectors Size
    /dev/sda1 * 2048 3074047 3072000 1.5G 7 NTFS/exFAT
    /dev/sda2 3074048 288002047 28492800 135.9G 7 NTFS/exFAT
    ...
    code
    partx -s /dev/sda ; partx -s /dev/sdb
    #* Copy over
    ...
    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.

    The copying takes around 3 hours and I had transfer speeds of about 30MB/s.
    *
    Sanity check:
    ...
    sure that
    you
    you can boot
    -

    **
    into Windows and
    -

    **
    into the
    ...
    partition (F11).
    8.

    *
    Boot into
    ...
    Live Install imageImage and (install first and then) run "gparted" or use Gparted live.
    Right-click
    live (http://gparted.org/livecd.php).
    ** You see (from left to right) /dev/sda1 directly followed by /dev/sda2, then a "hole" with unallocated sectors, then /dev/sda3, and finally another "hole".
    ** Right-click
    on /dev/sda3
    ...
    the dialog
    that
    that pops up
    ...
    very right
    and
    and then move
    ...
    a result
    the
    the recovery partition
    ...
    layout and
    has
    has a mimimum
    ...
    Keep the Align"Align to MiBMiB" setting. Exit
    the
    the dialog and
    ...
    Apply All
    Operations.
    9. Sanity
    Operations.
    *Sanity
    check: Reboot
    ...
    message along
    the
    the lines of:of
    Checking file system [...]
    [...]
    CHKDSK is verifying files ...
    After[...]
    code
    After
    this -- keep your fingers crossed -- Windows will come up.
    10. Sanity

    Sanity
    check: Reboot
    ...
    partition (F11).
    11. Boot

    *Boot again
    into the
    ...
    Live Install imageImage or Gparted
    ...
    dialog that
    pops
    pops up move
    ...
    make this
    partion
    partition as big
    ...
    Keep the Align"Align to MiBMiB" setting. Exit the
    dialog
    dialog and execute
    ...
    All Operations.
    12. You

    You
    are done.
    ...
    recovery partition
    to
    to make sure
    ...
    is fine.

    (view changes)
    7:18 am
  6. 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
  7. 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
  8. 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

More