[NTLUG:Discuss] disk imaging software
Chris Cox
cjcox at acm.org
Thu Dec 18 15:23:58 CST 2008
Rusty Haddock wrote:
> david evans wrote:
> >any recommendations for disk imaging software.
>
> /bin/dd ???
>
> As root:
> cd $FOO # Where $FOO is a directory on some other filesystem
> /bin/dd if=/dev/sda1 of=root.ext2
Actually, if you're not doing anything with block sizes...
you can merely do:
cp /dev/sda1 root.ext2
mkdir /tmp/tmpmnt
mount -o loop root.ext2 /tmp/tmpmnt
ls /tmp/tmpmnt
umount /tmp/tmpmnt
If you copy an entire disk using this method...
e.g. cp /dev/sda sda.disk
Then you'd have to supply offsets to go to the
filesystem you wish to mount (man losetup and look
for offset). A loop mount can take an offset=
option.
More information about the Discuss
mailing list