LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-11-2012, 10:58 AM   #1
TKH
Member
 
Registered: Jul 2011
Location: Milky Way
Distribution: Ubuntu, LFS, Slackware, Fedora
Posts: 223

Rep: Reputation: 20
GRUB UUID Question


I just have a quick question:
Do I need an initrd.img to use UUID for grub loading?
If so, what do I need to include inside the initrd?
Thank you
 
Old 08-11-2012, 01:50 PM   #2
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612

Rep: Reputation: 125Reputation: 125
For GRUB2, this is set by default in /etc/default/grub.
Code:
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
If the GRUB_DISABLE_LINUX_UUID is uncommented, then comment it and run:
Code:
update-grub    # For debian and Debian-based distro, or
grub-mkconfig -o /boot/grub/grub.cfg    # or
grub2-mkconfig -o /boot/grub2/grub.cfg    # for Fedora, openSUSE and some others
Hope this helps.
 
Old 08-11-2012, 09:46 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,396

Rep: Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048
If "MBR", and grub (classic) yes you need an initrd. For grub2 see above.
For "gpt" the kernel (now) supports mounting the root via partUUID regardless of the bootloader. This is not the UUID of the filesystem.

So, as usual, it depends ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to use UUID on fstab and grub nicolasdiogo Debian 3 08-24-2011 03:46 PM
Can I expect UUID problems with grub anilbh Ubuntu 4 03-25-2009 12:47 PM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 09:41 PM
UUID, grub, and fstab radiodee1 Debian 4 09-16-2008 06:56 AM
root=UUID= parameter in GRUB? kushalkoolwal Ubuntu 4 05-18-2008 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration