Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does Gentoo use UUIDs by default?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Nick_C
n00b
n00b


Joined: 09 Mar 2012
Posts: 2

PostPosted: Fri Mar 09, 2012 10:45 am    Post subject: Does Gentoo use UUIDs by default? Reply with quote

Can anyone tell me if Gentoo uses UUIDs for partition identification or traditional /dev/hda type identification?

As a complete noobie to Gentoo I am trying to establish whether it might be suitable for my intended purpose before wasting time downloading and installing only to find it not quite suitable for my particular environment.

My main problem is that I will be working in a multi-disk environment where drives are being added and removed on a regular basis. Hence the need to ensure that the /boot and / root partitions are referred to by UUID.

Thanks,
Back to top
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 734
Location: Glasgow, UK

PostPosted: Fri Mar 09, 2012 11:03 am    Post subject: Reply with quote

Hiya Nick_C,

Gentoo doesn't by default use UUIDS for root partition ID as the kernel can't read uuids by itself, for that there is a need for blkid which requires an initrd of some description. By "default" I mean that if you install by the numbers from the handbook you only get an initrd if you use genkernel.

Running genkernel with the --disklabel argument will build blkid into the initramfs and allow you to use boot lines such as:

Code:

kernel /vmlinuz real_root=LABEL=label real_root=UUID=uuid
initrd /initrd


Once you get root mounted of course you can specify LABEL/UUID lines in fstab for all other partitions no problem at all without an initrd (provided that /sbin/blkid is on your root partition of course ;) ).

Hope this helps

-Telemin-
_________________
The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post
Back to top
View user's profile Send private message
dantoo
n00b
n00b


Joined: 13 Dec 2010
Posts: 3

PostPosted: Fri Mar 09, 2012 11:05 pm    Post subject: Re: Does Gentoo use UUIDs by default? Reply with quote

Nick_C wrote:
Can anyone tell me if Gentoo uses UUIDs for partition identification or traditional /dev/hda type identification?

As a complete noobie to Gentoo I am trying to establish whether it might be suitable for my intended purpose before wasting time downloading and installing only to find it not quite suitable for my particular environment.

My main problem is that I will be working in a multi-disk environment where drives are being added and removed on a regular basis. Hence the need to ensure that the /boot and / root partitions are referred to by UUID.

Thanks,


Or you can use PARTUUID which is for partition UUIDs rather than file system UUID (which blkid displays). PARTUUID is built into the kernel. This is for disks with GPTs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum