offset

All posts tagged offset

The problem is that the .img files are not images of a partition, but of a whole disk. That means they start with a bootloader and a partition table. You have to find out the offset of the partition and mount it with the offset option of mount. If you do a Code: fdisk -l /path/to/image it will show you the block-size and the start-block of the partition. You can use that to calculate the offset. For example, I have an image of a bootable stick with a 4GB FAT32 partition. The output of the Read more...
Sometimes we would like to access directly to the data of a XEN virtual machine just mounting the volume that act as physical device in the virtual machine, instead of booting it with a recovery cd, like in case of a faulty change in a configuration file inside the VM. Be careful!, this must be run stopping first the virtual machine. Let's start checking the name of the physical volume containing a linux virtual machine inside (it works with windows data, but check NTFS support in XEN first). [root@xenserver2 Read more...