You are not logged in.
Pages: 1
Hi guys,
I'm not new to Arch Linux, but I have a problem launching the S.O. because grub is not founded at boot time.
I tried to install grub also with efibootmgr, that complete successfully the procedure, but when I reboot the system I get this error
" Checking media..
No media present"
What should I do?
Thanks guys
Last edited by IlVerZ (2016-09-07 14:07:43)
Offline
More details are needed: Was it working, then quit? If so, what changed (an update, etc.)? If this is a fresh install, have you tried booting from the install media and chrooting in? What is your drive(s) configuration/partitions?
We need more info than what you have provided.
Last edited by mrunion (2016-09-01 14:06:31)
Matt
"It is very difficult to educate the educated."
Offline
Thanks mrunion
It's a fresh install, SSD 120Gb, GPT 2 partition :
/dev/sda1 EFI 512 mb
/dev/sda2 Ext4 119Gb
I have also another HD with windows on it, and its boot loader (Is the original HD on my notebook).
The install procedure that I did is:
Notebook in UEFI mode
Boot from USB drive
...
mount /dev/sda2 /mnt
arch-chroot /mnt
...install base..
mount /dev/sda1 /boot
Then I have installed grub and the procedure completed successfully.
But when I reboot I get the message
" Checking media..
No media present"
And then windows is loaded.
I tried to insert grub in the UEFI using efibootmgr, the procedure complete successfully and I can see grub inserted correctly (before windows, and USB)
However I get the same error message.. After that I have checked the presence of grub in the UEFI (using efibootmgr) and there is not.
Offline
mount /dev/sda2 /mnt
arch-chroot /mnt
...install base..
mount /dev/sda1 /boot
You need to mount the ESP to /boot *before* running `pacstrap`
For clarity, the steps should be:
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
pacstrap /mnt base
arch-chroot /mnt
Your method installs the kernel image to sda2 -- just mounting /boot to sda1 doesn't magically transfer the kernel image to that partition, it just creates a new (empty) /boot at that location.
If you have any further problems please be sure to post the full exact commands that you used to configure your bootloader and install it to the disk.
Last edited by Head_on_a_Stick (2016-09-01 20:29:28)
Jin, Jîyan, Azadî
Offline
Thanks for the answer Head_on_a_Stick..
I have reinstalled Arch, but I get an Error
timedatectl set-ntp true
timedatectl status (just to check if it's OK)
mount /dev/sda2 /mnt
mount /dev/sda1 /boot
rm -r /boot/*
pacstrap /mnt base
ls /boot ( is empty)
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -s /usr/share/zoneinfo/Europe/Rome /etc/localtime
hwclock --systohc --utc
locale-gen
echo LANG=it_IT.UTF-8 > /etc/locale.conf
echo verzhostname > /etc/hostname
mkinitcpio -p linux
passwd
pacman -S intel-ucode
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
grub-install: error: /boot doesn't look like an EFI partition
Last edited by IlVerZ (2016-09-02 09:39:48)
Offline
mount /dev/sda1 /boot
rm -r /boot/*
Why did you do this?
You mounted your ESP to /boot in the live system and then erased everything inside -- again, why did you do this?
Please read through the installation guide more carefully and be sure to follow the links for any sections you don't fully understand and read those too.
ls /boot ( is empty)
And you thought that was OK?
/boot should not be empty.
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
grub-install: error: /boot doesn't look like an EFI partition
Please post the full output of:
# parted -l
Please use code tags when posting terminal output.
Jin, Jîyan, Azadî
Offline
IlVerZ wrote:mount /dev/sda1 /boot
rm -r /boot/*Why did you do this?
You mounted your ESP to /boot in the live system and then erased everything inside -- again, why did you do this?
I did it because there were files from the first installation, so i prefered to clean the boot partition, as a new one. Am I wrong?
ls /boot ( is empty)
And you thought that was OK?
/boot should not be empty.
I don't know why it is empty... I discoverd it and then I reported.
$parted -l
Model: ATA Samsung SSD 840 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 EFI System boot, esp
2 538MB 120GB 119GB ext4 Linux filesystem
Model: ATA TOSHIBA MQ01ABF0 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 1075MB 1074MB ntfs Basic data partition hidden, diag
2 1075MB 1180MB 105MB fat32 Basic data partition boot, esp
3 1180MB 1314MB 134MB ntfs Basic data partition msftres
4 1314MB 69.7GB 68.4GB ntfs Basic data partition msftdata
6 69.7GB 489GB 420GB ext4 msftdata
5 489GB 500GB 10.8GB ntfs Basic data partition hidden, diag
Last edited by IlVerZ (2016-09-04 19:25:16)
Offline
You should share the Windows-generated EFI system partition on /dev/sdb2 with your Arch system and mount it to /boot
https://wiki.archlinux.org/index.php/Du … FI_systems
I recommend using systemd-boot rather than GRUB, as long as you share the ESP then the Windows menu entry will be auto-generated.
*Do not* delete anything on /dev/sdb2 and make sure that it contains vmlinuz-linux & initramfs-linux.img
If you have any further problems, be sure to post the *exact* steps that you have taken and any error messages in full.
Jin, Jîyan, Azadî
Offline
I founded an error in the procedure that i did.
Grub failed the the past installation because I mounted /dev/sda1 on /boot instead of /mnt/boot.
Now the installation is completed but I have the usaul error..
" Checking media..
No media present"
Seems that the SSD canno't be seen from the UEFI boot of my motherboard.
Thanks for your suggestion "Head_on_a_Stick" but I prefer to install the boot loader on my SSD
Offline
I founded that my motherboard has a problem loading UEFI from a SSD... so I decided to use CSM
Offline
Pages: 1