Menu

#219 clonzilla crashs with ocs_postrun="parted /dev/sda1 resizepart 1 460G yes"

open
nobody
None
5
2015-01-23
2015-01-22
LeMerP
No

Hello,

If I define "ocs_postrun="parted /dev/sda1 resizepart 1 460G yes" as APPEND parameter, clonezilla crashes while loading squash filesystem. If I run this command on clonezilla command line, everything is working fine.

I tested with this versions: 20141208-utopic and 20150119-utopic, both amd64.

In the attachments you can find the latest output of loading squashfs.

What can I do?

Regards,
Patrick

1 Attachments

Discussion

  • LeMerP

    LeMerP - 2015-01-22

    Hey guys,

    I found a better way to work with parted. I just used other parameters. Now it works :)

    You can close the this ticket.

    Regards,
    Patrick

     
  • Steven Shiau

    Steven Shiau - 2015-01-23

    So how did you run that successfully?
    "ocs_postrun="parted -s /dev/sda1 resizepart 1 460G"?
    Or?
    Please share that.
    Thanks.

    Steven.

     
  • LeMerP

    LeMerP - 2015-01-23

    The problem with the "resizepart" parameter is the yes/no-question in the end to perform the operation. I was not able to answer this question automatically with yes. "-s" seems to take default answers. But the default answer to resizepart seems to be "no". So this parameter will not work. I also tried to create an answer file like this: echo -e "resizepart\n1\n460G\yes">parted.txt && parted /dev/sda1<parted.txt. Even if I used the device "/dev/sda" instead of the partition it did not work.

    Finally I simply recreated the partition:
    /sbin/parted /dev/sda rm 2 && /sbin/parted /dev/sda mkpart primary ntfs 206848s 482551807s

    The values shown above are for an other harddisk. Here I used the second partition (/dev/sda2) starting at sector "206848"

     
  • Steven Shiau

    Steven Shiau - 2015-01-23

    Got it. Cool. Thanks for sharing that.

    Steven.

     

Log in to post a comment.

MongoDB Logo MongoDB