LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-11-2009, 05:23 PM   #1
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Rep: Reputation: 41
installed Jaunty (new partition)--now Hardy will not boot (crypto issue)


I wanted to keep my Hardy installation and install Jaunty on a separate partition. I did this, and Jaunty boots up, but Hardy will no longer boot up.

Before starting I got some advice here.
Quote:
Jaunty should find the other grub settings for 8.04 automatically and include it in the Jaunty bootloader. I just installed the beta alongside my intrepid install and it has all my grub settings.
I don't know about it working with encryption though.
Apparently this does not work when encryption is used...

Here is my status:
1. Jaunty boots fine and works as expected.
2. I can manually luksOpen and mount my Hardy root partition
3. I can manually luksOpen and mount my Hardy data partition
4. all the data is intact. Nothing was lost when installing Jaunty.

But Jaunty did alter things in /boot that make Hardy fail to boot up and I need to boot Hardy to work.
The error is:
Quote:
Starting up...
Loading, please wait...
Setting up cryptographic volume sda3_crypt (based on /dev/disk/by-uuid/snip-uuid-3e36c)
cryptsetup: failed to setup lvm device
[snip - typing by hand because not sure how to copy/paste]
Found volume group "vg1-lvHardyRoot" using metadata type lvm2
Found volume group "vg2-lvJauntyRoot_crypt" using metadata type lvm2
ALERT! does not exist. Dropping to a shell!
So far I have restored the Hardy-related stanzas for menu.lst according to the way they were in Hardy before the Jaunty install.

I also tried copying back initrd.img for 2.26.24-23 (Hardy) and booting from this grub menu selection, but that gives the exact same error message.

Any ideas what I can try?
 
Old 05-12-2009, 09:51 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
where is the /boot of hardy?

encrypted / do not boot
 
Old 05-12-2009, 10:01 AM   #3
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
my partitions:

/dev/sda1 63 61,448,624 61,448,562 8e Linux LVM
/dev/sda2 * 61,448,625 61,834,184 385,560 83 Linux
/dev/sda3 61,834,185 120,423,239 58,589,055 83 Linux
/dev/sda4 120,423,240 293,041,664 172,618,425 83 Linux

sda1 is Jaunty. It works. It boots from sda2.
sda2 is /boot (unencrypted, of course)
sda3 is Hardy (encrypted) - worked before installing Jaunty, boots from sda2 (same as Jaunty)
sda4 is just some data (mounted in Hardy) (encrypted)
 
Old 05-12-2009, 10:09 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
So sda2 is the /boot for Jaunty

You would need a seperate /boot partition for Hardy, I suspect this is the issue.

Do you have a backup of the original sda2 partition?
 
Old 05-12-2009, 11:11 AM   #5
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by Disillusionist View Post
You would need a seperate /boot partition for Hardy
Really? I don't see why... (but I am far from an expert)

