[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mounting a virtual hard-disk and booting from it
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: Mounting a virtual hard-disk and booting from it |
Date: |
Wed, 22 Jun 2011 23:52:11 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110606 Iceowl/1.0b2 Icedove/3.1.10 |
On 22.06.2011 22:37, Swapnesh Chaubal wrote:
> Thanks for the reply Martin, is there any other way to achieve this? I
> do not need to python script for it, I need to run an executable which
> reads the virtual hard-disk. So I think I'll need to run this
> executable and add an entry in grub.conf before the boot menu shows up.
>
Have a look at ubuntu/casper and
http://www.supergrubdisk.org/wiki/Loopback.cfg to see how it's done
properly. It short: you completely miss the point and "running a
program/python script in GRUB" makes little sense. To load linux/initrd
from image from GRUB it's enough 4 simple commands: loopback, linux,
initrd, boot. But you need special initrd to do the rest
>
>
> On Wed, Jun 22, 2011 at 2:00 PM, Martin Rosenau <address@hidden
> <mailto:address@hidden>> wrote:
>
> Hello
>
> I do not think you can run Python scripts from GRUB. A Python
> interpreter is a very large program requiring a complete operating
> system. It would be very complex to run such scripts from GRUB...
>
> Martin
>
>> On Tue, Jun 21, 2011 at 3:02 PM, Swapnesh Chaubal
>> <address@hidden <mailto:address@hidden>> wrote:
>>
>> Hey folks,
>>
>> I use a script from VMWare to read a virtual hard-disk and
>> then mount it to a drive in Linux. How can I boot from this
>> mounted drive using grub (I need to mount the drive before
>> booting to any OS). I could have all the mounting stuff
>> written in a python/bash script. However, is there a way to
>> run that script from GRUB or a GRUB module?
>>
>> Thanks,
>> Swapnesh
>>
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> address@hidden <mailto:address@hidden>
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature