similar to: does guestfs_list_partitions() work with Windows 95 images?

Displaying 20 results from an estimated 600 matches similar to: "does guestfs_list_partitions() work with Windows 95 images?"

2014 Dec 16
2
Re: does guestfs_list_partitions() work with Windows 95 images?
> > The appliance kernel couldn't find any partitions at all on the disk. > > Is it a raw format disk image, or some other format that qemu can > reasonably be expected to read? I used the "Advanced Options" of Macrium Reflect (on Windows 7) to do a raw byte copy. If it is, then yes I'd say the image is corrupted. However you'd > probably want to hexdump
2014 Dec 16
0
Re: does guestfs_list_partitions() work with Windows 95 images?
[Let's keep all replies on the list] On Tue, Dec 16, 2014 at 12:43:21AM -0500, Skippy VonDrake wrote: > Looks like that returned an empty array. Could the image be corrupt? > > Here's the output: > > # guestfish -v -x --ro -a /home/skippy/disk_images/[...]/old.img run : list-partitions [...] > [ 0.558351] scsi2 : Virtio SCSI HBA > [ 0.560916] scsi 2:0:0:0:
2014 Dec 16
2
Re: does guestfs_list_partitions() work with Windows 95 images?
> > Looks like a disk sector to me too. However the partition table > is further on. See: > > https://en.wikipedia.org/wiki/Master_boot_record#Sector_layout So that reference says the "classical generic MBR" partition entry # 1 is offset 0x1BE. Which in this image is right in the error strings (?) section. 00000170 13 59 5A 58 72 09 40 75 01 42 03 5E 0B E2 CC C3
2014 Dec 22
1
Re: does guestfs_list_partitions() work with Windows 95 images?
> > > It's possible that the disk is not partitioned, ie. that what you've > got here is a straight filesystem. You could see if libguestfs can > mount it: > > guestfish --ro -a disk.img -m /dev/sda > ><fs> ll / > > That worked! Thanks for the help. Now I'm tweaking my old code and just replacing my guestfs_mount() call with a hard-coded
2013 Mar 14
1
guestfs_list_partitions with vdi
I'm using a Windows raw disk image that is "converted" to the VDI format by custom code that prepends a header to the image. I use 'vdi' for GUESTFS_ADD_DRIVE_OPTS_FORMAT of guestfs_add_drive_opts(). After launching the appliance, the call to guestfs_list_partitions() results in an empty list. Is there a way to add the drive but have an offset into the image file as a
2014 Dec 16
0
Re: does guestfs_list_partitions() work with Windows 95 images?
On Tue, Dec 16, 2014 at 10:29:25AM -0500, Skippy VonDrake wrote: > > > > The appliance kernel couldn't find any partitions at all on the disk. > > > > Is it a raw format disk image, or some other format that qemu can > > reasonably be expected to read? > > > I used the "Advanced Options" of Macrium Reflect (on Windows 7) to do a raw > byte
2014 Dec 17
0
Re: does guestfs_list_partitions() work with Windows 95 images?
On Tue, Dec 16, 2014 at 11:33:00AM -0500, Skippy VonDrake wrote: > > > > Looks like a disk sector to me too. However the partition table > > is further on. See: > > > > https://en.wikipedia.org/wiki/Master_boot_record#Sector_layout > > > So that reference says the "classical generic MBR" partition entry # 1 is > offset 0x1BE. > Which in
2013 Apr 09
2
[Qemu-devel] debugging qemu-nbd.c
On Tue, Apr 09, 2013 at 10:18:50AM -0400, Skippy VonDrake wrote: > Hello, > > Apologies upfront if posting to this list is inappropriate. > > I have an app that forks a process with calls qemu-nbd with an offset > into an image. > The app then uses libguestfs to attach the nbd device. > But it appears that qemu is failing. When you say "qemu is failing", do you
2013 Jan 16
5
libguestfs-test-tool error, libcap.so - no such file
Did install from source of libguestfs-1.20.1 on Ubuntu-12.10. And libguestfs-test-tool complains about not finding libcap.so.2 uptime: 2.26 1.00 guestfsd: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory [ 2.277795] Unregister pv shared memory for cpu 0 [ 2.278324] kvm: exiting hardware virtualization [ 2.278763] sd 2:0:1:0:
2012 Dec 14
3
inspect_os error with Win7 image
The error message: hivex_close: do_hivex_close: you must call 'hivex-open' first to initialize the hivex handle This is the process flow: g = guestfs_create (); guestfs_add_drive_opts (g, diskFile,GUESTFS_ADD_DRIVE_OPTS_FORMAT, "raw",-1); guestfs_launch (g) char **roots = guestfs_inspect_os (g); guestfs_inspect_os returns NULL, guestfs_last_error(g) returns
2012 Dec 03
2
sample code for guestfs_hivex_node_set_value
Is there any sample code available to demonstrate the use of the guestfs_hivex_node_set_value API? I have no problem traversing and reading keys using libguestfs hivex wrappers - but continue to fail on any write attempts. The return is always -1 and errno is unchanged. I've set the environment variable HIVEX_DEBUG to 1 on a chance that this may help - but it doesn't. The only sample I
2012 Nov 19
2
install errors for libguestfs-1.19.60
I've been using libguestfs-1.18.9 but decided to "upgrade" to 1.19.60. Using Ubuntu 12.04 with the older version installed via source. So I went through the same process with the new version of guestfs sources and got the following errors on 'make install': make[2]: Nothing to be done for `install-exec-am'. make install-data-hook make[3]: Entering directory
2013 Jan 09
1
4.2.1 make world error, no target clean
Ubuntu 12.04, Xen 4.2.1 ./configure --libdir=/usr/lib/x86_64-linux-gnu make world make[4]: Entering directory `/home/skippy/Downloads/xen/xen-4.2.1/tools/qemu-xen-traditional-dir'' make[4]: *** No rule to make target `clean''. Stop. First time it failed because of a missing dependency. Fixed that but now can''t get past the "cleaning stage". tried "make
2013 Apr 04
2
launch failure of appliance with nbd drive
I'm using qemu-nbd to setup the device with an offset into the image. Using libguestfs version 1.21.22 Code for adding the drive: char *server[] = { "localhost:3000", NULL }; if (guestfs_add_drive_opts (g, "" /* export name - see below */, GUESTFS_ADD_DRIVE_OPTS_FORMAT, "raw", GUESTFS_ADD_DRIVE_OPTS_PROTOCOL, "nbd",
2013 Jan 04
1
error make guestfs: relocation libfuse.a Bad value
Trying to setup guestfs on a coworkers system and am at a loss about this error and doing 'make' on version 1.20: /usr/bin/ld: /usr/lib/libfuse.a(fuse.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/lib/libfuse.a: could not read symbols: Bad value collect2: error: ld returned 1 exit status Installed fuse via: sudo
2012 Dec 31
1
err from guestfs_launch
This error is with libguestfs 1.20. Calling guestfs_launch() with tracing on: supermin helper [00065ms] finished creating appliance libguestfs: checksum of existing appliance: 2bd6811426e14b6fb661b4d52cebd6c21a41df1a068e8acf6a7a08e3b3bd4ada libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" libguestfs: [00071ms] begin building supermin appliance libguestfs:
2012 Nov 05
1
using fuse with libguestfs
Upon seeing RWM Jones article "Using mount-local API from C" I became curious because I thought there WAS a way to combine aspects of FUSE with the tools provided by libguestfs. So if I wanted to create my own filesystem using callbacks placed in the 'fuse_operations' struct (parameter to 'fuse_main()'), I could do so using guestfs. But after reading the article and
2012 Nov 21
1
hivexregedit doc - unix2dos command
On the page: http://libguestfs.org/hivexregedit.1.html#encoding Under "ENCODING" section is this command: unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg I couldn't get that to work without placing a redirection operator ('<') after "unix2dos". Could this be due to my version of unix2dos? Or just a typo. I'm a Linux n00b so my apologies for
2013 Jan 17
5
A few patches needed for libguestfs 1.20+ on current Debian systems
Here's what I needed to build and run 1.20 on Debian/unstable. Perhaps the libcap2 dependency in the packagelist should only be added if libcap has actually been used in building guestfsd...
2012 Sep 12
2
new pv stuck in pause
Following a Xen tutorial but can''t get the VM (PV Squeeze) running. After doing: # xm create -c /etc/xen/tutorial-pv-guest.cfg The prompt just sits there. Opening another terminal: # xm list /usr/lib/python2.7/dist-packages Name ID Mem VCPUs State Time(s) Domain-0 0 7199 4 r----- 40.6