Re: Copying one drive to a smaller one.

2022-05-10 Thread Michael Stone
On Tue, May 10, 2022 at 07:13:55PM +0200, DdB wrote: Proper entry in NVRAM (Can be read and changed with efibootmgr) I've never seen a BIOS where this is hard--you just browse to the appropriate file in the EFI partition (EFI/debian/grubx64.efi). Using a program from within linux is helpful

Re: Copying one drive to a smaller one.

2022-05-10 Thread paulf
On Tue, 10 May 2022 19:13:55 +0200 DdB wrote: > Booting UEFI requires different things: (detailed descriptions on > rodsbook site) > Proper subdir/entry in ESP (could be reused from old disk) > Proper entry in NVRAM (Can be read and changed with efibootmgr) > If i were you, i would prepare for

Re: Copying one drive to a smaller one.

2022-05-10 Thread DdB
Booting UEFI requires different things: (detailed descriptions on rodsbook site) Proper subdir/entry in ESP (could be reused from old disk) Proper entry in NVRAM (Can be read and changed with efibootmgr) If i were you, i would prepare for emergency rescuing the system in case of havoc. For example

Re: Copying one drive to a smaller one.

2022-05-10 Thread Michael Stone
On Tue, May 10, 2022 at 08:31:12AM -0400, pa...@quillandmouse.com wrote: For all but the boot mechanism, copying files from source to destination via rsync should work. For ext4, files are files. Except when they have ACLs or extended attributes, hard links are messy to rsync, etc. Most of

Re: Copying one drive to a smaller one.

2022-05-10 Thread paulf
On Tue, 10 May 2022 07:28:02 +0200 DdB wrote: > Hi, > > Am 09.05.2022 um 20:54 schrieb David Christensen: > > Resizing and moving a Debian instance from a 500 GB drive to a 250 > > GB drive requires a lot of expertise. > > I fully agree. And i am missing some information from the OP: > > Was

Re: Copying one drive to a smaller one.

2022-05-09 Thread DdB
Hi, Am 09.05.2022 um 20:54 schrieb David Christensen: > Resizing and moving a Debian instance from a 500 GB drive to a 250 GB > drive requires a lot of expertise. I fully agree. And i am missing some information from the OP: Was the 500 GB drive UEFI already? Will both drives live on the same

Re: Copying one drive to a smaller one.

2022-05-09 Thread step...@gmail.com
On 5/9/22 11:54, David Christensen wrote: Resizing and moving a Debian instance from a 500 GB drive to a 250 GB drive requires a lot of expertise. Maybe I'm misremembering. But doesn't clonezilla or using partclone directly accomplish this? i'm sure i've used it to

Re: Copying one drive to a smaller one.

2022-05-09 Thread Michael Stone
On Mon, May 09, 2022 at 04:47:44PM -0400, pa...@quillandmouse.com wrote: Unfortunately, this is precisely what I was trying to avoid. For example, to accommodate the graphics on my CPU, I had to use a later kernel from backports. That's one of many wrinkles. Under other circumstances, I probably

Re: Copying one drive to a smaller one.

2022-05-09 Thread paulf
On Mon, 9 May 2022 11:54:16 -0700 David Christensen wrote: > On 5/8/22 18:54, pa...@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

Re: Copying one drive to a smaller one.

2022-05-09 Thread The Wanderer
On 2022-05-09 at 15:18, Andrew M.A. Cater wrote: > On Mon, May 09, 2022 at 11:54:16AM -0700, David Christensen wrote: >> 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

Re: Copying one drive to a smaller one.

2022-05-09 Thread Tixy
On Mon, 2022-05-09 at 19:18 +, Andrew M.A. Cater wrote: [...] > 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

Re: Copying one drive to a smaller one.

2022-05-09 Thread Andrew M.A. Cater
On Mon, May 09, 2022 at 11:54:16AM -0700, David Christensen wrote: > On 5/8/22 18:54, pa...@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).

Re: Copying one drive to a smaller one.

2022-05-09 Thread David Christensen
On 5/8/22 18:54, pa...@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

Re: Copying one drive to a smaller one.

2022-05-08 Thread Felix Miata
pa...@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

Copying one drive to a smaller one.

2022-05-08 Thread paulf
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