Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #248049
| Path | csiph.com!pasdenom.info!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Andrew M.A. Cater" <amacater@einval.com> |
| Newsgroups | linux.debian.user |
| Subject | Re: Copying one drive to a smaller one. |
| Date | Mon, 09 May 2022 21:20:01 +0200 |
| Message-ID | <Elh5f-enUh-7@gated-at.bofh.it> (permalink) |
| References | <El0QN-ed6f-3@gated-at.bofh.it> <ElgLT-enyM-15@gated-at.bofh.it> |
| X-Original-To | debian-user@lists.debian.org |
| X-Mailbox-Line | From debian-user-request@lists.debian.org Mon May 9 19:19:10 2022 |
| Old-Return-Path | <amacater@einval.com> |
| X-Amavis-Spam-Status | No, score=-9.41 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -4.6 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-Mailing-List | <debian-user@lists.debian.org> archive/latest/788951 |
| List-ID | <debian-user.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-user/> |
| List-Archive | https://lists.debian.org/msgid-search/YnlpHsi9d15Ty1xI@einval.com |
| Approved | robomod@news.nic.it |
| Lines | 49 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Mon, 9 May 2022 19:18:54 +0000 |
| X-Original-Message-ID | <YnlpHsi9d15Ty1xI@einval.com> |
| X-Original-References | <20220508215427.2ff3e391@yosemite.mars.lan> <c9119693-1c45-87ea-9688-8f8f777e1d07@holgerdanske.com> |
| Xref | csiph.com linux.debian.user:248049 |
Show key headers only | View raw
On Mon, May 09, 2022 at 11:54:16AM -0700, David Christensen wrote: > On 5/8/22 18:54, paulf@quillandmouse.com wrote: > > Folks: > > > > 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? > > > Resizing and moving a Debian instance from a 500 GB drive to a 250 GB drive > requires a lot of expertise. > > > I would take the KISS approach -- backup the system configuration files and > data, remove the 500 GB drive, install the 250 GB drive, do a fresh install > onto the 250 GB drive, and reconfigure/ restore. > > > David > I also agree: then all you have to do is copy across data you wish to retain. Alternatively, you can plug in the new drive and do a minimal install on it. Use dpkg --get-selections > somefilename to get a list of packages installed on one system and write it into somefile. dpkg --set-selections < somefilename will write that list for Debian's most basic package manager. apt update ; apt dist-upgrade will then use that information to isntall the same package list onto the second machine as exists on the first machine - but that's complex. With every good wish, as ever, Andy Cater
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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