Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-27-2012, 07:26 PM
|
#1
|
|
Member
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 157
Rep:
|
almost upgraded ext4 LUKS and LVM to 3.7.1, but missing /proc/partitions ...
Well, I (almost) upgraded my encryped LUKS/LVM ext4 volumes to the latest current 3.7.1-smp kernel, but rebooting failed.
The action after booting from 13.37 pendrive was as follows:
cryptsetup luksOpen /dev/hda2 slackluks
vgscan --mknodes
vgchange -ay
mkswap /dev/cryptvg/swap
mount /dev/cryptvg/root /root
chroot /root
Next I mounted /dev/sda1 as /boot and issued:
mkinitrd -c -k 3.7.1-smp -m ext4 -f ext4 -r /dev/cryptvg/root -C /dev/sda2 -L
then mkinitrd and lilo warned about non existing /proc/partitions file.
Rebooting failed. Why ?
How to pass the proper content of the /proc/partitions file into the chrooted environment ?
|
|
|
|
12-27-2012, 07:37 PM
|
#2
|
|
Member
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 451
Rep:
|
mount --bind /proc /root/proc
BUT, I for one, I will want to mount an temporary mountpoint into /mnt/tmp or /mnt from an installation system, instead of /root.
Last edited by Darth Vader; 12-27-2012 at 07:41 PM.
|
|
|
|
12-28-2012, 03:54 AM
|
#3
|
|
Member
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 157
Original Poster
Rep:
|
Well, I did that, but no luck ...
Rebooting lands only on "BIOS data check successful" message at boot, not going forward as it always did.
In the meantime I copied the content of the /proc/partitions into the text file named "partitions" and placed it after chrooting directly into the already empty /proc directory.
That way, both mkinitrd and lilo seemed to be working properly, issuing typical messages.
But rebooting machine stopped at "BIOS data check successful" again ...
|
|
|
|
12-28-2012, 06:53 AM
|
#4
|
|
Member
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 451
Rep:
|
For using an encrypted root filesystem you need an separate /boot partition, which is not encrypted.
The BIOS boot loader is not capable directly to use an encrypted device as boot device. The "problem" is common also to Windows (7/8), which use an separate boot partition (aka system partition) with 100MB size, for be able to boot an encrypted disk C:.
|
|
|
|
12-28-2012, 08:04 AM
|
#5
|
|
Member
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 157
Original Poster
Rep:
|
I have a separated and unencrypted /dev/sda1 as boot partition!
My LVM/Luks combination on the older machine worked like a charm for several years, surviving lots of kernel upgrades including the 3.7.1 one.
The one difference is that it uses ext3 as a main filesystem.
My newer LVM/Luks machine uses ext4 and I have an upgrading problem with it.
|
|
|
|
12-28-2012, 08:11 AM
|
#6
|
|
Member
Registered: Feb 2011
Location: England
Distribution: Ubuntu/Slackware
Posts: 116
Rep:
|
Shouldn't /dev/hda be /dev/sda?
You also need to mount --bind /proc /root/proc, and the same with /dev and /sys, before chroot. Then mount your /boot partition.
Can't install lilo if you haven't bound /dev to /root/dev, certainly.
Last edited by Stephen Morgan; 12-28-2012 at 08:12 AM.
|
|
|
|
12-28-2012, 09:22 AM
|
#7
|
|
Member
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 157
Original Poster
Rep:
|
Of course, we're talking about /dev/sda, not the hda - it is a typo from ancient times ...
All I entered was certainly /dev/sda based, otherwise nothing could be done.
For now, I'll try this:
1. mount --bind /proc /root/proc, and the same with /dev and /sys, before chroot.
2. after chroot - mount /boot partition.
We'll see what happens, but upgrading my older ext3 based LVM/Luks machine didn't need these steps at all.
|
|
|
|
12-28-2012, 11:49 AM
|
#8
|
|
Member
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 157
Original Poster
Rep:
|
I did that.
But after chrooting I see empty /proc and /sys directories and mkinitrd/lilo make usual warnings. :-(
|
|
|
|
12-28-2012, 04:27 PM
|
#9
|
|
Member
Registered: Jan 2004
Location: Poland, Poznan
Distribution: Slackware current
Posts: 157
Original Poster
Rep:
|
Thanks to all of you - problem is solved - there was a mismatch in defining vmlinuz in /etc/lilo.conf .
|
|
|
|
| Thread Tools |
Search this 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:00 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|