Code: Alles auswählen
dd if=<Quelle> of=<Ziel>
Code: Alles auswählen
root@buster:~# fdisk -l
Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM024 HN-M
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xcd9098f4
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1187839 1185792 579M 7 HPFS/NTFS/exFAT
/dev/sda2 1187840 460887184 459699345 219,2G 7 HPFS/NTFS/exFAT
/dev/sda3 460888064 462186495 1298432 634M 27 Hidden NTFS WinRE
/dev/sda4 462188544 1953523711 1491335168 711,1G 5 Extended
/dev/sda5 462190592 529403903 67213312 32,1G 83 Linux
/dev/sda6 529405952 1164285951 634880000 302,8G 83 Linux
/dev/sda7 1164288000 1242111999 77824000 37,1G 83 Linux
/dev/sda8 1242114048 1949427711 707313664 337,3G 83 Linux
/dev/sda9 1949429760 1953523711 4093952 2G 82 Linux swap / Solaris
Disk /dev/sdb: 59,4 GiB, 63736643584 bytes, 124485632 sectors
Disk model: UItra Line
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdaba88b7
Device Boot Start End Sectors Size Id Type
/dev/sdb1 64 124485631 124485568 59,4G 7 HPFS/NTFS/exFAT
root@buster:~#
das ziel wäre /home/winh (muss ich das vorher erstellen oder geht das automatisch?)
Also würde ich
Code: Alles auswählen
dd if=<sdb> of=</home/winh>
will die Daten nicht verlieren.