LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 07-02-2017, 02:27 PM   #1
guerlando
LQ Newbie
 
Registered: Aug 2015
Posts: 29

Rep: Reputation: Disabled
System boots on grub command line


I'm following the installation guide from arch's website. I created a 513MiB partition to store the grub, a 6GiB swap, and a 100GiB ext4 for linux. I installed linux with pacstrap in the third partition and then installed grub into the first partition, which was mounted as /boot in my 3rd partition in which I was chrooted. I also generated the grub configuration file and then rebooted. I see only the grub command line when it reboots.

Ps: while creating the first partition, I selected the EFI type and then when I tried to format it with

mkfs.fat -F32 /dev/sdxY


It just outputs:

mkfs.fat 4.1 (2017-01-24)


What is this?

Also, GRUB says that when I do


parted /dev/sda1 print

I should see:

For GPT, you are looking for "Partition Table: gpt". For EFI, you are looking for a small (512 MiB or less) partition with a vfat/fat32 file system and the boot flag enabled

But I see partition table: loop and no flags.

What's happening?

ps: as you can see, I tried to install grub even though the table as loop and it had no boot flag, but it booted grub at least. Why?
 
Old 07-02-2017, 07:24 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Hmmm - Arch requires to to read the doco, and be careful. Also you need to apply some common sense.
Quote:
Originally Posted by guerlando View Post
mkfs.fat -F32 /dev/sdxY
This is where the common sense comes in - this is common documentation for an unknown (to the wiki author) partition where you want to install to. You need to use /dev/sda1
Quote:
parted /dev/sda1 print

I should see:

For GPT, you are looking for "Partition Table: gpt". For EFI, you are looking for a small (512 MiB or less) partition with a vfat/fat32 file system and the boot flag enabled

But I see partition table: loop and no flags.

What's happening?
This is where being careful comes in - read the grub page again; it should be "parted /dev/sda print"

Last edited by syg00; 07-02-2017 at 07:26 PM. Reason: typos
 
Old 07-02-2017, 07:59 PM   #3
guerlando
LQ Newbie
 
Registered: Aug 2015
Posts: 29

Original Poster
Rep: Reputation: Disabled
Hi, I know, I did type the right sda, which was sda1 in my case. I'm posting this in my smartphone because I can't boot my system so I didn't read well what I typed. Do you have an explabation for the output of mkfs.fat?
 
Old 07-05-2017, 07:35 AM   #4
remma12
Member
 
Registered: May 2017
Distribution: Arch
Posts: 65

Rep: Reputation: 28
Quote:
Originally Posted by guerlando View Post
Hi, I know, I did type the right sda, which was sda1 in my case. I'm posting this in my smartphone because I can't boot my system so I didn't read well what I typed. Do you have an explabation for the output of mkfs.fat?
That is the correct output of mkfs.vfat, see example here

fdisk -l should look something like this

I suspect that you have missed something in setting up Grub (been there, got the t-shirt haha)

boot again from the Arch install, remount your drives including /boot connect to the internet then arch-chroot

The reinstall grub, I'm assuming you used /boot as your mount point but change as needed

pacman -S grub efibootmgr

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub

just in case rebuild you initframs
mkinitcpio -p linux

then write the Grub config
grub-mkconfig -o /boot/grub/grub.cfg

then reboot

If you still have issues check out the grub wiki page here
 
Old 07-05-2017, 07:40 AM   #5
guerlando
LQ Newbie
 
Registered: Aug 2015
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by remma12 View Post
That is the correct output of mkfs.vfat, see example here

fdisk -l should look something like this

I suspect that you have missed something in setting up Grub (been there, got the t-shirt haha)

boot again from the Arch install, remount your drives including /boot connect to the internet then arch-chroot

The reinstall grub, I'm assuming you used /boot as your mount point but change as needed

pacman -S grub efibootmgr

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub

just in case rebuild you initframs
mkinitcpio -p linux

then write the Grub config
grub-mkconfig -o /boot/grub/grub.cfg

then reboot

If you still have issues check out the grub wiki page here

Thanks, I'm gonna try it today. Meanwhile, I've found a tutorial specific for macbook. The only difference is that it uses different directories for the grub installation, do you think this is the problem? http://www.frankshin.com/installing-...book-air-2013/

Do I have to use /boot/efi for example or something like that?
 
Old 07-05-2017, 07:54 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
What is the output of: parted /dev/sda print. also the efi partition should be mounted on /boot/efi, if you have it mounted on /boot that will not work.

Last edited by colorpurple21859; 07-05-2017 at 07:55 AM.
 
Old 07-05-2017, 08:41 AM   #7
remma12
Member
 
Registered: May 2017
Distribution: Arch
Posts: 65

Rep: Reputation: 28
Quote:
Originally Posted by guerlando View Post
Thanks, I'm gonna try it today. Meanwhile, I've found a tutorial specific for macbook. The only difference is that it uses different directories for the grub installation, do you think this is the problem? http://www.frankshin.com/installing-...book-air-2013/

Do I have to use /boot/efi for example or something like that?
If that's how you have it set up then change accordingly

Quote:
Originally Posted by colorpurple21859 View Post
What is the output of: parted /dev/sda print. also the efi partition should be mounted on /boot/efi, if you have it mounted on /boot that will not work.
I've always just mounted it at /boot, never had an issue with it. But if that's the correct way then cool
 
