[pocket-linux] Problem Chapter 3: RAMDISK: incomplete write (-28!= 32768) 4194304

Eric Wanchic ewanchic at qwest.net
Thu Oct 21 08:50:02 CDT 2004


I believe I've pinpointed the solution to this particular error. Since the
Kernel was built was a RAM disk of 4096, then the other items previous
mentioned NEED to have that 4096 setting set, otherwise I assume since the
kernel is only expecting 4096 bytes and when it sees more (around 64000 in
this case), that the "compressed image" was not written correctly specifing
the "incomplete write."

See Below (solution response from David Horton):

>> Other things I tried.
>> 3.3.1 -
>>   bash# dd if=/dev/zero of=/dev/ram7 bs=1k count=64000 (as opposed to
count
>> 4096. Why? Every time I exported the image to ~/phase2-image, it would in
>> and out 64000. This was also found as a ram disk value under menuconfig
for
>> kernel 2.6.8.1)
>>

> Sorry, I missed the part about the ramdisk proplem earlier.  Try using
> these instructions to create the image.

> bash# cd /
> bash# dd if=/dev/zero of=/dev/ram7 bs=1k count=4096
> bash# mke2fs -m0 /dev/ram7 4096
> bash# mount /dev/ram7 /mnt
> bash# cp -dpR ~/staging/* /mnt
> bash# umount /dev/ram7
> bash# dd if=/dev/ram7 of=~/phaseX-image bs=1k count=4096
> bash# gzip -9 ~/phaseX-image

> The difference is the 'mke2fs -m0 /dev/ram7 4096' command has a 4096 at
> the end which tells mke2fs to stop after 4096 Kbytes and the 'dd
> if=/dev/ram7 of=~/phaseX-image bs=1k count=4096' has been changed to
> tell dd to stop after 4096 Kbytes using count=4096.  These are the new
> instructions for the guide version 3.0 preview.

Hense if your following the directions in v.3, you probably shouldn't be
getting this error (^_^).

Thanks Dave for your help!


* Note I'm still having issues, but not relating to this "particular"
problem anymore. Hense I'll be starting a new Thread.

Eric
_______________________________________________
Pocket-Linux mailing list
Pocket-Linux at ufo.chicago.il.us
http://ufo.chicago.il.us/cgi-bin/mailman/listinfo/pocket-linux




More information about the Pocket-Linux mailing list