[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] "toram" fails to copy whole media to RAM



We found the "toram" (not toram=filesystem.squashfs) boot parameter in
live-boot (3.0.1-1) fails to copy whole media to RAM.
How to reproduce:
1. Download
http://live.debian.net/cdimage/release/stable/i386/iso-hybrid/debian-live-7.0.0-i386-standard.iso

2. Boot it with boot parameter "toram".

3. An error will be shown:
"write failed on "/live/medium_swap/live/initrd2.img": No space left on
device ".
The whole log about rsync files to RAM is attached.

Attach please also find the patch to fix this issue. I believe in this
case the size calculated should be the whole media "/live/image/", not
only the dir "/live/image/live/".

My 2 cents.

Steven.

-- 
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 4096R/47CF935C
Fingerprint: 0240 1FEB 695D 7112 62F0  8796 11C1 12DA 47CF 935C


* Copying whole medium to RAM
sending incremental file list
autorun.inf
          25 100%    0.00kB/s    0:00:00 (xfer#1, to-check=665/666)
debian -> .
g2ldr
      159532 100%   25.36MB/s    0:00:00 (xfer#2, to-check=663/666)
g2ldr.mbr
        8192 100%    1.12MB/s    0:00:00 (xfer#3, to-check=662/666)
md5sum.txt
       38262 100%    4.56MB/s    0:00:00 (xfer#4, to-check=661/666)
setup.exe
      366349 100%   26.88MB/s    0:00:00 (xfer#5, to-check=660/666)
win32-loader.ini
         223 100%   15.56kB/s    0:00:00 (xfer#6, to-check=659/666)
dists/
dists/stable -> wheezy
dists/wheezy/
dists/wheezy/Release
        2987 100%  194.47kB/s    0:00:00 (xfer#7, to-check=649/666)
dists/wheezy/main/
dists/wheezy/main/binary-i386/
dists/wheezy/main/binary-i386/Packages
      125426 100%    7.04MB/s    0:00:00 (xfer#8, to-check=645/666)
dists/wheezy/main/binary-i386/Packages.gz
       44822 100%    2.25MB/s    0:00:00 (xfer#9, to-check=644/666)
dists/wheezy/main/binary-i386/Release
          95 100%    4.88kB/s    0:00:00 (xfer#10, to-check=643/666)
dists/wheezy/main/debian-installer/
dists/wheezy/main/debian-installer/binary-i386/
dists/wheezy/main/debian-installer/binary-i386/Packages
      229531 100%    9.95MB/s    0:00:00 (xfer#11, to-check=641/666)
dists/wheezy/main/debian-installer/binary-i386/Packages.gz
       73593 100%    2.92MB/s    0:00:00 (xfer#12, to-check=640/666)
firmware/
firmware/firmware-linux-free_3.2_all.deb -> ../pool/main/f/firmware-free/firmware-linux-free_3.2_all.deb
install/
install/initrd.gz
     4772328 100%   11.58MB/s    0:00:00 (xfer#13, to-check=638/666)
install/install.bat
          44 100%    0.11kB/s    0:00:00 (xfer#14, to-check=637/666)
install/vmlinuz
     2506848 100%    5.64MB/s    0:00:00 (xfer#15, to-check=636/666)
install/gtk/
install/gtk/initrd.gz
    22832573 100%   20.94MB/s    0:00:01 (xfer#16, to-check=634/666)
install/gtk/install.bat
          61 100%    1.42kB/s    0:00:00 (xfer#17, to-check=633/666)
install/gtk/vmlinuz
     2506848 100%   31.88MB/s    0:00:00 (xfer#18, to-check=632/666)
isolinux/
isolinux/advanced.cfg
          68 100%    0.85kB/s    0:00:00 (xfer#19, to-check=631/666)
isolinux/boot.cat
        2048 100%   25.32kB/s    0:00:00 (xfer#20, to-check=630/666)
isolinux/hdt.c32
      342708 100%    3.89MB/s    0:00:00 (xfer#21, to-check=629/666)
isolinux/install.cfg
         268 100%    3.04kB/s    0:00:00 (xfer#22, to-check=628/666)
isolinux/isolinux.bin
       24576 100%  272.73kB/s    0:00:00 (xfer#23, to-check=627/666)
isolinux/isolinux.cfg
          57 100%    0.62kB/s    0:00:00 (xfer#24, to-check=626/666)
isolinux/live.cfg
         697 100%    7.48kB/s    0:00:00 (xfer#25, to-check=625/666)
isolinux/menu.cfg
         271 100%    2.85kB/s    0:00:00 (xfer#26, to-check=624/666)
isolinux/splash.png
       16313 100%  169.48kB/s    0:00:00 (xfer#27, to-check=623/666)
isolinux/stdmenu.cfg
         508 100%    5.17kB/s    0:00:00 (xfer#28, to-check=622/666)
isolinux/vesamenu.c32
      155792 100%    1.50MB/s    0:00:00 (xfer#29, to-check=621/666)
live/
live/filesystem.packages
       13939 100%  134.78kB/s    0:00:00 (xfer#30, to-check=620/666)
live/filesystem.packages-remove
         129 100%    1.22kB/s    0:00:00 (xfer#31, to-check=619/666)
live/filesystem.squashfs
   374185984 100%   20.07MB/s    0:00:17 (xfer#32, to-check=618/666)
live/initrd1.img
    11627376 100%   12.12MB/s    0:00:00 (xfer#33, to-check=617/666)
live/initrd2.img
      557056   4%  534.91kB/s    0:00:20
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: write failed on "/live/medium_swap/live/initrd2.img": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(322) [receiver=3.0.9]
INIT: version 2.88 booting
--- a/scripts/boot/9990-toram-todisk.sh
+++ b/scripts/boot/9990-toram-todisk.sh
@@ -10,7 +10,7 @@
 
 	if [ -z "${MODULETORAM}" ]
 	then
-		size=$(fs_size "" ${copyfrom}/${LIVE_MEDIA_PATH} "used")
+		size=$(fs_size "" ${copyfrom}/ "used")
 	else
 		MODULETORAMFILE="${copyfrom}/${LIVE_MEDIA_PATH}/${MODULETORAM}"
 

Reply to: