On Thu, 27 Oct 2022 16:02:17 +0200 Ralf Mardorf email@example.com 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 you help i wound up using this that i found
Obviously drives changed to suit one thing i did not do was the /var bit and ignored from line 26 down .
System is now working again with space on the drive no more complaints about not enough space on device