Bug 502365

Summary: RAMDISK: incomplete write (-28 != 32768) 16777216
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: rjones, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-24 10:42:46 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Richard W.M. Jones 2009-05-24 09:53:27 EDT
Appliance fails to boot.  When you boot with LIBGUESTFS_DEBUG=1
you see messages such as:

RAMDISK: Compressed image found at block 0
RAMDISK: incomplete write (-28 != 32768) 16777216

RAMDISK: Compressed image found at block 0
RAMDISK: incomplete write (-28 != 32768) 40960000

(The precise numbers may be slightly different).
Comment 1 Richard W.M. Jones 2009-05-24 09:56:46 EDT
This error only happens when we try to run libguestfs
on Debian (still using Fedora inside the appliance of

We found by googling and experimentation that we can
get rid of the 'RAMDISK: incomplete write' error by adding
ramdisk=NNN option, eg:


However this doesn't in itself resolve the problem with
Comment 2 Richard W.M. Jones 2009-05-24 09:57:48 EDT
(In reply to comment #1)
> ramdisk=NNN option, eg:

That should be 'ramdisk_size=NNN' of course.
Comment 3 Richard W.M. Jones 2009-05-24 10:42:46 EDT
False alarms all round - the ramdisk_size parameter is NOT needed.

The problem was that Debian's cpio command defaults to using
the obsolete 'bin' cpio format, not 'newc' (which is what Fedora
defaults to).  Therefore Debian's cpio was making an initramfs
image that the kernel simply couldn't understand.

Fixes to this are: