You are not logged in.
I am trying to install Arch Linux for the first time on my laptop, and I have 3 other operating systems on the drive (Windows 8.1, Ubuntu, Kali). I am setting GRUB up on the Arch install, and have followed all the steps in the Installation Guide up to the Bootloader step (https://wiki.archlinux.org/index.php/In … oot_loader), and tried rEFInd, but since that didn't work, I then tried GRUB.
My problem is that os-prober cannot find the Arch Linux partition, even if I try to mount it inside of itself. The steps I am doing on the live USB are as follows:
mount /dev/sda6/ /mnt/
arch-chroot /mnt/
mount /dev/sda7/ /mnt/Kali
mount /dev/sda9/ /mnt/Ubuntu
Then I try run os-prober
os-prober
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
/dev/sda7/:Kali GNU/Linux Rolling (kali-rolling):Kali:linux
/dev/sda9/:Ubuntu 16.04.3 LTS (16.04):Ubuntu:linux
After mounting Arch inside of itself:
mount /dev/sda6 /mnt/Arch
Os-prober gives the same output, without any sign of Arch Linux
I am adding Windows manually through the 40_custom file, and I can boot into GRUB without any problems, all the OS it can find work flawlessly too, but it doesn't list Arch Linux as an option.
Here is my "fdisk -l" output:
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 790B54AD-8754-4478-9367-1F3B3F6A56E3Device Start End Sectors Size Type
/dev/sda1 2048 1230847 1228800 600M Windows recovery environment
/dev/sda2 1230848 1845247 614400 300M EFI System
/dev/sda3 1845248 2107391 262144 128M Microsoft reserved
/dev/sda4 2107392 1328340991 1326233600 632.4G Microsoft basic data
/dev/sda5 1922627584 1953523711 30896128 14.8G Windows recovery environment
/dev/sda6 1328340992 1601460223 273119232 130.2G Linux filesystem
/dev/sda7 1874579456 1913051135 38471680 18.4G Linux filesystem
/dev/sda8 1913051136 1922627583 9576448 4.6G Linux swap
/dev/sda9 1601460224 1874579455 273119232 130.2G Linux filesystemPartition table entries are not in disk order.
and my GRUB config file (/boot/grub/grub.cfg) on pastebin: https://pastebin.com/0frr5mpz
Last edited by paranoidcake (2017-12-25 19:38:03)
Offline
Just manually add the stanza; don't rely on tools that allegedly automate/simplify processes for you.
Offline
Thanks for getting back to me so quickly, I've made a few attempts of manually adding GRUB entries, but I am out of my depth here. I've tried looking around on the Arch Wiki (https://wiki.archlinux.org/index.php/GR … menu_entry and http://www.gnu.org/software/grub/manual … ual-config in particular) but I kept getting the message:
error: file /boot/vmlinuz not found.
error: you must load the kernel first.
I ran os-prober on my Ubuntu, and it managed to find Arch, which I copied into my Arch's grub.cfg file, but I would appreciate if you could point me to any resources where I could learn more about adding things to GRUB manually without messing it up like I did.
Offline
but I kept getting the message:
error: file /boot/vmlinuz not found. error: you must load the kernel first.
The mainline Arch kernel is named "vmlinuz-linux" not "vmlinuz" -- check your /boot directory and you will see the kernel and initramfs (initramfs-linux.img for the mainline kernel). If you check the Arch entry you generated with os-prober you should also see "vmlinuz-linux" not "vmlinuz" -- this is why your manual entry failed. If you specify the correct names for the kernel and initramfs (and the correct partition for "set root"), that manual entry you linked should work.
Last edited by 2ManyDogs (2017-12-25 19:52:52)
Offline
I know this is marked as solved, but are you editing the /boot/grub/grub.cfg file yourself? If so: have you tried simply letting GRUB do the editing of that file?
Offline
The mainline Arch kernel is named "vmlinuz-linux" not "vmlinuz"
I tried it but I still get the file not found error
are you editing the /boot/grub/grub.cfg file yourself? If so: have you tried simply letting GRUB do the editing of that file?
I am but I don't know of a way other than os-prober to let GRUB make it's own entries to the config file
Offline
The mainline Arch kernel is named "vmlinuz-linux" not "vmlinuz"
I tried it but I still get the file not found error
are you editing the /boot/grub/grub.cfg file yourself? If so: have you tried simply letting GRUB do the editing of that file?
I am but I don't know of a way other than os-prober to let GRUB make it's own entries to the config file
I think you should let grub do the configuration by simply editing /etc/default/grub and then run
# grub-mkconfig -o /boot/grub/grub.cfgas described in https://wiki.archlinux.org/index.php/GR … ation_file
Offline
I think you should let grub do the configuration by simply editing /etc/default/grub and then run
# grub-mkconfig -o /boot/grub/grub.cfg
That was the first thing I tried but it made no entries
Offline
I think you should let grub do the configuration by simply editing /etc/default/grub and then run
# grub-mkconfig -o /boot/grub/grub.cfg
That was the first thing I tried but it made no entries
That's weird. Did you run the grub-install command as mentioned in the install section? You have to know whether you're on an UEFI setup or not, but you can find the section suitable for your system here https://wiki.archlinux.org/index.php/GRUB
Offline
You have to know whether you're on an UEFI setup or not, but you can find the section suitable for your system here
I was able to list the efivars directory, so I followed the UEFI section for grub-install. I tried installing it on another UEFI computer the same as I did on mine, and it made an entry for Arch Linux so it might be a problem relating to my computer itself
Offline
try editing the grub.cfg file itself? replicate one of the working sub-menu entries (stanzas) and edit it with the correct info for Arch, UUID, and kernel settings if any as mentioned in #2, then reboot and select Arch from the menu entry (may have to select "Advanced" in the grub screen...)
∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞
Offline