On Thu, 27 Oct 2022 16:02:17 +0200 Ralf Mardorf firstname.lastname@example.org wrote:
Format the the new drive with the wanted file system.
Restart the computer and boot a live Linux from DVD, USB or what ever media you prefer.
Mount the old partition, mount the new partition.
Open a terminal.
Become root by running
$ sudo -i
Copy the root directory by running
# cp -ai /mnt/old/* /mnt/new/
Usage of the * is only ok, if the root directory /mnt/old/ doesn't contain hidden directories or files.
- Verify the copy by running
# diff -r --no-dereference /mnt/old/ /mnt/new/
- Install the bootloader and/or update the bootloaders configuration.
How to do this depends on your setup and the used bootloader. I for example use syslinux for a Linux multi-boot machine, but without chainloading.
IOW what bootloader are you using? Does this particular root partition contain the bootloader config or does e.g. another Linux install provide the bootloader config? Etc. pp.?
Thanks for that i am also using syslinux for boot i fell out with grub basically the root partition is a result of my cockup i have several 1Tb drives i was going to use one of those as the root partition the entire drive
Just wish i had thought a bit more about it when i set the machine up several years ago now you learn , I will have to study some . once again thanks