LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 09: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, 12: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, 08:46 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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



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 02:46 PM
Can I expect UUID problems with grub anilbh Ubuntu 4 03-25-2009 11:47 AM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 08:41 PM
UUID, grub, and fstab radiodee1 Debian 4 09-16-2008 05:56 AM
root=UUID= parameter in GRUB? kushalkoolwal Ubuntu 4 05-18-2008 12:52 AM

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

All times are GMT -5. The time now is 11:10 AM.

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
Open Source Consulting | Domain Registration