On Tue, Dec 03, 2024 at 02:55:07AM +0100, poc...@homemail.com wrote:
> 
> 
> > It might be easier to produce a clean new install and then just rsync
> > data from the SSD drive to the appropriate directories on the NVME.
> 
> No it is better that everything comes over all at one time
> 

As someone else has put it elsewhere in the thread: new laptop means
new drivers, potentially moving from legacy MBR to UEFI ... easier in
many ways to put a clean install of Debian on from new media to start
with (also wiping out whatever was there before if it came preinstalled
with Windows or whatever).

> >
> > I'm fairly sure this was brought up just about at the end of last month.
> 
> It depends upon if you created a partition table, partitions and filesystems 
> on the drive.
> 
> I create the drive layout on the drive then rsync the old drive to the new 
> drive.
> Then I fixup the PARTUUID in the /etc/fstab and boot loader.
> If I am using Archlinux or my own custom build os I have a blank /etc/fstab 
> and /etc/hosts
> 
There's more than one way to do it: if you absolutely know what partition
sizes you want, maybe - LVM and one partition is a fairly sensible starting
point because partitions will grow and shrink, for example.

> cat /etc/fstab
> # Static information about the filesystems.
> # See fstab(5) for details.
> 
> # <file system> <dir> <type> <options> <dump> <pass>
> 
>  cat /etc/hosts
> # Static table lookup for hostnames.
> # See hosts(5) for details.
> 
> [alarm@alarm ~]$ blkid
> /dev/nvme0n1p1: LABEL_FATBOOT="bootfs" LABEL="bootfs" UUID="5A88-04BC" 
> BLOCK_SIZE="512" TYPE="vfat" PARTUUID="b2c58878-01"
> /dev/nvme0n1p2: LABEL="rootfs" UUID="5170097f-f1f6-42d8-a2ff-8938cbdfa7be" 
> BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="b2c58878-02"
> 
> >
> > Hoping to keep partition sizes etc. identical across drives is hard so it
> > does seem easier to just copy data from one drive to the other.
> 
> dd is your friend
> 
> https://www.howtoforge.com/linux-dd-command-clone-disk-practical-example/
> https://thelinuxcode.com/clone-disk-using-dd-linux/
> 

dd is your friend if you know _exactly_ what you are doing :)

> 

As ever, the right way is what works for your requirements: sometimes
people need something straightforward to get them started. Making
work for yourself at the outset needs to be justified by saving time
later on, perhaps.

All the very best, as ever,

Andy
(amaca...@debian.org)

> --
> Hindi madali ang maging ako
> 

Reply via email to