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 - 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


Closed Thread
  Search this Thread
Old 08-03-2005, 05:53 AM   #1
dbonnell
LQ Newbie
 
Registered: Aug 2005
Distribution: Fedora
Posts: 2

Rep: Reputation: 0
Dual boot with LVM2


I have a system with a single IDE drive with a (ext3) boot partition and the rest allocated under LVM2, including a logical volume for a Fedora Core 4 root filesystem. That all works fine however I need to dual boot FC2 off the same system in order to test some software (Virtuozzo) that does not yet support FC4.

I created another logical volume for the FC2 root and installed it using yum. I tested the FC2 partition under Xen and it worked fine however the software I need to test uses a custom kernel so I need to natively boot the FC2 partition.

The kernel, initrd, etc. images from the /boot of the FC2 partition have been copied across to the real boot partition (as used by grub and Xen) and I have added entries to grub for the FC2 partition however the boot hangs with the following error messages.

Mounting root filesystem
mount: error 6 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
unmount /initrd/proc failed: 2
Freeing unused kernel memory: 164k freed
Kernel panic - not syncing: No init found. Try passing init=option to kernel.

I've spent the last hour or so Googling for a solution to no avail. Most of the replies suggest that it is because the root filesystem is ext3 but that the kernel does not have ext3 compiled in (even though the boot messages indicate that the ext3.ko module is loaded) and needs to so I switched the FC2 root to a ext2 partition but that has no effect. The other suggestion was that /initrd does not exist but it does on my FC2.

Even after changing the root filesystem to ext2 the mount error above still says ext3.

Thinking it may be something to do with the LVM (which I admit I don't know a whole lot about), I copied the LVM config across from my FC4 root to my FC2 root (/etc/lvm and /dev/LogVol00) but the result is the same.

Does anyone know if what I am trying to do is possible and if so how? Or will I have to remove the FC2 logical volume, shrink my volume group, and add a new primary partition to the disk for the FC2 root?


Thanks in advance,


Dave Bonnell
 
Old 08-03-2005, 06:30 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Umm, which startup scripts are active? What I'm driving at is that you (or rather the kernel) have to activate LVM before mounting root. Wrong script (FC2) might not do it...
 
Old 08-03-2005, 08:41 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
  


Closed Thread



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
Dual boot with LVM2 dbonnell Linux - Software 1 08-04-2005 02:23 AM
LVM2 (non-root) lv's won't mount at boot time jbanafato Linux - General 3 03-06-2005 11:29 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai SUSE / openSUSE 1 12-14-2004 05:04 PM
Newbie needs Mandrake/Win98 dual-HD, dual boot system design help... buddha Linux - Newbie 20 09-04-2003 08:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:08 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