Re: open image file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/04/2013 03:03 PM, Greg Freemyer wrote:
>
> Zoltan Gyarmati <mr.zoltan.gyarmati@xxxxxxxxx> wrote:
>
>
>> Hi,
>>
>> in case of image with multiple partitions, easier to use kpartx, then
>> get the offsets with parted:
>> http://ppadala.net/blog/2010/09/kpartx-to-mount-vm-disk-images/
>>
>> of course with image with one partition, it doesn't matter
> I think you meant an image of a drive with no partitions:
>
> Ie.
>   mkfs /dev/sdb. Create a filesystem on the entire disk, there is no offset and no partitions (the entire disk is the filesystem, no mbr or gpt).
>
>   mkfs /dev/sdb1.  Create a filesystem on the first partition, there is an offset even if it is the only partition.  You examine the mbr or gpt to determine the offset.
>
> Or possibly you meant an image of a partition:
>
> dd if=/dev/sdb1 of=image_file.  Create the image of a partition, no offset needed for loopback mount.
>
> Greg
>
Indeed!
I was not accurate enough, thx for the comment.

-- 
br,
Zoltan Gyarmati
mail: mr.zoltan.gyarmati@xxxxxxxxx
freenode nick: zgyarmati


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux