Re: Backing up whole Debian installation from laptop to laptop via ssh?
> For some unknown reason, network configuration (wireless networks > etc.) in NetworkManager includes the MAC address of the local NIC > too, so you may need to fix those up after transfer. This sucks, indeed. I can't understand why they do that (maybe as an option, I could see occasional uses, but as default?). Stefan
Re: Backing up whole Debian installation from laptop to laptop via ssh?
ottavio2006-usenet2...@yahoo.com wrote: >I have an old Thinkpad on its last legs which I cannot shutdown (long >story). Then I have a slightly better Thinkpad with similar hard >drive. Debian is split into three partitions (root. home and swap)/ > >I'll recreate a similar partitioning from a live usb on the newer >laptop, then I'll mount the root partition, connect to the old laptop >via ssh, copy the data on the new drive, reinstall grub and modify >fstab. > >Will this work? Sure, that should work OK. I've done this lots of times. Things to consider: 1. Be careful to back up including file permissions and ownerships etc. 2. Try to copy things from a quiet system (single-user mode or similar) to get a consistent backup copy. 3. There are a *few* things that might need fixup on the new machine. You've already identified grub and fstab. For some unknown reason, network configuration (wireless networks etc.) in NetworkManager includes the MAC address of the local NIC too, so you may need to fix those up after transfer. -- Steve McIntyre, Cambridge, UK.st...@einval.com "We're the technical experts. We were hired so that management could ignore our recommendations and tell us how to do our jobs." -- Mike Andrews
Re: Backing up whole Debian installation from laptop to laptop via ssh?
On Mon 14 Nov 2022 at 14:53:34 (+), Ottavio Caruso wrote: > I have an old Thinkpad on its last legs which I cannot shutdown (long > story). Then I have a slightly better Thinkpad with similar hard > drive. Debian is split into three partitions (root. home and swap)/ > > I'll recreate a similar partitioning from a live usb on the newer > laptop, then I'll mount the root partition, connect to the old laptop > via ssh, copy the data on the new drive, reinstall grub and modify > fstab. > > Will this work? You should check that the newer laptop boots the same way (looks like BIOS) and that you're partitioning the same way (probably MBR). Otherwise: UEFI booting would require an ESP (and complicate setting up Grub), GPT partitioning (with BIOS booting) would require a BIOS Boot partition. Cheers, David.
Re: Backing up whole Debian installation from laptop to laptop via ssh?
* On 2022 14 Nov 09:16 -0600, Ottavio Caruso wrote: > I have an old Thinkpad on its last legs which I cannot shutdown (long > story). Then I have a slightly better Thinkpad with similar hard > drive. Debian is split into three partitions (root. home and swap)/ > > I'll recreate a similar partitioning from a live usb on the newer > laptop, then I'll mount the root partition, connect to the old laptop > via ssh, copy the data on the new drive, reinstall grub and modify > fstab. > > Will this work? Yes. I've done this many times and documented it: https://www.n0nb.us/blog/2012/11/ghost-a-partition-contents-with-rsync/ - Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Web: https://www.n0nb.us Projects: https://github.com/N0NB GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819 signature.asc Description: PGP signature
Re: Backing up whole Debian installation from laptop to laptop via ssh?
On 11/14/22 06:53, Ottavio Caruso wrote: I have an old Thinkpad on its last legs which I cannot shutdown (long story). Then I have a slightly better Thinkpad with similar hard drive. Debian is split into three partitions (root. home and swap)/ I'll recreate a similar partitioning from a live usb on the newer laptop, then I'll mount the root partition, connect to the old laptop via ssh, copy the data on the new drive, reinstall grub and modify fstab. Will this work? probably, depending on your method. I frequently copy the desired partitions (without modification) with Gparted to a separate physical drive... installing and updating GRUB is the only stumbling block.
Re: Backing up whole Debian installation from laptop to laptop via ssh?
> On 14 Nov 2022, at 15:15, Ottavio Caruso > wrote: > > [..] copy the data on the new drive, reinstall grub and modify > fstab. > > Will this work? Depends on what kind of “copy” you make. You will need to keep ownership, permissions and links intact. And possibly more. I would install and then copy the home drive. Peter > > -- > Ottavio Caruso > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? >
Backing up whole Debian installation from laptop to laptop via ssh?
I have an old Thinkpad on its last legs which I cannot shutdown (long story). Then I have a slightly better Thinkpad with similar hard drive. Debian is split into three partitions (root. home and swap)/ I'll recreate a similar partitioning from a live usb on the newer laptop, then I'll mount the root partition, connect to the old laptop via ssh, copy the data on the new drive, reinstall grub and modify fstab. Will this work? -- Ottavio Caruso A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?