Menu

Grub and Clonezilla

Help
2019-11-25
2020-01-09
  • Rainer Friedrich

    Hello,

    I have clonezilla on my second partition. So that I can backup and recover without a stick etc. I want to use this solution on different types of PCs (diffent hardware, different image passwords etc., define this variables now in a script file in the second partition). But my problem is, that I want to get the PC-Type to set. At the moment I hardcode it in the grub.cfg as a variable and use it for the rest oft the grub.cfg. My plan is to put a file on my first partition and read it's contents with grub. Is this possible?

    Got his idea from here: https://www.rmprepusb.com/tutorials/142---windows-restore-uefi

    They use a "tag"-File on the partition, but I want to read the content of the file, how can I achive this?

    I like the script in the link, it is fantastic, they have a lot of fascinating stuff on their site.

    Thanks for help :-)

    cu
    F. :-)

     
  • Steven Shiau

    Steven Shiau - 2019-12-02

    Check the grub manual. Not sure if the command "cat" works for you or not:
    https://www.gnu.org/software/grub/manual/grub/grub.html#cat

    Steven

     
  • Rainer Friedrich

    Sound interesting, thanks! It is nothing connected directly with clonezilla. I want to create a clonezilla boot which is mostly variable driven

     
  • Rainer Friedrich

    Hello, today I combined part of a rmprepusb tutorial with my grub.cfg. I readed in the web, that you can use the source command in grub.cfg. So I placed a file with my variables on my drive and searched it with search routine from here https://www.rmprepusb.com/tutorials/142---windows-restore-uefi so I got the file and the variables.

    cu
    F. :-)

     
  • Steven Shiau

    Steven Shiau - 2020-01-09

    OK. Thanks for sharing that.

    Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.