Debian Installation :: Manually Booting From GRUB Console Into Crypt -> LVM -> Root
Feb 21, 2015
I'm trying to manually boot (from the GRUB console) into a system set up as follows: crypt partition -> LVM -> root LV, and I'm having some trouble figuring out how to do this from the GRUB console.
I have successfully manually booted a system which is set up as just LVM -> VG -> root LV. All I have to do is load the LVM module. In GRUB, that partition shows up as (hd0,gpt5). Once I load the GRUB LVM module, I can see the logical volume within the LVM as well. (My volume group name is "caesar", and the single logical volume is named "root".)
Code: Select allgrub> ls
... (hd0,gpt5) ...
grub> insmod lvm
grub> ls
... (lvm/caesar-root) ...
It's fairly simple to manually boot:
Code: Select allgrub> set root=(lvm/caesar-root)
grub> linux /vmlinuz root=/dev/mapper/caesar-root
grub> initrd /initrd.img
grub> boot
Where I am having difficulty is in trying to insert crypt before LVM. I can set up such a scheme, and put a minimal installation on it, without issues. It's booting into it upon reboot that I can't figure out. Once I load the GRUB crypto, cryptodisk and luks modules, I can mount the crypto partition:
Code: Select allgrub> ls
... (hd0,gpt5) ...
grub> insmod crypto
grub> insmod cryptodisk
grub> insmod luks
grub> cryptomount (hd0,gpt5)
Attempting to decrypt master key...
Enter passphrase for hd0,gpt5 (<long hex string here>): <type my password>
Slot 0 opened
grub> ls
... (crypto0) ...
At this point, GRUB sees the crypto partition as (crypto0). But the GRUB LVM module doesn't see "inside" of the crypto partition, so I don't see the root logical volume within the LVM listed; all I see is (crypto0).
Code: Select allgrub> insmod lvm
grub> ls
... (crypt0) ...
Setting it as root doesn't work:
Code: Select allgrub> set root=(crypto0)
grub> ls /
error: disk `crypto0' not found.
So, How do I get GRUB to "see" LVM inside the crypto partition?
View 0 Replies
ADVERTISEMENT
Sep 27, 2010
My dad has done something to his comp and it won't boot. it stops on boot up an comes up with some sort of black screen command line. he said its something along the lines of "initramfs" and he can't seem to do anything. We tried booting to the recovery console from the grub menu and gets the same response.
Hes having trouble booting to cd at the moment so I need to know is there some sort of command that will fix or at least give some help that he can type in from this spot.
View 9 Replies
View Related
Nov 5, 2010
I'm trying to do is protect the computer against housemates. The standard procedure I do with Lenny:
1. Password protect BIOS.
2. In BIOS, always boot from hard drive. Disable booting from any other device such as USB or CD-ROM.
3. Password protect Grub (v1) using the "password --md5 $1$9MuaA/$5TDLgvmcEiCWNr5W9VaMK1" syntax in my menu.lst file.
With the above precautions in place, [I think] the only way to gain root access to the system is to take the case lid off and proceed to do stuff physically (like set jumpers and/or take out the hard drive). Am I correct? My reasoning for this is, the computer boots -> must boot from HD -> must load Grub -> must go to default menu item since others are protected, and cannot command prompt in Grub without password.
Anyhow, In Squeeze, I was a bit disappointed to find out, after doing a bit of Google-research, that Grub v2 (which is standard on Squeeze now) does not easily support password protecting the Grub menu. Am I correct? Will this issue perhaps be addressed in the Squeeze final release? Is this feature dumb anyways because the Grub password is of no use (i.e. my paragraph above is complete horseradish)?
Another thing I would like to do is change the console font and size back to something more "normal" or "classic", not some crazy tiny font that's only found in totally bleeding edge Linux distrubutions <gasp!>. I found that the Squeeze console font (e.g. when I type Ctrl+Alt+F1) is wicked tiny. I wanna change it to "normal". Grub v2 password and console font config?
View 13 Replies
View Related
May 7, 2010
I recently did a single boot install of Lenny-xfce on a Compaq Armada laptop. There were no errors and grub indeed found that Lenny was the only OS on the hard drive and installed itself on the MBR. My problem is that I'm getting an error 18 when booting the freshly installed system from hard disk. I booted into rescue mode and started a shell to take a look around. There are files on the drive and /etc/grub exists. device.map shows dev(0,0) as being mapped to /dev/hda. A search on the forum for "grub error 18" came up with nothing.
View 2 Replies
View Related
Mar 1, 2011
I installed 10.04 (clean install) on a 250G drive (partitioned to 107G for the system files). It was working fine, until I wanted to install Window$ for the use of Adobe stuff. I popped the Windows XP disc in, it loaded its files, then I tried to choose a partition for installation. There was an error saying that I can't do that, and needed to delete a partition blah blah. I thought it was too much trouble, so I quit and just wanted to use my 10.04. Booted, and it says "Error booting operating system" I WAS SHOCKED.
I tried to install grub (but don't need that right? I DO NOT want to dual boot now), but the usual method ( the sudo grub; root (hd0.0)...) doesn't work ,because something like "stage1" is missing. I tried many methods by still the same error. The reason I do not want a clean install is that I did many fixes on my 10.04 so that it would work with my EeePC 1001pxd, and I do not want to go through that again. I will be checking my email frequently on other computers if I have a chance.
View 1 Replies
View Related
Mar 15, 2015
I am running Wheezy as my main OS in the first drive in my desktop. I use the 2nd drive for data. I am trying to add another OS to multiboot. When I ran grub-update in Wheezy, I am getting device letter for the root device instead of UUID in grub.cfg, in the os-prober section. Like this
Code: Select allsearch --no-floppy --fs-uuid --set=root 6ee49a8e-a619-49c7-9f66-51a5ca9a48cc
linux /boot/vmlinuz-316-x86_64 root=/dev/sdb3
initrd /boot/initramfs-316-x86_64.img
In the same file, UUID was used for the existing kernels.
Code: Select alllinux /boot/vmlinuz-3.2.0-4-686-pae root=UUID=c2eecf02-d427-4f2e-9fd0-9db61256cbac ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-4-686-pae
How can I get UUID instead of /dev/sdb3 for the 2nd OS?
View 3 Replies
View Related
Feb 18, 2010
Debian if my first OS and i want to dual boot Fedora12.Ok i installed Fedora12 and choose not to install the bootloader(gonna use the one Debian installed)What i'm tring to do in Debain is edit my /boot/grub/menu.lst
Here is what i have
Code:
title Debian GNU/Linux, kernel 2.6.26-1-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-1-686 root=/dev/hda1 ro quiet
initrd /boot/initrd.img-2.6.26-1-686
code....
View 4 Replies
View Related
Nov 23, 2010
I am still using Lucid with a Luks/dm-crypt setup. I picked up an upgrade today that included grub. It gave me a box that had me choose my location to install the upgrade. I chose /boot. When apt did its upgrade thing, I got the following message: Setting up grub-pc (1.98-1ubuntu ... /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.. /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.. Installation finished. No error reported. I looked in /boot/grub and found no menu.lst file.
View 4 Replies
View Related
Oct 25, 2015
Since moving my debian server over to a Gigabyte H97N-WIFI motherboard the console dims on booting and generally stays dark. Strangely the screen the brightens up if I go to an emergency shell, but if the boot runs successfully I don't see the resulting login prompts. Also, during the boot process the messages to the console are too dark to see.
I've tried the i915.invert_brightness=1 fix mentioned here [URL].... but that seems to have no effect. I'm assuming that this has something to do with moving to intel graphics as my previous hardware had a radeon graphics card and didn't display this problem.
View 4 Replies
View Related
Mar 10, 2010
I'm just trying to install Ubuntu server 9.10 to a logical volume manager partition. I have two physical disks of 250GB - each has a 10GB primary partition and 240GB logical partition for LVM
I created partions using 'manual partitioning'.
It shows:
LVM VG grpA 240GB
LVM VG grpB 240GB
SCSI1 (sda) 250GB
#5 logical 240GB K lvm
[Code].....
I want '/' (i.e root) to be on a logical volume in the lvm 'grpA' (on disk sda).
But the installer does not offer creation of Logical Volumes or their format - only seems to go as low as volume group. If I try continuing installer complains that 'no root file system is defined'.
Does anyone know how I create the LV and install with root there?
(On another machine with 9.04 I used the guided partitioning with use entire disk and lvm - that just worked putting root in the lvm... but this current machine needs a specific layout).
View 4 Replies
View Related
May 19, 2010
If you manually partition Ubuntu Linux; how much do you allot to your root directory? If someone installs many games and software, should they use a very large root directory such as 30GB or more?
View 6 Replies
View Related
Sep 4, 2011
Reinstalled Debian Squeeze (64bit/gnome) on my Notebook using Netinstall. Everything worked like always but in the setup instead of typing in a root password as asked to i just pressed enter (in the hope of not having to type in a pw in the console later, just having to press enter then)
When i needed rootpw to install some software (using SoftwareDownloader) the normal loginpw seemed to work, but not in the console.
ari@HP625:~$ su -
Password:
su: Authentication failure
[Code]....
View 3 Replies
View Related
Apr 17, 2009
Being able to reset the root password by booting into single usermode by editing grub. This is a MAJOR flaw. I know it makes no real difference against internet bourne attacks, but even so I must say I found it shocking. The only way I've found to stop this is to encrypt the entire HDD, so noone could get into single user mode without first knowing the encryption key/password.
View 14 Replies
View Related
Nov 16, 2010
I've recently installed a new graphic card after my old one started to go belly-up and it works nicely in X with twinview. The card have one VGA, one DVI and one HDMI. I have the monitor connected to the VGA and my projector connected to the DVI. However, when I boot the monitor (VGA) don't receive a signal. It is dead until X comes up (and when X comes up it does exactly what I want, it uses the VGA monitor as the main screen).
I had this setup on my old card to and it worked fine. Grub and boot console showed on both screens and I never had to tweak anything to make it do this.
how to enable the VGA outlet, either have boot enabled or only the VGA enabled (either way is fine by me but I really want to see Grub and the boot console on startup).
View 9 Replies
View Related
Nov 14, 2010
I'd like to be able to manually mount a USB stick in console (before X is started) and I can't seem to find a good way to do that. I'm not too smart about HAL and UDEV and I don't want to undo the auto mount feature when X is running but still be able to manually mount and unmount as necessary; like for installing patches and packages after an install or version upgrade. It seems like there should be an entry in /etc/fstab and a directory in /mnt or /media but danged if I can find something that points the way.
View 12 Replies
View Related
Nov 21, 2015
first time with debootstrap, i followed: [URL] the error i get on boot looks like this:
Code: Select all [URL]
they did not mention lvm speficically so i just installed lvm2 inside the chroot and created my fstab like this:
Code: Select all/dev/mapper/debian--unstable-root / ext4 errors=remount-ro 0 1
/dev/mapper/debian--unstable-home /home ext4 defaults 0 2
/dev/mapper/debian--unstable-tmp /tmp ext4 defaults 0 2
/dev/mapper/debian--unstable-var /var ext4 defaults 0 2
Having one mounted from jessie looks like this:
Code: Select all/dev/mapper/debian--unstable-root on /home/julius/other-systems/debian-unstable type ext4 (rw,relatime,data=ordered)
So I guess the fstab is correct
I already tried to "refresh" the inittab with:
Code: Select allupdate-initramfs -u
command ran ok, but no change at boot.
View 1 Replies
View Related
May 17, 2011
My Squeeze installation has the horrific 80x25 line display, and I cannot stand it. I know it can do better, because the grub screen is very tiny. I ran dpkg-reconfigure console-setup, but the offerings there aren't much better. I don't know what happened to the good ol' days of grub when all you had to do was pass vga=791 to the kernel to get a decent console size... but it seems they are gone.
I don't really understand this new v2 grub... I don't know why it was necessary to change how it was configured, when it seemed to work so exquisitely. how I would accomplish the functional equivalent of passing vga=791 (1024x768@75hz) to the kernel in grub
View 6 Replies
View Related
Nov 20, 2010
The in build cipher algorithms that are in the kernel are not critically secured, the best, I think, supports 384 bit encryption.
So I was looking forward towards stuff like DSA or very preferably OTP cipher with like... 8192 bit encryption using DM, I know it sounds insane, but so is the data. I want it to be uncrackable for the fastest supercomputer combined till 2070.
View 3 Replies
View Related
Jun 17, 2010
How can I run a Debain ISO from a USB using GRUB4DOS like Boot Multiple ISO from USB (MultiBoot USB)? This way I can keep several install disks on one USB key.
This entry didn't work:
title Debian live
find --set-root /debian-504-amd64-CD-1.iso
map /debian-504-amd64-CD-1.iso (0xff)
map --hook
[code]....
View 2 Replies
View Related
Feb 22, 2011
Debian 6.0 Squeeze (stable) AMD64.
At first the problem was that the old volume group (containing all logical volumes for both physical volumes) had the same name as the new volume group. I did a reinstall where I changed the name and ran vgreduce --removemissing debian which seems to have removed all logical volumes from the old volume group.
When I try to unlock the drive in Gnomes Disk Utility I get "Incorrect Passphrase. Try again." but I *know* it's the right password, and I don't get any error when changing the password so that seems to be possible.
I found the oldest archive in /etc/lvm/archive/ and manually edited it to remove any stuff about the old LVs and PVs. Then I did vgcfgrestore --file VG_backup.vg groupname. With the help of blkid I edited /etc/fstab and /etc/crypttab to mount the disk at startup.
View 1 Replies
View Related
Jun 29, 2011
First happened after the installation of VirtualBox OSE. Freezes right afterStarting GNOME Display Manager: gdm3and, in one instance, on the following line. Doesn't accept input and the cursor stops blinking on either state. VirtualBox's drivers are one of the closest lines to the last one and, in one instance, one of these lines reported an error. I can boot recovery mode and have already removed VirtualBox. Given it was installed with a live netinst CD image (on a USB stick) and I have a history of bad installations with this image, I'll try to install the normal CD image, although this will take some time.
Specs:
HP Mini 110-3110BR
Intel Atom N455 (1,66 GHz)
160 GB (5400 RPM) HD
1 GB DDR2 SDRAM (1 Dimm)
3 USB ports
1 SD/MMC port
No CD/DVD drive
Latest Debian
View 3 Replies
View Related
Jul 20, 2011
I have been mucking around with Linux on and off for a while now, but this is the first time I have used a Debian distro. I have to say, it's been a pleasurable experience with it all going easily from install to now. I installed it to my external WD 1tb drive. It worked first up not a worry in the world. I have 2 internal drives also and when the installation of Debian was finished I had a GRUB with all operating systems duly noted. I was able to choose at start up between my Windoze 7 on HD0 and my PCLOS on HD1 and my Debian on HD2. (sda, sdb, sdc).
I noticed today as I was booting into Debian that the Windoze option was gone from the GRUB. I thought I'd put my trusty GRUB disc in, reboot and have the issue sorted in no time, as I have in the past. No such luck. After trying almost every option on the super grub disc I have a list of errors, 15 file not found, error 6 mismatched, error17 can not mount and error 12 invalid device. The only thing I can crank up now is windoze and whilst I have had a pretty good experience with win 7, I would like to have the option of choosing between the 3.
View 9 Replies
View Related
Nov 9, 2010
I am using Debian Squeeze, having installed it after Windows 7, each on a separate HD.
What happened was that Win7 became unbootable and, after failing to recover it, decided to live without it.
After a (happy) week of Windows-free life, I'm wondering if I can safely remove GRUB ("Grub-pc" and "Grub-common" are installed) since, as far as I know, GRUB is there only to boot/load more than one OS?
View 3 Replies
View Related
Mar 15, 2011
When I netinstall debian squeeze an asus netbook using using Unetbootin usb stick, at the end I am asked if I want to install grub on MBR. I agree, yes, but on booting I find that the netbook has not grub. I go back to usb stick that stole my grub and I use it to boot. I go to sunaptic and install grub, still nothing, the netbook won't boot without the usb stick.
View 2 Replies
View Related
Jul 14, 2011
I have recently (today) installed Debian on a logical partition of my master hard disk, but when booting it will just list Debian or Debian recovery not listing windows at all. I know there may be some that will think that is a good thing but I do need access to windows.
I had a root about and found this thread which I thought might solve the problem as it is similar:
viewtopic.php?f=17&t=63601
But when I got to the part where I entered the command su -c "nano /boot/grub/grub.cfg" the terminal prompt changed to a > and I felt a little unsure of what I was doing as I would have prefered to have opened the grub.cfg file as a text file, as it is I recieved a syntax error.
As you can probably tell Linux to me appears to be a bit of a black art, but I am enthusiastic none the less. I will list the output of the terminal window so that you may see the steps I have taken.
anthony@Debian:~$ su -c "grub-mkconfig"
Password:
Generating grub.cfg ...
#
# DO NOT EDIT THIS FILE
#
[Code].....
View 4 Replies
View Related
May 17, 2015
Recently I installed Debuan "jessie". I previously had Windows 8.1 and Xubuntu installed. After installation Debian installed it's own version of GRUB, with entries for Debian, Xubuntu and Windows. The problem is that after I selected Windows when booting, GRUB menu no longer appears. It boots straight into Windows.
It's lenovo Ideapad z510 laptop, with special button that allows me to select between 4 options before booting - one of them is "Boot menu".
I didn't use it before windows "removed" GRUB, but now there are 2 options: Windows boot loader and Ubuntu. When I select Ubuntu it loads my old boot menu (from before installing Debian).
I thought that when I use update-grub from Xubuntu I will at least eb able to boot into debian. After I did that Debian option appeared in the GRUB menu, but it didn't work - black screen.
How to get GRUB menu working again (and avoid replacing it by windows boot loader)?
View 3 Replies
View Related
Jun 25, 2015
I recently installed another Linux distro, Kali Linux, alongside my Debian 8 and discovered to my chagrin that my computer boots to Kali's grub rather than to the Debian grub. I had spent some time customizing Debian's grub and would hate to see that effort go to waste. Is there a way I can get my computer to boot to Debian's grub instead? I tried deleting Kali's boot partition with gparted but that did not seem to do anything.
View 14 Replies
View Related
Nov 23, 2010
I am not the most computer savy, so bear with me. I have opensuse installed on my usb hard drive and recently had a windows crash that caused me to lose my opensuse boot menu/grub. Before the crash I had to have the usb drive plugged in in order to boot to windows or opensuse or I would get an error at startup....... I would like to avoid this. Is there anyway to make it so that when I turn on my computer It boots directly to windows, and if I want to go to opensuse then I can plug in my usb drive and manually boot to usb from my boot menu? I would run these two together on my computer but I share this computer and having to have my usb drive plugged in all the time kind of made them mad. So I guess my question is two fold..... Is this possible? And if so can I go into my hard drive through windows and place something in there to allow me to boot to it since my grub is back to the origional windows boot or do I need to use a live cd to access opensuse and do it that way?.
View 1 Replies
View Related
Jun 21, 2010
When I first installed Lynx it would boot fine but as the first kernel updates came in it began to get really dodgy. Some days a certain kernel would boot up fine whereas the other would boot without X (i have dual boot with XP and so the kernel options come up on GRUB)Just today I updated the NVIDIA drivers and now neither boots fine, I looked around and I found that after logging in running "startx" in the CLI, which is displayed instead, i get my normal desktop back again.
View 2 Replies
View Related
Aug 27, 2011
I have tried and failed to install F14 and 15 on my system for a while now and I have been running Ubuntu in the mean time as it installs and runs fine as does Mint, and Suze.
My Pc is getting a little old now but is still very capable, however the Primary master Sata port seems to have a fault on it so I don't use that anymore as it ends up corrupting my hard drive after a few weeks.
I am running one hard disk on the secondary sata port which shows up as the primary slave in Bios.
When I install F14 or 15 all goes well till I restart then it boots to Grub with no errors.
I have tried assigning root in grub and it doesn't seem to think any hard disk exists from what I have tried, what am I missing?
Just to confirm I am running one hard disk on the second SATA port, Fedora detected it on install as sda1, and the rest of the linux partition as sda2.
I have tried this multiple times and the grub was installed to the MBR
View 1 Replies
View Related