Device in einem File
Manchmal benötigt man eine weitere Festplatte für Testzwecke. Eine neue Festplatte einbauen oder eine Partition zu verkleinern ist viel zu aufwendig. Mit dd kann man eine fake Festplatte anlegen.
File erstellen (1GB)
sudo dd if=/dev/zero of=hd1.img bs=1M count=1k
File als Device einbinden
losetup /dev/loop0 hd1.img
Fertig ist die Festplatte für Testzwecke!
Dein Kommentar
Want to join the discussion?Feel free to contribute!