Help with GRUB (manual install)

Who understands the boot process in both BIOS and EFI using GRUB?

  • I am a guru at GRUB.

    Votes: 0 0.0%
  • I am ok at GRUB.

    Votes: 0 0.0%
  • What is GRUB? lol

    Votes: 0 0.0%

  • Total voters
    0
D

dsk

Guest
Hello,

First let me start by saying I am a pretty much new to manual installs of any Linux distribution and probably a light-moderate user who is trying to understand the boot process. I can't seem to get GRUB to recognize any of my partitions.

Arch Current i686 install - non EFI system (Windows 7 already installed)

AT BOOT:
Code:
grub rescue> ls
(hd0)


FROM LIVE CD COMMAND LINE
Code:
fdisk -l 

Device     Boot   Start     End     Blocks     Id   System
/dev/sdb1   *   2048      206847      102400     7    HPFS/NTFS/exFAT
/dev/sdb2     206848     102399999   51096576   7   HPFS/NTFS/exFAT
/dev/sdb3     102400000   200059134   48829567+   83   Linux
/dev/sdb4     200059135   488397167   144169016+   86   NTFS volume set

*Note /dev/sdb2 is a Windows 7 partition
*Note /dev/sdb3 is a LUKS partition

I have tried several options to get stage2 working properly:

Code:
update-grub
zsh: command not found

vim /boot/grub/grub.cfg
vim will not execute and completion _vim exists

grub-mkconfig
grub-mkconfig: just gives a sample format but I can't edit the grub.cfg itself and I am unsure what exactly needs to be written in other than the menu entries.
I have read that GRUB2 doesn't use the menu.lst and it is contained in the grub.cfg

I am assuming that I need to just create a menu entry that points to /dev/mapper/root or the UUID to the encrypted volume.

I am not understanding where or what command I need to run to do this. I am either not atking myself the right question to find an appropriate answer or just reading too many answers that are irrelevant to my situation or both.

If anyone could help me understand what I am missing or forgetting and give a good direction to head in.
 


How did you setup your file system table? From the Live CD:
*Assuming that /mnt is the root filesystem of your HDD install*
Code:
genfstab -U -p /mnt >> /mnt/etc/fstab
*-U adds partition UUIDs. -p "Avoid(s) printing pseudofs mounts". Both of these options make the fstab file more specific*
Then to generate grub settings:
Code:
grub-install —target=i386-pc —recheck /dev/sdXY
Code:
grub-mkconfig -o /boot/grub/grub.cfg

P.S. There is no update-grub on Arch . use grub-mkconfig -o /boot/grub/grub.cfg instead.

More information:
https://wiki.archlinux.org/index.php/Grub
 

Members online


Latest posts

Top