mount

All posts tagged mount

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...
One of the common problems after boot from a cdrom is accessing the devices or processes that runs from the cd but inside the jail of the chroot. You can bind some already mounted system folders like /dev, inside our root partition. Here's what I usually do: Boot up from a rescue cd Mount root partition to /mnt and boot partition into /mnt/boot. mount --bind /proc /mnt/proc mount --bind /sys /mnt/sys mount --bind /dev /mnt/dev chroot /mnt (you just went live on the system) Now 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...