grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* get partition by name
@ 2014-09-29  8:25 Michael Zimmermann
  2014-09-29 11:04 ` Colin Watson
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Zimmermann @ 2014-09-29  8:25 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 344 bytes --]

Hi,

currently GRUB allows selecting partitions by the partition number only -
like (hd0,11).
Sometimes - especially for embedded systems it would be useful to be able
to select them by the name define in the partition table. like: (hd0,boot)
or (hd0,rootfs).

Are they any plans(or existing features which I missed) for this?

Regards
Michael

[-- Attachment #2: Type: text/html, Size: 458 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: get partition by name
  2014-09-29  8:25 get partition by name Michael Zimmermann
@ 2014-09-29 11:04 ` Colin Watson
  2014-09-29 17:20   ` Michael Zimmermann
  0 siblings, 1 reply; 4+ messages in thread
From: Colin Watson @ 2014-09-29 11:04 UTC (permalink / raw)
  To: grub-devel

On Mon, Sep 29, 2014 at 10:25:51AM +0200, Michael Zimmermann wrote:
> currently GRUB allows selecting partitions by the partition number only -
> like (hd0,11).
> Sometimes - especially for embedded systems it would be useful to be able
> to select them by the name define in the partition table. like: (hd0,boot)
> or (hd0,rootfs).
> 
> Are they any plans(or existing features which I missed) for this?

Use the "search" command.

  https://www.gnu.org/software/grub/manual/grub.html#search

-- 
Colin Watson                                       [cjwatson@ubuntu.com]


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: get partition by name
  2014-09-29 11:04 ` Colin Watson
@ 2014-09-29 17:20   ` Michael Zimmermann
  2014-09-29 17:40     ` Andrei Borzenkov
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Zimmermann @ 2014-09-29 17:20 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 970 bytes --]

as it seems this commands looks for some filesystem specific label only.
What I need is the partition name set in the GPT/MBR partition table.

On Mon, Sep 29, 2014 at 1:04 PM, Colin Watson <cjwatson@ubuntu.com> wrote:

> On Mon, Sep 29, 2014 at 10:25:51AM +0200, Michael Zimmermann wrote:
> > currently GRUB allows selecting partitions by the partition number only -
> > like (hd0,11).
> > Sometimes - especially for embedded systems it would be useful to be able
> > to select them by the name define in the partition table. like:
> (hd0,boot)
> > or (hd0,rootfs).
> >
> > Are they any plans(or existing features which I missed) for this?
>
> Use the "search" command.
>
>   https://www.gnu.org/software/grub/manual/grub.html#search
>
> --
> Colin Watson                                       [cjwatson@ubuntu.com]
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>

[-- Attachment #2: Type: text/html, Size: 1730 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: get partition by name
  2014-09-29 17:20   ` Michael Zimmermann
@ 2014-09-29 17:40     ` Andrei Borzenkov
  0 siblings, 0 replies; 4+ messages in thread
From: Andrei Borzenkov @ 2014-09-29 17:40 UTC (permalink / raw)
  To: The development of GNU GRUB; +Cc: sigmaepsilon92

В Mon, 29 Sep 2014 19:20:07 +0200
Michael Zimmermann <sigmaepsilon92@gmail.com> пишет:

> as it seems this commands looks for some filesystem specific label only.
> What I need is the partition name set in the GPT/MBR partition table.

Please explain where name is set in MBR partition table.

> 
> On Mon, Sep 29, 2014 at 1:04 PM, Colin Watson <cjwatson@ubuntu.com> wrote:
> 
> > On Mon, Sep 29, 2014 at 10:25:51AM +0200, Michael Zimmermann wrote:
> > > currently GRUB allows selecting partitions by the partition number only -
> > > like (hd0,11).
> > > Sometimes - especially for embedded systems it would be useful to be able
> > > to select them by the name define in the partition table. like:
> > (hd0,boot)
> > > or (hd0,rootfs).
> > >
> > > Are they any plans(or existing features which I missed) for this?
> >
> > Use the "search" command.
> >
> >   https://www.gnu.org/software/grub/manual/grub.html#search
> >
> > --
> > Colin Watson                                       [cjwatson@ubuntu.com]
> >
> > _______________________________________________
> > Grub-devel mailing list
> > Grub-devel@gnu.org
> > https://lists.gnu.org/mailman/listinfo/grub-devel
> >



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-29 17:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-29  8:25 get partition by name Michael Zimmermann
2014-09-29 11:04 ` Colin Watson
2014-09-29 17:20   ` Michael Zimmermann
2014-09-29 17:40     ` Andrei Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).