You are not logged in.

#1 2014-11-29 03:51:35

z0ro
Member
Registered: 2014-11-29
Posts: 12

Grub problem after running grub mkconfig.

I'm installing arch on my laptop and I installed grub and os-prober, but when I run grub-mkconfig -o /boot/grub/grub.cfg this shows up:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
   /run/lvmlvmetad.socket: connect failed: No such file or directory
   WARNING: Failed to connect to lvemtad. Falling back to internal scanning
   No volume groups found.
[  893.101209] squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on sda1
[  893.104956] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  893.108560] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
[  893.112165] EXT4-fs (sda1): VFS: Can't find ext4 filesystem
done

The first time this happened, I continued normally and nothing booted up.

Offline

#2 2014-11-30 19:48:01

RandomArchGuy
Member
Registered: 2014-11-25
Posts: 5

Re: Grub problem after running grub mkconfig.

Can you post your grub.cfg and what happens when it boots? Does grub appear, do you get any error messages?

Offline

#3 2014-11-30 20:45:59

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: Grub problem after running grub mkconfig.

Also, a little bit about your partition layout would be helpful, in case you're using something different like LVM or LUKS or something like that.

Last edited by clfarron4 (2014-11-30 20:46:10)


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#4 2014-11-30 20:58:11

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Grub problem after running grub mkconfig.

Did you try systemctl start lvmetad?

Offline

#5 2014-11-30 21:18:05

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: Grub problem after running grub mkconfig.

Spider.007 wrote:

Did you try systemctl start lvmetad?

Surely you mean systemctl start lvm2-lvmetad (this is why I mention it)?


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#6 2014-12-01 01:06:48

z0ro
Member
Registered: 2014-11-29
Posts: 12

Re: Grub problem after running grub mkconfig.

GRUB doesnt boot up at all, all that shows up is Atheros PCIe controller,since I have no other OS or bootloader installed. I don't have LVM installed as far as I know, since I deleted all my partitions and redid them when I installed arch. My partitions go like this:
/dev/sda1: BIOS boot partition
/dev/sda2: root partiotion
/dev/sda3: swap
/dev/sda4: home/data
I've had grub work when I had other OS's installed.

Offline

#7 2014-12-03 21:58:32

RandomArchGuy
Member
Registered: 2014-11-25
Posts: 5

Re: Grub problem after running grub mkconfig.

What file system is on sda1? are you able to mount it from a livecd?

Offline

#8 2014-12-03 22:03:07

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,193
Website

Re: Grub problem after running grub mkconfig.

Is your disk GPT or MBR?
If you don't know, post the output of:

# parted -l

Only GPT disks use a BIOS boot partition.


godisnowhere

Offline

#9 2014-12-04 04:56:16

z0ro
Member
Registered: 2014-11-29
Posts: 12

Re: Grub problem after running grub mkconfig.

sda1 is ext4, and no I havent tried mounting it, im using gpt, but I done mind switching to mbr, if thats what it takes for arch to work. I installed Manjaro to see if it still works, and sure enough, GRUB worked perfectly. When I tried installing Fedora, It booted constantly into safe mode.

Offline

#10 2014-12-04 07:16:29

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,193
Website

Re: Grub problem after running grub mkconfig.

If sda1 is your BIOS boot partition, it should not have a filesystem.

Re-create the BIOS boot partition (type "ef02" in gdisk) and do not format it to ext4.


godisnowhere

Offline

#11 2014-12-04 08:40:49

z0ro
Member
Registered: 2014-11-29
Posts: 12

Re: Grub problem after running grub mkconfig.

Oh, my bad, it was ef02. Sorry for the confusion. It is written as BIOS boot partition. sda2 and sda4 are ext4. sda2 is my /root and sda4 my /home.

Offline

#12 2014-12-04 10:47:47

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Grub problem after running grub mkconfig.

Head_on_a_Stick wrote:

If sda1 is your BIOS boot partition, it should not have a filesystem.

That is not true for UEFI boot partitions (which I'm sure you're refering to). They are formatted as FAT32

Last edited by Spider.007 (2014-12-04 10:48:00)

Offline

#13 2014-12-04 13:42:35

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,193
Website

Re: Grub problem after running grub mkconfig.

Spider.007 wrote:
Head_on_a_Stick wrote:

If sda1 is your BIOS boot partition, it should not have a filesystem.

That is not true for UEFI boot partitions (which I'm sure you're refering to). They are formatted as FAT32

No, an EFI system partition would be type "ef00" -- I am referring to a "BIOS Boot Partition", type "ef02"
https://en.wikipedia.org/wiki/BIOS_boot_partition


godisnowhere

Offline

#14 2014-12-04 13:55:48

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Grub problem after running grub mkconfig.

Head_on_a_Stick wrote:
Spider.007 wrote:
Head_on_a_Stick wrote:

If sda1 is your BIOS boot partition, it should not have a filesystem.

That is not true for UEFI boot partitions (which I'm sure you're refering to). They are formatted as FAT32

No, an EFI system partition would be type "ef00" -- I am referring to a "BIOS Boot Partition", type "ef02"
https://en.wikipedia.org/wiki/BIOS_boot_partition

