You are not logged in.

#1 2012-06-20 11:58:23

Rukiri
Member
Registered: 2011-11-08
Posts: 45

Gpt/Lvm/Grub 2 headache

I am currently trying to install arch with lvm and grub2.

The install is fine untill I have to chroot into /mnt bash.
Everytime I try to install grub2-bios I get an error saying can not find filesystem information /bootmnt /sys/usr/ not found forget the rest of the errors but it can't find file system information and I see this is very common one you chroot into your system after the install.

And yes I have followed the wiki for lvm and grub2 to a T.

Last edited by Rukiri (2012-06-20 12:01:10)

Offline

#2 2012-06-20 12:27:28

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Gpt/Lvm/Grub 2 headache

That's because there is no such thing as "/bootmnt" or "/sys/usr/". At least not on my system.

# ls /sys
block  bus  class  dev	devices  firmware  fs  kernel  module  power

# ls /
bin  boot  dev	etc  home  lib	lost+found  media  mnt	opt  proc  root  run  sbin  srv  sys  tmp  usr	var

And you don't chroot "into /mnt bash". It's actually like this:

# chroot . /bin/bash

...but this will work just as well (assuming the distribution you're trying to chroot from isn't set up to use zsh instead of bash, or anything like that):

# chroot .

https://wiki.archlinux.org/index.php/Chroot


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2012-06-20 19:07:49

Rukiri
Member
Registered: 2011-11-08
Posts: 45

Re: Gpt/Lvm/Grub 2 headache

Ok will give that a try, than the grub 2 wiki needs updating

Offline

#4 2012-06-20 21:35:45

Rukiri
Member
Registered: 2011-11-08
Posts: 45

Re: Gpt/Lvm/Grub 2 headache

Ok grub 2 isn't working and I've read on Linux questions stating there's a bug and just wait til arch officially supports it.  So the other option is syslinux boot loader. 

Here's how I'm installing lvm.
gdisk /dev/sda
n
1
->
+32m
ef02
n
2
->
->
8e00
w
y

gdisk /dev/sdb
n
1
->
->
8e00
w
y

pvcreate /dev/sda2
pvcreate /dev/sdb1

vgcreate arch /dev/sda2
vgextend arch /dev/sdb1

lvcreate -L 100m arch -n boot
lvcreate -C y -L 1g arch -n swap
lvcreate -L 1g arch -n root
lvcreate -l100%FREE arch -n home

mkfs.ext2 /dev/arch/boot
mkfs.ext4 /dev/arch/root
mkswap /dev/arch/swap

/arch/setup

Select source
Core
Extra community

Select editor
Nano

Set clock

Prepare hard drives
Manually prepare hdds mount points file systems

/dev/mapper/arch-boot. ext2 /boot
^ you get the idea

Select packages

Install packages


If I'm doing anything wrong please tell me

Offline

#5 2012-06-20 21:41:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Gpt/Lvm/Grub 2 headache

Rukiri wrote:

If I'm doing anything wrong please tell me

Please learn to use [ code ] tags - there is a link under the text box...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2012-06-20 21:43:43

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Gpt/Lvm/Grub 2 headache

mkfs.ext2 /dev/arch/boot
mkfs.ext4 /dev/arch/root
mkswap /dev/arch/swap

I don't think it's "/dev/something/something".

As long as you follow the LVM wiki I think you'll be fine. Syslinux is an excellent bootloader. I use it myself (here).


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#7 2012-06-20 22:11:57

Rukiri
Member
Registered: 2011-11-08
Posts: 45

Re: Gpt/Lvm/Grub 2 headache

Is the version of syslinux okay for lvm, the one in the arch installer.

Offline

#8 2012-06-20 23:11:14

Rukiri
Member
Registered: 2011-11-08
Posts: 45

Re: Gpt/Lvm/Grub 2 headache

failed to set boot flags mbr not installed

I'm using gpt

Offline

#9 2012-06-21 07:24:05

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Gpt/Lvm/Grub 2 headache

https://wiki.archlinux.org/index.php/GP … er_Support

I don't think you necessarily need a separate /boot partition for Syslinux but you do need the "legacy_boot" flag from gparted.


Also: https://wiki.archlinux.org/index.php/Sy … le_aka_GPT

Last edited by DSpider (2012-06-21 09:02:04)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

Board footer

Powered by FluxBB