bug-grub
[Top][All Lists]
Advanced

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

Re: Which device did I boot from?


From: adrian15
Subject: Re: Which device did I boot from?
Date: Sun, 01 Jul 2007 19:48:49 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Dallas Clement escribió:
In fact I am trying to boot from a USB drive which would be /dev/sdx.

The other problem I have is that I can't just do a search for a
particular file like devices.map on a mounted partition.

        The problem that you have can be easily solved with a new super grub
command that we can call read_uuid.

        Sintax is the following one:
        read_uuid DEVICE

        Given a DEVICE which it is usually a partition or a hard disk this
command saves into a variable its correspondent UUID.
        
        You can try to develop this feature in Super Grub Disk if you want to.
I want to develop a similar feature in grub2 that saves not only hd0
uuid but also hd1, hd2 uuids and on so that these data can be passed to
the kernel and so that the kernel can build on the fly a valid
devices.map file.

        In Super Grub Disk I have some sort of functions that can convert
(hd0,0) into hda1 or sda1 so that you can pass this string to kernel
command line (so that it knows it does not have to install itself there.)


Any doubt, just ask.

adrian15





reply via email to

[Prev in Thread] Current Thread [Next in Thread]