Ah, thanks. @ts does grub-mkconfig still output errors about sda1? If it does; is there any reference to sda1 in your fstab?

Offline

#15 2014-12-04 14:36:15

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,193
Website

Re: Grub problem after running grub mkconfig.

@OP: presuming you wish to install a non-EFI booting system on a GPT disk, there are some workarounds listed in the wiki:
https://wiki.archlinux.org/index.php/GPT#Workarounds

However, I would recommend installing & booting in EFI-mode.
For this, you will need an EFI system partition (type ef00, FAT(32)-formatted, 512MiB, mounted at /boot), as @Spider.007 says.

Last edited by Head_on_a_Stick (2014-12-04 17:18:04)


godisnowhere

Offline

#16 2014-12-05 10:43:43

z0ro
Member
Registered: 2014-11-29
Posts: 12

Re: Grub problem after running grub mkconfig.

@Head_on_a_Stick. I don't care for GPT/MBR,as long as arch works. When I boot up, it boots up in UEFO, I presume, since its the black screen with no background. I go into boot menu and open my boot device (Sandisk instead of UEFI:Sandisk) and go and install. I tried mounting the EFI partition and it still didn't work.

Offline

#17 2014-12-05 15:28:48

z0ro
Member
Registered: 2014-11-29
Posts: 12

Re: Grub problem after running grub mkconfig.

I don't even care to use syslinux, if it works. I tried everything, but arch wont install. I tried using the regular way, helmuthdua/aui script, Evo/lution installer, nothing installs correctly for some reason. In syslinux I changed it accordingly but it still wont boot.

Offline

#18 2014-12-05 20:30:56

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: Grub problem after running grub mkconfig.

OK, I'm now really confused as to what is going on here, and these last two comments aren't helping (especially telling us you used externally provided install scripts, because I have no idea what they do).

I recommend using a GPT formatted disk, UEFI and an EFI system partition for your installation. Try that and get back to us.

Last edited by clfarron4 (2014-12-05 20:34:25)


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#19 2014-12-06 08:15:30

z0ro
Member
Registered: 2014-11-29
Posts: 12

Re: Grub problem after running grub mkconfig.

^^I said I've tried every single way. I'd like to note I have succesfully installed arch before on another machine, and a long time ago I installed arch but I forgot to install dialog for internet. My laptop is an ASUS f201e. Anyway, back to that. How should I partition my disks? Last time I installed, I made a 512MiB EFI partition, I made it FAT32 like the wiki says, mounted it on /boot, and it still didn't work.

Offline

#20 2014-12-06 10:34:15

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Grub problem after running grub mkconfig.

How about posting some actual errors? nothing booted up and still didn't work are not accurate descriptions that helps us help you. Follow the installation guide on the wiki and tell us what error you get. As for the 'errors' in you opening post; that's normal if you run grub-mkconfig from the installer; you should retry grub-mkconfig & -install from within a arch-chroot of your actual installed system.

Offline

#21 2014-12-06 11:37:50

z0ro
Member
Registered: 2014-11-29
Posts: 12

Re: Grub problem after running grub mkconfig.

I did that on my arch-chroot. I'm trying to install arch on a new system, this is my problem. It's the same error each time, and I think that's what's preventing me from booting. Right now, nothing boots up.

Offline

#22 2014-12-06 12:05:20

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Grub problem after running grub mkconfig.

Isn't sda1 your usb-drive from which you booted your live-environment? And again; "nothing boots up" isn't useful information; are you doing a BIOS or an UEFI install? And does grub load when you reboot? Do you get a black screen or an error?

Offline

#23 2014-12-06 13:32:39

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,193
Website

Re: Grub problem after running grub mkconfig.

In addition to @Spider.007's points, what is your current partition structure?

Please post the output of:

# gdisk -l /dev/sda
lsblk -f

If you can't get GRUB to work, you should try gummiboot (this is the officially recommended method of booting systems with an EFI-capable motherboard).
https://wiki.archlinux.org/index.php/Be … #Gummiboot


godisnowhere

Offline

#24 2014-12-06 14:13:03

z0ro
Member
Registered: 2014-11-29
Posts: 12

Re: Grub problem after running grub mkconfig.

@Spider.007 It's like GRUB isn't installed, it goes straight to Aetheros PCIe controller, w/e that is. I don't know if I'm UEFO or not.
@Head_on_a_Stick, My current partition structure is :
/dev/sda1-200MB-BIOS boot partition
/dev/sda2-512MiB-EFI partition
/dev/sda3-20GB-Root partition
/dev/sda4-2G-Swap
/dev/sda5-450GB-home partition

Offline

#25 2014-12-06 14:26:19

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,193
Website

Re: Grub problem after running grub mkconfig.

@OP: that is not what I asked for sad
Please post the output requested...

You can use re-direction to put the output in a file and post it via another distro.

# gdisk -l /dev/sda > gdisk.txt
lsblk -f > lsblk.txt

EDIT: Please use "[ code ]" tags when posting code.
https://bbs.archlinux.org/help.php#bbcode

Last edited by Head_on_a_Stick (2014-12-06 14:33:11)


godisnowhere

Offline

Board footer

Powered by FluxBB