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


Groups > linux.debian.user > #248030

Re: Copying one drive to a smaller one.

From Felix Miata <mrmazda@earthlink.net>
Newsgroups linux.debian.user
Subject Re: Copying one drive to a smaller one.
Date 2022-05-09 04:40 +0200
Message-ID <El1tv-edI5-1@gated-at.bofh.it> (permalink)
References <El0QN-ed6f-3@gated-at.bofh.it>
Organization less than infinite

Show all headers | View raw


paulf@quillandmouse.com composed on 2022-05-08 21:54 (UTC-0400):

> Situation: I have a 500G boot drive (root, swap, home) I'd like to copy
> to a new 250G drive which must then also be bootable (yes, there's
> enough room). This are EFI drives. I can use "dd", but I don't know
> the proper parameters, and as I understand it, copying a 500G to a 250G
> drive is Bad(tm). I could use "rsync", but I don't think the second
> 250G drive will boot just because I copied the files over to it. I
> suspect I would have an additional step needed to make the drive
> bootable.

> Can someone outline the proper procedure here?

rsync gets the files, once required partitioning and formatting is done, but
doesn't configure bootloader. You can run efibootmgr to set the new ESP up, or
select the new ESP as priority within EFI BIOS setup (if it works as it should).

dd can be safely used only if target space is equal to or larger than source. If
the old drive is partitioned, you might be able to dd individual partitions that
fit, but your situation is a clear case to prefer rsync.
-- 
Evolution as taught in public schools is, like religion,
	based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

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


Thread

Copying one drive to a smaller one. <paulf@quillandmouse.com> - 2022-05-09 04:00 +0200
  Re: Copying one drive to a smaller one. Felix Miata <mrmazda@earthlink.net> - 2022-05-09 04:40 +0200
  Re: Copying one drive to a smaller one. David Christensen <dpchrist@holgerdanske.com> - 2022-05-09 21:00 +0200
    Re: Copying one drive to a smaller one. "Andrew M.A. Cater" <amacater@einval.com> - 2022-05-09 21:20 +0200
      Re: Copying one drive to a smaller one. Tixy <tixy@yxit.co.uk> - 2022-05-09 22:10 +0200
      Re: Copying one drive to a smaller one. The Wanderer <wanderer@fastmail.fm> - 2022-05-09 23:00 +0200
    Re: Copying one drive to a smaller one. <paulf@quillandmouse.com> - 2022-05-09 23:10 +0200
      Re: Copying one drive to a smaller one. Michael Stone <mstone@debian.org> - 2022-05-10 00:10 +0200
        Re: Copying one drive to a smaller one. Stefan Monnier <monnier@iro.umontreal.ca> - 2022-05-10 04:40 +0200
    Re: Copying one drive to a smaller one. "stepore@gmail.com" <stepore@gmail.com> - 2022-05-10 07:10 +0200
    Re: Copying one drive to a smaller one. <paulf@quillandmouse.com> - 2022-05-10 14:40 +0200
      Re: Copying one drive to a smaller one. Michael Stone <mstone@debian.org> - 2022-05-10 18:30 +0200
      Re: Copying one drive to a smaller one. Michael Stone <mstone@debian.org> - 2022-05-10 21:20 +0200
      Re: Copying one drive to a smaller one. <paulf@quillandmouse.com> - 2022-05-10 21:30 +0200

csiph-web