LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-23-2009, 01:12 PM   #1
actmnophn
Member
 
Registered: Mar 2008
Posts: 52

Rep: Reputation: 15
root=UUID or root=LABEL not working


I am having trouble booting from the kernel on my hd to load linux from my usb hd. I have installed everything and it works using the internal hd kernel booting from grub passing the root=/dev/sdb6 to the kernel.

I want to pass something other than /dev/sdb6 so that if I plug in another drive it still boots the correct one. I have tries root=UUID=<my uuid numbers...> and root=LABEL=MYLABEL and root=/dev/disk/by-uuid/<my uuid...> and root=/dev/disk/by-label/<MYLABEL...> all don't work.
is there something in the kernel that needs to be configured so it works. Or maybe in initramfs etc..

Thanks
 
Old 02-23-2009, 02:43 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I'd go with the initramfs-idea. You'll need to build an initial ramdisk that
has usb and scsi drivers present (just a wild guess).


Cheers,
Tink
 
Old 02-23-2009, 03:01 PM   #3
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 541

Rep: Reputation: 32
Try quoting the argument to root=
ie
Code:
root="UUID=<your-UUID-ID>"
Ciao

Last edited by urka58; 02-23-2009 at 03:02 PM.
 
Old 02-23-2009, 05:41 PM   #4
actmnophn
Member
 
Registered: Mar 2008
Posts: 52

Original Poster
Rep: Reputation: 15
also does not work.
 
Old 02-23-2009, 06:37 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,180

Rep: Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953
The initramfs must contain logic to resolve the UUID and/or label to a device node prior to the pivot_root
 
  


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
kernel root=LABEL handling Maze the Kid Linux - General 4 08-27-2009 02:31 PM
mkinitrd and root=LABEL not working slackuser46 Slackware 61 12-08-2008 02:35 AM
root=UUID= parameter in GRUB? kushalkoolwal Ubuntu 4 05-18-2008 12:52 AM
Grub.conf = how to change to root=LABEL=\ Eileen Fedora 6 05-18-2006 01:31 PM
compile 2.6.7 kernel and root=LABEL=/ not work? robert.china Fedora 3 07-06-2004 04:05 AM


All times are GMT -5. The time now is 05:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration