LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-21-2007, 10:28 PM   #1
Verbato
LQ Newbie
 
Registered: Jul 2004
Location: In the middle of Norway
Distribution: SuSE SuSE and SuSE. Used it since 6.0
Posts: 4

Rep: Reputation: 0
Unhappy Gentoo-PC not booting with root on LVM2


So I've googled. And I've googled. And I've googled some more.
I thought this was easy. And it probably is. But it isn't.
So how do I get my pc to boot from an LVM2-root?

Setup:

hda1 - boot
hda2 - swap
hda3 - 8e/LVM2

hde1 - 8e
hdf1 - 8e
hdg1 - 8e

(Old PC, no more than some 60GB in all)

I guess the problem hangs on mkinitrd..?
I have to make an initial ramdisk that will load a (homemade) kernel+modules+vgscan/vgchange (dynamically linked) etc. Right?
But how..?

Please, Mr/Ms kind soul, point me in the right direction. Cause I need this PC to run like this... Thanks
 
Old 11-21-2007, 11:42 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,353

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Go check the doco at gentoo.org; the best there is.

Given you are compiling your own kernel, you can include LVM2 and dev mapper - no need for an initrd I can see.
I don't use it though, so I'm only guessing ...
 
Old 11-22-2007, 07:05 AM   #3
Verbato
LQ Newbie
 
Registered: Jul 2004
Location: In the middle of Norway
Distribution: SuSE SuSE and SuSE. Used it since 6.0
Posts: 4

Original Poster
Rep: Reputation: 0
I forgot to mention; I have read the gentoo-documentation, where it says "Make your initrd", and all following.
It seems as though "The cowboy way" is the only one of those that would work. But it doesn't.
Or well, it is too much of a mess for me to get it right. I have tried...
And I've tried googling for another solution on the net. Anything that'd point me in the right direction...
And so I'm asking here for any pointers please. Thank you very much.
 
Old 11-22-2007, 07:17 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,353

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
This would appear a good start.
 
Old 11-22-2007, 07:45 PM   #5
Verbato
LQ Newbie
 
Registered: Jul 2004
Location: In the middle of Norway
Distribution: SuSE SuSE and SuSE. Used it since 6.0
Posts: 4

Original Poster
Rep: Reputation: 0
Yep. So it was. Thanks
I'm still stuck though... Probably something set wrong in grub.
I have tried initrd. I have tried mkinitrd with variuos options (added dm-mod to initrd).
Still stuck. I have tried passing various root=/dev/ram0 ...hda1.../dev/system/lvmroot... No luck.
I have tried having no initrd= in grub. I am stuck.

And this is the page I've tried to follow:
http://gentoo-wiki.com/HOWTO_Install...root_partition
Which isn't too clear for me. Yes I'm stupid. Please help me. ;-)
 
  


Reply

Tags
lvm, lvm2, root


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
root on lvm2 problem :-( echo>/dev/null Linux - Software 1 10-23-2006 10:21 PM
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 06:51 AM
lvm2 booting - can't find ext3 yorgodillo Fedora 2 11-18-2005 04:02 PM
suse 9.3 and root on lvm2 sam_vde Suse/Novell 0 07-14-2005 06:24 AM
LVM2 (non-root) lv's won't mount at boot time jbanafato Linux - General 3 03-06-2005 11:29 PM


All times are GMT -5. The time now is 01:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration