Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483654 - Include UUID instruction on installation doc
Summary: Include UUID instruction on installation doc
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Installation Handbook (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-05 02:34 UTC by James Horton
Modified: 2013-12-17 09:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Horton 2013-09-05 02:34:30 UTC
For a variety of installation, using the UUID in the /etc/fstab
and elsewhere is a good idea. The handbook would be greatly enhanced
if it discussed when, where and how to use UUID on a new Gentoo
installation, imho.
Comment 1 nm (RETIRED) gentoo-dev 2013-09-05 07:31:26 UTC
when WOULD you want to use that? i haven't seen anything to suggest using UUIDs over standard naming schemes.
Comment 2 Martin Väth 2013-09-05 07:40:56 UTC
(In reply to Josh Saddler from comment #1)
> i haven't seen anything to suggest using UUIDs over standard naming schemes.

The /dev/sd? may change on every booting on some systems.
Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2013-09-05 08:05:59 UTC
The naming can indeed change at a not-so-convenient time. One of my home machines enumerates the SATA drives before going to an on-board CF card port. When I plug one more disk into the hotswap bay prior to boot, I would get a boot failure. FYI, Linux has supported the root=PARTUUID= this since 2.6.37 [1].

I don't recall how well Grub supports this, though.

[1] http://kernelnewbies.org/Linux_2_6_37#head-da4cb5f727d0f3b8fac1b23c097e15c3b49ff793
Comment 4 Martin Väth 2013-09-05 18:04:30 UTC
(In reply to Jan Kundrát from comment #3)
> Linux has supported the root=PARTUUID= this since 2.6.37 [1].

PARTUUID is only a solution for a few systems since it does not work with MBR but only with GPT. There were patches suggested for the kernel supporting UUID, but AFAIK they never made it into the kernel. Thus, unfortunately, support for UUID on the kernel command line requires using an appropriate ramdisk. However, using it in /etc/fstab works always and should be sufficient for many cases. This bug apparently is mainly about the latter.

> I don't recall how well Grub supports this, though.

Again, I do not think that this bug is about grub/kernel but about /etc/fstab.
However:

legacy-grub does not support this IIRC.
grub2 fully supports both (UUID and PARTUUID), and these are used by the grub.cfg-generating scripts even automatically, so no special description would be needed in the handbook.
(But of course also using grub2 does not solve the situation concerning MBR on the kernel command line).
Comment 5 James Horton 2013-09-09 22:23:49 UTC
UUID, documented inthe installation process,
or as an optional method would be foundational
when one choose to build a RAID system or
an embedded system. MDADM comes to mind.
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2013-12-17 09:45:49 UTC
I've added in the by-id/by-uuid information for fstab. I'm not touching the bootloader config for now though, I can hardly test that one out with my one system :-/

Paragraph should show up on the site in an hour or so.