LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Mounting VHD with minix (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/mounting-vhd-with-minix-4175418597/)

Hosenfeld 07-25-2012 09:10 AM

Mounting VHD with minix
 
Hello,
sorry if I put this thread in wrong category, but I figured out that this one is the closest match.

I am trying to mount VHD file (20MB, fixed size, minix file system) to be able to copy files into it.

I tried (offset 40448 is for virtual box headers)
Code:

# mount -t minix -o loop,offset=40448 MinixDist.vdi /mnt
but it returns
Code:

mount: wrong fs type, bad option, bad superblock on /dev/loop1,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

The suggested command from above returns
Code:

[535741.932059] vboxdrv: Found 32 processor cores.
[535741.938847] vboxdrv: fAsync=0 offMin=0x2dc offMax=0x17194
[535741.939315] vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
[535741.939320] vboxdrv: Successfully loaded version 4.1.18 (interface 0x00190000).
[535742.156339] vboxpci: IOMMU not found (not registered)
[540255.522529] SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
[617986.183901] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
[617986.196252] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
[617986.207128] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
[617986.216391] ISOFS: Unable to identify CD-ROM format.
[617986.225389] FAT-fs (loop1): bogus number of reserved sectors
[617986.225396] FAT-fs (loop1): Can't find a valid FAT filesystem
[617986.241237] hfs: can't find a HFS filesystem on dev loop1.
[617986.251303] hfs: unable to find HFS+ superblock
[617992.403405] VFS: Can't find a Minix filesystem V1 | V2 | V3 on device loop1.
[618045.617854] VFS: Can't find a Minix filesystem V1 | V2 | V3 on device loop1.
[621257.207649] nbd: registered device at major 43
[621406.365284] tun: Universal TUN/TAP device driver, 1.6
[621406.365287] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[621428.943778] MINIX-fs: mounting unchecked file system, running fsck is recommended
[621428.943787] SELinux: initialized (dev nbd0, type minix), not configured for labeling
[621499.445638] MINIX-fs: mounting unchecked file system, running fsck is recommended
[621499.445650] SELinux: initialized (dev nbd0, type minix), not configured for labeling
[629634.642535] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
[629634.653211] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
[629634.666108] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
[629634.677909] ISOFS: Unable to identify CD-ROM format.
[629634.691489] FAT-fs (loop1): bogus number of reserved sectors
[629634.691497] FAT-fs (loop1): Can't find a valid FAT filesystem
[629634.702273] hfs: can't find a HFS filesystem on dev loop1.
[629634.716390] hfs: unable to find HFS+ superblock
[629645.315200] VFS: Can't find a Minix filesystem V1 | V2 | V3 on device loop1.


jefro 07-25-2012 04:21 PM

It is not a minix filesystem, it is a virtual hard drive. You need support for or a way to use a vdi in your OS first. Then if the OS supports the internal filesystem you can then access it.

http://bethesignal.org/blog/2011/01/...box-vdi-image/

Hosenfeld 07-26-2012 02:55 AM

Thanks, mounting works. Still I am not able to write to the mounted disk.

jefro 07-26-2012 03:21 PM

Not you can mount the vdi and can read it but can't write to it? How hard would it be to just boot the VM?


All times are GMT -5. The time now is 04:04 AM.