Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #202568

Re: New SSD on a MacBook Pro

From Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups linux.debian.user
Subject Re: New SSD on a MacBook Pro
Date 2018-11-17 16:20 +0100
Message-ID <wVay6-eD-7@gated-at.bofh.it> (permalink)
References (2 earlier) <wUwAF-8fk-5@gated-at.bofh.it> <wUwU1-8mH-3@gated-at.bofh.it> <wUMm5-1ul-1@gated-at.bofh.it> <wUMFr-1Bp-1@gated-at.bofh.it> <wV2Ke-3kM-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>  4      23.2GB  31.2GB  8000MB  linux-swap(v1)  swap
>  5      31.4GB  121GB   89.8GB  ext4            linux

Didn't use LVM?  Too bad: that means there's a risk your new dirve and
partitions will get new identifiers so your fstab may need to be adjusted.

> Now, here is what I would perform:
>
> (1) Use macOS Time Machine to backup macOS on an external hard drive.
> (2) dd the linux partition into an image file:
> $ sudo dd bs=4M if=/dev/sda5 of=<ext_media>/debian_part.img
> (3) Install new drive.
> (4) Use macOS Recovery to restore macOS from the Time Machine backup.
> (5) I believe that point (4) will also restore the EFI partition, but will
> debian/grubx64.efi be preserved as well? Need to gather some info and
> check. Anyhow, I should have ended up with just two partitions: the EFI
> partition and the macOS partition.

macOS doesn't touch EFI, AFAIK, so don't expect the Time Machine to
touch it either.

This sounds rather complicated.
Here's what I'd do:

1- take out the old SSD and put it into an external reader that you can
   connect via USB
2- put the new SSD in
3- connect the old SSD via USB and boot to its macOS this way (if you
   can boot into Debian this way, even better).
4- create the same partitions on the new drive as you had on the old drive.
5- Use `dd` to copy the content of each partition from the old drive to
   the new drive.
6- reboot without the old drive.  You should be done.


        Stefan

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

New SSD on a MacBook Pro solitone <solitone@mail.com> - 2018-11-15 18:30 +0100
  Re: New SSD on a MacBook Pro deloptes <deloptes@gmail.com> - 2018-11-15 21:10 +0100
    Re: New SSD on a MacBook Pro solitone <solitone@mail.com> - 2018-11-15 21:40 +0100
      Re: New SSD on a MacBook Pro deloptes <deloptes@gmail.com> - 2018-11-15 22:00 +0100
        Re: New SSD on a MacBook Pro solitone <solitone@mail.com> - 2018-11-16 14:00 +0100
        Re: New SSD on a MacBook Pro solitone <solitone@mail.com> - 2018-11-16 14:30 +0100
          Re: New SSD on a MacBook Pro Stefan Monnier <monnier@iro.umontreal.ca> - 2018-11-16 14:50 +0100
            Re: New SSD on a MacBook Pro solitone <solitone@mail.com> - 2018-11-16 15:40 +0100
              Re: New SSD on a MacBook Pro Stefan Monnier <monnier@iro.umontreal.ca> - 2018-11-16 16:40 +0100
                Re: New SSD on a MacBook Pro deloptes <deloptes@gmail.com> - 2018-11-16 21:10 +0100
            Re: New SSD on a MacBook Pro solitone <solitone@mail.com> - 2018-11-17 08:00 +0100
              Re: New SSD on a MacBook Pro Stefan Monnier <monnier@iro.umontreal.ca> - 2018-11-17 16:20 +0100
                Re: New SSD on a MacBook Pro Dan Ritter <dsr@randomstring.org> - 2018-11-17 16:30 +0100
                Re: New SSD on a MacBook Pro Stefan Monnier <monnier@IRO.UMontreal.CA> - 2018-11-17 19:20 +0100
                Re: New SSD on a MacBook Pro solitone <solitone@mail.com> - 2018-11-17 21:10 +0100
                Re: New SSD on a MacBook Pro Stefan Monnier <monnier@iro.umontreal.ca> - 2018-11-17 22:40 +0100
                Re: New SSD on a MacBook Pro solitone <solitone@mail.com> - 2018-11-17 17:50 +0100

csiph-web