Old 07-05-2017, 08:44 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
Quote:
Originally Posted by remma12 View Post
If that's how you have it set up then change accordingly



I've always just mounted it at /boot, never had an issue with it. But if that's the correct way then cool
I had problems mounting efi partition to /boot vs /boot/efi the last time I tried it that way, but that was a few years ago. so maybe now it will work your way.

Last edited by colorpurple21859; 07-05-2017 at 08:46 AM.
 
Old 07-05-2017, 11:11 PM   #9
guerlando
LQ Newbie
 
Registered: Aug 2015
Posts: 29

Original Poster
Rep: Reputation: Disabled
I did it again with /boot/efi and it didn't even boot at grub this time, it just says that there's no disk to boot. However the vmlinuz image appeared at rhe boot directory, something that didn't even showed before. When I do fdisk -l with the live image, I see 3 partitions, one of them bootable and esp, the other is the swap, and the other is the root file system. However, when I use the hardware diagnostic tool I see that the disk has onlt one partition, which is the root one, and it's not bootable.

See here: https://imgur.com/a/BBYzb

Also, the /boot partition has vmlinuz, grub and efi folders as expected, and the / partition, which is the root one, has the entire linux tree installed to it, jusy as it should be
 
Old 07-06-2017, 05:33 AM   #10
remma12
Member
 
Registered: May 2017
Distribution: Arch
Posts: 65

Rep: Reputation: 28
Quote:
Originally Posted by guerlando View Post
I did it again with /boot/efi and it didn't even boot at grub this time, it just says that there's no disk to boot. However the vmlinuz image appeared at rhe boot directory, something that didn't even showed before. When I do fdisk -l with the live image, I see 3 partitions, one of them bootable and esp, the other is the swap, and the other is the root file system. However, when I use the hardware diagnostic tool I see that the disk has onlt one partition, which is the root one, and it's not bootable.

See here: https://imgur.com/a/BBYzb

Also, the /boot partition has vmlinuz, grub and efi folders as expected, and the / partition, which is the root one, has the entire linux tree installed to it, jusy as it should be
Try it with just /boot as the path rather than /boot/efi please
 
Old 07-06-2017, 07:50 AM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
Quote:
Originally Posted by guerlando View Post
I did it again with /boot/efi and it didn't even boot at grub this time, it just says that there's no disk to boot. However the vmlinuz image appeared at rhe boot directory, something that didn't even showed before. When I do fdisk -l with the live image, I see 3 partitions, one of them bootable and esp, the other is the swap, and the other is the root file system. However, when I use the hardware diagnostic tool I see that the disk has onlt one partition, which is the root one, and it's not bootable.

See here: https://imgur.com/a/BBYzb

Also, the /boot partition has vmlinuz, grub and efi folders as expected, and the / partition, which is the root one, has the entire linux tree installed to it, jusy as it should be
Then reinstall grub with "efi-directory=/boot/efi" or maybe "/boot/efi/efi"
 
Old 07-11-2017, 02:37 PM   #12
guerlando
LQ Newbie
 
Registered: Aug 2015
Posts: 29

Original Poster
Rep: Reputation: Disabled
I tried again with /boot and /boot/efi also, but none of them will work. Both /boot/efi and /boot tries were made on a newly partitioned disk but it gets painful to redo everything just to install the grub again, I tried to do rm -rf /boot or /boot/efi just to do everything again but it Didn't work, so I'm installing on top of the already done installation like this: https://imgur.com/a/3Z4Is

But now I don't even boot to the grub screen anymore, just to the 'no bootable disk' warning. I don't know what to try anymore, seems like I tried every possible way.

When I did boot to grub at least, it seemed that there were no vmlinuz to boot to, but I'm not sure
 
Old 07-15-2017, 07:32 PM   #13
guerlando
LQ Newbie
 
Registered: Aug 2015
Posts: 29

Original Poster
Rep: Reputation: Disabled
Hi. I installed Ubuntu Budgie because I needed my computer for a while, but I didn't give up. Please see how it did with my partitions:

https://imgur.com/a/aASal

why it created /boot AND /boot/efi? What's Map|? Why the /boot is ext4?

I'm gonna try to install Arch on a pen drive right now so I don't mess this new installation.

Thank you!
 
Old 07-16-2017, 10:02 AM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
Quote:
why it created /boot AND /boot/efi?
Did you select to install /boot to separate partiion during installation?
The efi/esp fat32 formated partition is required for uefi systems as a place to store the boot loaders versus the MBR of older systems which could only store one boot loader. Most distros mount the esp partition at /boot/efi, where as some distros like arch mount the esp partition at /boot. This link explains it some: https://askubuntu.com/questions/9281...tition-at-boot

Last edited by colorpurple21859; 07-16-2017 at 10:04 AM.
 
  


Reply

Tags
arch, boot, grub



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressing 'e' on Grub to pass a command boots my Debian system, how to make it permanent? Conch Linux - Newbie 5 11-12-2016 09:47 AM
Ubuntu 12.04 boots into command line/ grub rescue 9sp7ky3 Ubuntu 1 02-23-2013 01:00 PM
Unable to boot into GRUB loader: GRUB command shell boots up: urgent issue wombat53 Linux - Software 9 09-04-2009 06:20 AM
Install - boots cd to grub command line Optiker MEPIS 3 12-19-2006 02:27 PM
FC5 DvD Install Boots Grub Command Line jenninju Fedora 2 10-22-2006 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 09:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration