On 09/09/2015 03:15 PM, Dsant wrote:
On 09/09/2015 02:56 PM, Carlos E. R. wrote:
If I create a full disk image with dd, is it possible to access the single partitions in it?
Perhaps attach a loop device to the image. But then, how do I get access to the partitions inside, separately?
I don't have the image yet, I intend to do it later, while I sleep. But if it is not possible to access the partitions, then perhaps I should do it differently.
- -- Cheers Carlos E. R.
Hi Carlos !
Is it what you want ? :
# dd if=/dev/zero of=/home/me/tmp/ex6/file.dat bs=1024 count=50000 50000+0 records in 50000+0 records out 51200000 bytes (51 MB) copied, 0.136642 s, 375 MB/s
(create the file)
# losetup -f /dev/loop0
(to know the next available loops)
# losetup /dev/loopX /home/me/tmp/ex6/file.dat
# fdisk /dev/loop0
(here create 2 partitions with fdisk...)
LRAF-FGA1:~ # partprobe
Here it seems I would need to reboot, which I can't know.
Dsant, from France
It works ! No need to reboot, use partprobe and... the new devices are in folder /dev/mapper/ mkfs.ext3 /dev/mapper/loop0p1 mount /dev/mapper/loop0p1 /mnt/loop/ Enjoy ! Dsant, from France -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org