On Thu, 27 Oct 2022 16:02:17 +0200 Ralf Mardorf <ralf-mardorf@riseup.net> wrote:
1. Format the the new drive with the wanted file system. 2. Restart the computer and boot a live Linux from DVD, USB or what ever media you prefer. 3. Mount the old partition, mount the new partition. 4. Open a terminal. 5. Become root by running
$ sudo -i
5. 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.
5. Verify the copy by running
# diff -r --no-dereference /mnt/old/ /mnt/new/
6. 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.?
Regards, Ralf
Hi Ralf 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 Pete