Recovery DVD failure

Discussion in 'Linux' started by lmfs, Aug 11, 2008.

  1. lmfs

    lmfs

    Joined:
    Aug 5, 2008
    Messages:
    3
    Likes Received:
    0
    Has anyone used the recovery DVD that comes with the A-110? Linpus DVD, that is.

    I just tried and while it boots to a certain stage it fails while (b)unzipping the root image to a ramdisk (/dev/ram1). The image is larger than the allowed ramdisk size.

    Creating a USB recovery stick works alright, but I'm not able to recreate the disk using the DVD.
     
    lmfs, Aug 11, 2008
    #1
  2. lmfs

    hmraao

    Joined:
    Aug 8, 2008
    Messages:
    142
    Likes Received:
    0
    hmraao, Aug 29, 2008
    #2
  3. lmfs

    Aqualize

    Joined:
    Sep 9, 2008
    Messages:
    4
    Likes Received:
    0
    That didn't help the OP at all. You missunderstood the question.


    Problem bellow is solved. As I suspected a normal USB pendrive worked.


    I'm in a similar situation, I used another computer to create an USB image to a SD-card. When I boot (on the A110) with the SD-card (plugged to an external cardreader) I get the following error message:
    Code:
    intel_rng: FWH not detected
    sd 2:0:0:2: [ssd] Assuming drive cache: write through
    sd 2:0:0:2: [ssd] Assuming drive cache: write through
    finding LiveCD...
    finding LiveUSB done, it is .
    unziping rd-base.img.bz2...
    bzip2: Can't open input file /mnt/rd-base.img.bz2: No such file or directory.
    bunzip2 error, maybe memory not enough?
    I'll open a shell for you
    sh-2.05b#
    In the current directory where the shell starts (the "old" root) there is a file called linuxrc, a shell script.
    The command that fails (and thinks the memory is not enough) is
    bzip2 -d -c /mnt/$RDBASENAME >/dev/ram1 || bzerror="error"

    but /mnt is empty, /dev/ram1 exists so I think their is some error earlier.

    I've installed 1 GiB memory (so I have a total of 1,5 GiB RAM), only change I've made to my AA1. And I think it would be strange if this is causing the problem.

    Here is a full printout of the linuxrc file:

    Code:
    #!/bin/sh
    
    mount -n -t proc proc /proc
    
    # define the rdbase name
    RDBASENAME=rd-base.img.bz2
    
    # find and mount the cdrom device which contains rd-base.img in it
    echo "finding LiveCD..."
    usbinst=`cd /dev; echo sd*1`
    
    for tmp in $usbinst; do
        mount -n -r -t ext2 /dev/$tmp /mnt 2>/dev/null
        if [ -f /mnt/$RDBASENAME ]; then
    	  bootdev=$tmp
    	  break
        else
    	  umount /mnt 2>/dev/null
        fi
    done
    
    if [ "X$bootdev" != "X" ]; then 
    	#echo I believe the CD-ROM device is /dev/$cdbootdev.
    	# save the CD device for remounting later
    	if [ "X$CMDLINE" != "X" ]; then 
           if [ -b /dev/ram2 ]; then
    	      echo /dev/$bootdev > /dev/ram2
           elif [ -b /dev/rd/2 ]; then
    	      echo /dev/$bootdev > /dev/rd/2
           else
    	      echo 'Can not find a RAM disk device /dev/ram2 or /dev/rd/2!'
    		  echo I will not be able to determine CD-ROM device.
    	   fi
    	fi
    fi
    
    echo "finding LiveUSB done, it is $bootdev."
    
    # bunzip rd-base.img.bz2 now, and made a real root in ram
    echo "unziping rd-base.img.bz2..."
    bzip2 -d -c /mnt/$RDBASENAME >/dev/ram1 || bzerror="error"
    if [ "x$bzerror" = "xerror" ]; then
        echo "bunzip2 error, maybe memory not enough?"
        echo "I'll open a shell for you."
        exec /bin/sh
    fi
    echo "unziping rd-base.img.bz2 done."
    
    #mount -n -r -t ext2 /dev/ram1 /new_root
    mount -n -r /dev/ram1 /new_root
    echo "0x100" >/proc/sys/kernel/real-root-dev
    cd /new_root
    /bin/pivot_root . initrd
    hash -r
    
    umount /initrd/mnt
    umount /initrd/proc
    
    As seen it the script runs through sd*1 like trail and error (I only have sda1 and sdb1). I checked and sdb1 is not a medium it said. Maybe it is one of the other ports in the memory card reader (4 slots for different kinds). I don't have any 2 GiB USB pendrive right know, that's why I'm using the SD-card.
     
    Aqualize, Sep 15, 2008
    #3
  4. lmfs

    hmraao

    Joined:
    Aug 8, 2008
    Messages:
    142
    Likes Received:
    0
    Au contraire, I believe I did understand the original poster's question, but my response may have been open to misinterpretation. I believe the OP may have fundamentally misunderstood how to use the Recovery DVD, and I therefore directed them to a post that explains its correct use. I agree that that post does not describe the same problem, only that it is another example of how not to use the Recovery DVD. I should have made that clearer. I apologise. I'm curious to know, however, how you are so certain that my response did not help them? Of course, they may very well have known that they were using it in an unprescribed manner. I concede that that may have been the point of their post.

    Whatever the case may be, I am not altogether clear what point you are trying to make regarding the contents of the bash script? I realise that you are trying to create a Recovery SD instead of a Recovery USB, but again this is another example of how not to use the Recovery DVD.

    By the way, the "not enough memory" error is a red-herring. I think, the problem with the script is that it cannot find the recovery disk archive file, possibly because it cannot mount the SD device, possibly because it is not a USB device. But I could be wrong. It has been known:) It is obviously possible to boot from an SD card. It may just be that the Acer Recovery Management System is not setup to do so. Or, that you are using the wrong SD port on the One. Without further investigation, I just don't know. Let us know what you discover:)
     
    hmraao, Sep 15, 2008
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.