transfer to a new disk - HDD to SSD
Ralf Mardorf
kde.lists at yahoo.com
Sun Mar 1 09:27:46 UTC 2015
On Sun, 1 Mar 2015 10:14:14 +0100, Ralf Mardorf wrote:
>On Sun, 01 Mar 2015 09:31:44 +0200, O. Sinclair wrote:
>>If someone has ideas about that, how to save your repo-list and your
>>installed packages, I would be grateful.
>
>You can copy the repositories list from /etc/apt/sources.list .
>
>Generate package list:
>sudo dpkg --get-selections > packages.txt
>
>Install package list:
>sudo dpkg --set-selections < packages.txt
>sudo apt-get update
>sudo apt-get dselect-upgrade
>
>Synaptic provides this too, take a look at the menus of Synaptic.
>
>But why not simply from a live CD copy from one disk to the other?
>
>With root privileges run
>
>cp -pr /mnt/disk1/* /mnt/disk2/
>
>Care about globbing, but since there unlikely is a hidden file in the
>root directory the * is ok.
PS: If the drives aren't connected to the same machine I would use tar
from a live CD or if you have a multi-boot, from another Linux
install on the drive, just never copy a running Linux by itself.
sudo -i
cd /mnt/disk
tar -czf /path/disk.bak.tar.gz *
echo "tar exit status: $?"
On the other machine extract the archive.
More information about the kubuntu-users
mailing list