This guy (http://ubuntuforums.org/showpost.php...96&postcount=2) told me he did it without making a separate boot partition. (Anyway, I think that's what he was saying.)

Also this site (http://syrlug.org/contrib/grublinux.html) seems to indicate a single /boot partition is all that is required:

Quote:
A single Linux partition dedicated solely to controlling the GRUB configuration that allows a multi-boot environment.
 
Old 05-12-2009, 11:39 AM   #6
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
What is contents of the menu.lst of jaunty ?
 
Old 05-12-2009, 12:56 PM   #7
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by ronlau9 View Post
What is contents of the menu.lst of jaunty ?
The attached file was generated by boot_info_script when run from within Jaunty. It shows the menu.lst. At the point I ran the script I had slightly edited menu.lst.


The new entries look like this:
Code:
title        Ubuntu 9.04, kernel 2.6.28-11-generic
uuid        snip-uuid-27_27
kernel        /vmlinuz-2.6.28-11-generic root=/dev/mapper/vg2-lvJauntyRoot_crypt ro quiet splash
initrd        /initrd.img-2.6.28-11-generic
quiet
Obviously, that's OK for Jaunty, but not for Hardy. So I carefully changed the entries for the older kernels back to the way they were before:

Code:
title        Ubuntu 8.04.2, kernel 2.6.24-24-generic
root        	(hd0,1)
kernel        /vmlinuz-2.6.24-24-generic /dev/mapper/vg1-lvHardyRoot ro quiet splash
initrd        /initrd.img-2.6.24-24-generic
quiet
At this point, all the menu.lst stanzas related to Hardy are exactly the same as they were before I installed Jaunty.

Let me know what other info you would like to see. I appreciate the help!
Attached Files
File Type: txt boot_info_script_RESULTS.2009.05.11.redacted.txt (12.1 KB, 14 views)

Last edited by Mountain; 05-12-2009 at 01:14 PM. Reason: explained menu.lst changes I made
 
Old 05-13-2009, 12:23 PM   #8
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
check the filesystem in /boot

Did Jaunty create any symlinks in /boot? ... but it seems to be ok

anyway list files

Last edited by amani; 05-15-2009 at 10:31 AM. Reason: grammar
 
Old 05-13-2009, 12:28 PM   #9
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by amani View Post
check the filesystem in /boot

Do Jaunty create any symlinks in /boot? ... but it seems to be ok

anyway list files
/boot/ # ls -hogaR
.:
total 92M
drwxr-xr-x 4 32K 2009-05-11 17:52 .
drwxr-xr-x 28 4.0K 2009-05-12 15:32 ..
-rw-r--r-- 1 413K 2008-10-21 23:12 abi-2.6.24-21-generic
-rw-r--r-- 1 413K 2008-11-24 17:47 abi-2.6.24-22-generic
-rw-r--r-- 1 413K 2009-04-01 21:17 abi-2.6.24-23-generic
-rw-r--r-- 1 413K 2009-04-15 16:10 abi-2.6.24-24-generic
-rw-r--r-- 1 514K 2009-04-16 23:34 abi-2.6.28-11-generic
-rw-r--r-- 1 79K 2008-10-21 23:12 config-2.6.24-21-generic
-rw-r--r-- 1 79K 2008-11-24 17:47 config-2.6.24-22-generic
-rw-r--r-- 1 79K 2009-04-01 21:17 config-2.6.24-23-generic
-rw-r--r-- 1 79K 2009-04-15 16:10 config-2.6.24-24-generic
-rw-r--r-- 1 89K 2009-04-16 23:34 config-2.6.28-11-generic
-rwxrwxrwx 1 6.0K 2009-03-27 20:27 fstab_fdisk.notes.txt
drwxr-xr-x 2 1.0K 2009-05-11 17:54 grub
-rw-r--r-- 1 8.0M 2009-04-09 23:15 initrd.img-2.6.24-21-generic
-rw-r--r-- 1 8.0M 2009-04-09 19:17 initrd.img-2.6.24-21-generic.bak
-rw-r--r-- 1 8.0M 2009-04-09 23:15 initrd.img-2.6.24-22-generic
-rw-r--r-- 1 8.0M 2009-04-09 19:17 initrd.img-2.6.24-22-generic.bak
-rw-r--r-- 1 8.0M 2009-04-20 18:38 initrd.img-2.6.24-23-generic
-rw-r--r-- 1 8.0M 2009-04-09 23:14 initrd.img-2.6.24-23-generic.bak
-rw-r--r-- 1 8.0M 2009-05-11 17:18 initrd.img-2.6.24-24-generic
-rw-r--r-- 1 8.0M 2009-05-08 12:34 initrd.img-2.6.24-24-generic.bak
-rw-r--r-- 1 8.4M 2009-05-11 16:04 initrd.img-2.6.28-11-generic
drwx------ 2 12K 2008-03-26 12:29 lost+found
-rw-r--r-- 1 126K 2009-03-27 16:12 memtest86+.bin
-rw-r--r-- 1 885K 2008-10-21 23:12 System.map-2.6.24-21-generic
-rw-r--r-- 1 885K 2008-11-24 17:47 System.map-2.6.24-22-generic
-rw-r--r-- 1 885K 2009-04-01 21:17 System.map-2.6.24-23-generic
-rw-r--r-- 1 885K 2009-04-15 16:10 System.map-2.6.24-24-generic
-rw-r--r-- 1 1.8M 2009-04-16 23:34 System.map-2.6.28-11-generic
-rw-r--r-- 1 1.2K 2009-04-16 23:39 vmcoreinfo-2.6.28-11-generic
-rw-r--r-- 1 1.9M 2008-10-21 23:12 vmlinuz-2.6.24-21-generic
-rw-r--r-- 1 1.9M 2008-11-24 17:47 vmlinuz-2.6.24-22-generic
-rw-r--r-- 1 1.9M 2009-04-01 21:17 vmlinuz-2.6.24-23-generic
-rw-r--r-- 1 1.9M 2009-04-15 16:10 vmlinuz-2.6.24-24-generic
-rw-r--r-- 1 3.4M 2009-04-16 23:34 vmlinuz-2.6.28-11-generic

./grub:
total 230K
drwxr-xr-x 2 1.0K 2009-05-11 17:54 .
drwxr-xr-x 4 32K 2009-05-11 17:52 ..
-rw-r--r-- 1 197 2009-05-11 01:06 default
-rw-r--r-- 1 15 2008-03-26 13:01 device.map
-rw-r--r-- 1 8.1K 2009-05-11 01:06 e2fs_stage1_5
-rw-r--r-- 1 7.7K 2009-05-11 01:06 fat_stage1_5
-rw-r--r-- 1 16 2009-05-11 01:06 installed-version
-rw-r--r-- 1 8.6K 2009-05-11 01:06 jfs_stage1_5
-rw-r--r-- 1 6.2K 2009-05-11 01:06 menu (copy).lst
-rw-r--r-- 1 4.8K 2009-05-11 17:54 menu.lst
-rw-r--r-- 1 6.0K 2009-05-11 15:08 menu.lst~
-rw-r--r-- 1 7.2K 2009-05-11 01:06 minix_stage1_5
-rw-r--r-- 1 9.6K 2009-05-11 01:06 reiserfs_stage1_5
-rw-r--r-- 1 512 2009-05-11 01:06 stage1
-rw-r--r-- 1 119K 2009-05-11 01:06 stage2
-rw-r--r-- 1 9.4K 2009-05-11 01:06 xfs_stage1_5

./lost+found:
total 45K
drwx------ 2 12K 2008-03-26 12:29 .
drwxr-xr-x 4 32K 2009-05-11 17:52 ..
 
Old 05-15-2009, 03:27 PM   #10
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
Anyone see anything wrong? I'm still banging my head over this.
 
Old 05-16-2009, 09:37 AM   #11
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
I just want to let everyone know that I'm still looking for a solution...
 
Old 05-22-2009, 02:56 PM   #12
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
...still looking...
 
Old 05-22-2009, 11:32 PM   #13
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by Mountain View Post
...still looking...
Is the menu.lst of hardy crypted or not ?
If it is not crypted what happens if you call the menu.lst from hardy
from within the menu.lst form Jaunty
Example
title Hardy
root (hd0,?) where ? is the partition of the grub of hardy
configfile /boot/grub/menu.lst
 
Old 05-23-2009, 10:41 AM   #14
Mountain
Member
 
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by ronlau9 View Post
Is the menu.lst of hardy crypted or not ?
No, it is not encrypted. It is on /boot/grub

Quote:
Originally Posted by ronlau9 View Post
what happens if you call the menu.lst from hardy
from within the menu.lst form Jaunty?
I only have one menu.lst.
It contains entries like this for Jaunty:
Code:
title        Ubuntu 9.04, kernel 2.6.28-11-generic
uuid        snip-uuid-27_27
kernel        /vmlinuz-2.6.28-11-generic root=/dev/mapper/vg2-lvJauntyRoot_crypt ro quiet splash
initrd        /initrd.img-2.6.28-11-generic
quiet
And it contains other entries like this for Hardy:
Code:
title        Ubuntu 8.04.2, kernel 2.6.24-24-generic
root        	(hd0,1)
kernel        /vmlinuz-2.6.24-24-generic /dev/mapper/vg1-lvHardyRoot ro quiet splash
initrd        /initrd.img-2.6.24-24-generic
quiet
If I select a Jaunty entry, the system boots up. But I get an error when I select a Hardy entry.

Both Jaunty and Hardy share the same /boot partition, so /boot/grub is exactly the same. But /boot contains the correct initrd.img-* files for Jaunty and Hardy.
 
Old 05-23-2009, 01:29 PM   #15
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by Mountain View Post
No, it is not encrypted. It is on /boot/grub



I only have one menu.lst.
It contains entries like this for Jaunty:
Code:
title        Ubuntu 9.04, kernel 2.6.28-11-generic
uuid        snip-uuid-27_27
kernel        /vmlinuz-2.6.28-11-generic root=/dev/mapper/vg2-lvJauntyRoot_crypt ro quiet splash
initrd        /initrd.img-2.6.28-11-generic
quiet
And it contains other entries like this for Hardy:
Code:
title        Ubuntu 8.04.2, kernel 2.6.24-24-generic
root        	(hd0,1)
kernel        /vmlinuz-2.6.24-24-generic /dev/mapper/vg1-lvHardyRoot ro quiet splash
initrd        /initrd.img-2.6.24-24-generic
quiet
If I select a Jaunty entry, the system boots up. But I get an error when I select a Hardy entry.

Both Jaunty and Hardy share the same /boot partition, so /boot/grub is exactly the same. But /boot contains the correct initrd.img-* files for Jaunty and Hardy.
Yes that what you and I did different I have install Jaunty and Hardy on two different partitions and Hardy GRUB and Menu.lst is on his OWN partitions.
And even Jaunty do recognize Hardy I call Hardy Menu.lst to boot up from
Jaunty .
Let say I was NOT in favor to use the SAME boot partition

Last edited by ronlau9; 05-23-2009 at 01:32 PM.
 
  


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
SD card readers not recognized in clean installed Jaunty UNR on Acer Aspire One diemperdidi Linux - Laptop and Netbook 6 05-15-2009 03:40 PM
ifconfig shows only lo (after Hardy -> Jaunty + KDE 3.5 upgrade) pwabrahams Linux - Networking 7 05-02-2009 09:17 PM
new to linux based O.S. -- difference between Ubuntu gutsy, hardy, intrepid, jaunty poiesis Ubuntu 6 04-07-2009 07:29 AM
LXer: Sound Solutions for Hardy,Intrepid and Jaunty Jackalope Users LXer Syndicated Linux News 0 03-16-2009 09:20 AM
Unable To Boot To Fedora When Grub Installed in /boot Partition FedoraNewbie Linux - Newbie 4 09-26-2006 03:46 AM

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

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